[Mlir-commits] [mlir] [mlir][EmitC] Create a pass to add a reflection map to a class (PR #205464)

Bhavesh M llvmlistbot at llvm.org
Tue Jul 14 12:56:21 PDT 2026


================
@@ -55,4 +56,73 @@ emitc.class @actionClass {
 // CHECK-NEXT:      %{{.*}} = get_field @fieldName0 : !emitc.array<1xf32>
 // CHECK-NEXT:      return
 // CHECK-NEXT:    }
+// CHECK-NEXT:  }
+
+// -----
+
+/// Test that the pass leaves IR unchanged if fields don't have any attributes
----------------
beamandala wrote:

I also realized while looking at this that the map and string includes are added regardless of if a pattern is matched or not. I updated the pass so that they're only added if there wasn't a match failure.

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


More information about the Mlir-commits mailing list