Skip to content

Commit 7dfbad0

Browse files
committed
[HW] Add HWVectorization pass
1 parent 68bd267 commit 7dfbad0

File tree

5 files changed

+1003
-1
lines changed

5 files changed

+1003
-1
lines changed

include/circt/Dialect/HW/Passes.td

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,12 @@ def HWAggregateToComb : Pass<"hw-aggregate-to-comb", "hw::HWModuleOp"> {
9292
let dependentDialects = ["comb::CombDialect"];
9393
}
9494

95+
def HWVectorization : Pass<"hw-vectorization", "hw::HWModuleOp"> {
96+
let summary = "Vectorizes bit-level operations in HW dialect";
97+
let description = [{
98+
This pass performs structural vectorization of hardware modules,
99+
merging scalar bit-level assignments into vectorized operations.
100+
}];
101+
}
102+
95103
#endif // CIRCT_DIALECT_HW_PASSES_TD

lib/Dialect/HW/Transforms/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ add_circt_dialect_library(CIRCTHWTransforms
77
VerifyInnerRefNamespace.cpp
88
FlattenModules.cpp
99
FooWires.cpp
10+
HWVectorization.cpp
1011

1112
DEPENDS
1213
CIRCTHWTransformsIncGen

0 commit comments

Comments
 (0)