[Mlir-commits] [mlir] Add a structured if operation (PR #67234)

Mehdi Amini llvmlistbot at llvm.org
Sat Sep 23 14:13:06 PDT 2023


================
@@ -931,6 +931,17 @@ def ConvertParallelLoopToGpu : Pass<"convert-parallel-loops-to-gpu"> {
   let dependentDialects = ["affine::AffineDialect", "gpu::GPUDialect"];
 }
 
+//===----------------------------------------------------------------------===//
+// SCFToEmitC
+//===----------------------------------------------------------------------===//
+
+def SCFToEmitC : Pass<"convert-scf-to-emitc"> {
+  let summary = "Convert SCF dialect to EmitC dialect, maintaining structured"
+                " control flow";
+  let constructor = "mlir::createConvertSCFToEmitCPass()";
----------------
joker-eph wrote:

Can you remove this line? This will auto-generate all the registration

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


More information about the Mlir-commits mailing list