[clang] [CIR] Upstream the basic structure of LoweringPrepare pass (PR #148545)
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 14 12:47:47 PDT 2025
================
@@ -72,4 +72,14 @@ def CIRFlattenCFG : Pass<"cir-flatten-cfg"> {
let dependentDialects = ["cir::CIRDialect"];
}
+def LoweringPrepare : Pass<"cir-lowering-prepare"> {
+ let summary = "Preparation work before lowering to LLVM dialect";
+ let description = [{
+ This pass does preparation work for LLVM lowering. For example, it may
+ expand the global variable initialziation in a more ABI-friendly form.
----------------
bcardosolopes wrote:
Please make the description a bit more generic (not LLVM specific) since it also covers the core dialect path in the incubator.
https://github.com/llvm/llvm-project/pull/148545
More information about the cfe-commits
mailing list