[Mlir-commits] [mlir] [mlir][EmitC] Create a pass to add a reflection map to a class (PR #205464)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Thu Jul 16 11:48:36 PDT 2026
================
@@ -0,0 +1,160 @@
+// RUN: mlir-opt -split-input-file --mlgo-add-reflection-map="included-field-attrs=emitc.field_ref,emitc.field_ref_2 \
+// RUN: excluded-field-attrs="emitc.other_field"" %s | FileCheck %s '-D$QUOTE=\22'
+
+/// Tests that a reflection map is created for fields with a certain attribute.
+
+emitc.class @foo {
+ emitc.field @fieldName0 : !emitc.array<1xf32> {emitc.field_ref = ["another_feature"]}
+ emitc.field @fieldName1 : !emitc.array<1xf32> {emitc.field_ref = ["some_feature"]}
+ emitc.func @bar() {
+ return
+ }
----------------
banach-space wrote:
IIUC, the code path _with_ and _without_ member methods is identical? If yes, lets remove them - this is effectively duplicating tests.
https://github.com/llvm/llvm-project/pull/205464
More information about the Mlir-commits
mailing list