[clang] [CIR] Introduce LocalInitOp, & lower static locals (PR #193576)

Henrich Lauko via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 22 23:57:49 PDT 2026


================
@@ -2975,6 +2975,51 @@ def CIR_GetGlobalOp : CIR_Op<"get_global", [
   }];
 }
 
+//===----------------------------------------------------------------------===//
+// LocalInitOp
+//===----------------------------------------------------------------------===//
+
+def CIR_LocalInitOp : CIR_Op<"local_init", [
----------------
xlauko wrote:

Just a comment: as I am looking now to our control flow I literally have no idea how this should work with RegionBranchOpInterface, since this technically is entered, exited only once. I am afraid this does not conceptually fit to region-based control flow tooling that mlir has. :/ Same holds for globacl ctors/dtors.

https://github.com/llvm/llvm-project/pull/193576


More information about the cfe-commits mailing list