Skip to content

Commit ab7bb14

Browse files
authored
Merge pull request #10612 from hzeller/feature-20260608-iwyu-constant-fold
IYWU: include necessary header for constant_fold()
2 parents d9a9219 + 5c636bc commit ab7bb14

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/syn/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ cc_library(
2020
"src/flow/combinational_mapper_npn.cc",
2121
"src/flow/combinational_mapper_npn.h",
2222
"src/flow/constant_fold.cc",
23-
"src/flow/constant_fold.h",
2423
"src/flow/export.cc",
2524
"src/flow/export.h",
2625
"src/flow/import.cc",
@@ -33,6 +32,7 @@ cc_library(
3332
],
3433
hdrs = [
3534
"include/syn/synthesis.h",
35+
"src/flow/constant_fold.h",
3636
],
3737
includes = [
3838
"include",

src/syn/src/flow/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ add_library(syn_flow
1515
)
1616

1717
set(_syn_flow_stage ${CMAKE_CURRENT_BINARY_DIR}/include/flow)
18-
foreach(_h combinational_mapper_npn.h export.h import.h opt_gatefusion.h)
18+
foreach(_h combinational_mapper_npn.h constant_fold.h export.h import.h opt_gatefusion.h)
1919
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${_h} ${_syn_flow_stage}/${_h} COPYONLY)
2020
endforeach()
2121

src/syn/test/opt_test.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <memory>
55
#include <sstream>
66

7+
#include "flow/constant_fold.h"
78
#include "gtest/gtest.h"
89
#include "syn/ir/Bundle.h"
910
#include "syn/ir/Const.h"
@@ -24,8 +25,6 @@ int main(int argc, char** argv)
2425

2526
namespace syn {
2627

27-
void constantFold(Graph& g);
28-
2928
TEST(OptTest, AndZero)
3029
{
3130
Graph g;

0 commit comments

Comments
 (0)