Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions include/circt/Dialect/Arc/ArcPasses.td
Original file line number Diff line number Diff line change
Expand Up @@ -366,4 +366,23 @@ def StripSV : Pass<"arc-strip-sv", "mlir::ModuleOp"> {
];
}

def ResolveXMRRef : Pass<"arc-resolve-xmr", "mlir::ModuleOp"> {
let summary = "Resolve sv.xmr.ref into direct signal references";
let description = [{
This pass traverses hw.hierpath metadata to replace sv.xmr.ref operations
with direct SSA value references, preserving observability before flattening.
}];

let options = [
Option<"lowerBlackBoxInternalToZero", "lower-blackbox-internal-to-zero",
"bool", "false",
"Lower unresolved references to internal blackbox symbols to constant zero.">
];

let dependentDialects = [
"circt::sv::SVDialect",
"circt::hw::HWDialect"
];
}

#endif // CIRCT_DIALECT_ARC_ARCPASSES_TD
1 change: 1 addition & 0 deletions lib/Dialect/Arc/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ add_circt_dialect_library(CIRCTArcTransforms
MergeTaps.cpp
MuxToControlFlow.cpp
PrintCostModel.cpp
ResolveXMRRef.cpp
SimplifyVariadicOps.cpp
SplitFuncs.cpp
SplitLoops.cpp
Expand Down
Loading
Loading