[Mlir-commits] [mlir] [mlir][emitc] Set operator precedence for `GetFieldOp` (PR #203416)

Mircea Trofin llvmlistbot at llvm.org
Mon Jun 15 07:56:08 PDT 2026


================
@@ -98,3 +98,23 @@ emitc.class union @unionClass {
 // CHECK-NEXT:    float asFloat;
 // CHECK-NEXT:  };
 
+// Test that get_field is supported inside an expression
----------------
mtrofin wrote:

nit: explain in the comment why `get_field` in an expression tests operator precedence. It's not immediately obvious, and it'd save a future maintainer time required to make the connection.

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


More information about the Mlir-commits mailing list