Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LLHD] Add dedicated Mem2Reg pass #8244

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions include/circt/Dialect/LLHD/Transforms/LLHDPasses.td
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ def Sig2Reg : Pass<"llhd-sig2reg", "hw::HWModuleOp"> {
let dependentDialects = ["circt::hw::HWDialect", "circt::comb::CombDialect"];
}

def Mem2RegPass : Pass<"llhd-mem2reg"> {
let summary = "Promotes memory and signal slots into values.";
}

def TemporalCodeMotion : Pass<"llhd-temporal-code-motion", "hw::HWModuleOp"> {
let summary = "move drive operations to the exit basic block in processes";
let description = [{
Expand Down
5 changes: 3 additions & 2 deletions lib/Dialect/LLHD/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ add_circt_dialect_library(CIRCTLLHDTransforms
DesequentializationPass.cpp
EarlyCodeMotionPass.cpp
FunctionEliminationPass.cpp
Mem2Reg.cpp
MemoryToBlockArgumentPass.cpp
ProcessLoweringPass.cpp
Sig2RegPass.cpp
Expand All @@ -14,10 +15,10 @@ add_circt_dialect_library(CIRCTLLHDTransforms
LINK_LIBS PUBLIC
CIRCTComb
CIRCTHW
CIRCTSeq
CIRCTLLHD
MLIRIR
CIRCTSeq
MLIRControlFlowDialect
MLIRFuncDialect
MLIRIR
MLIRTransformUtils
)
Loading