[Mlir-commits] [mlir] [mlir][EmitC] Model lvalues as a type in EmitC (PR #91475)

Simon Camphausen llvmlistbot at llvm.org
Mon Aug 5 05:46:30 PDT 2024


================
@@ -945,9 +964,9 @@ def EmitC_MemberOfPtrOp : EmitC_Op<"member_of_ptr"> {
 
   let arguments = (ins
     Arg<StrAttr, "the member to access">:$member,
-    AnyTypeOf<[EmitC_OpaqueType,EmitC_PointerType]>:$operand
+    EmitC_LValueOf<[EmitC_OpaqueType,EmitC_PointerType]>:$operand
   );
-  let results = (outs EmitCType);
+  let results = (outs EmitC_LValueOf<[EmitCType]>);
----------------
simon-camp wrote:

I've updated the IR snippets accordingly.

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


More information about the Mlir-commits mailing list