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

Marius Brehler llvmlistbot at llvm.org
Mon Aug 5 06:48:08 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]>);
----------------
marbre wrote:

Thanks looks good to me now!

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


More information about the Mlir-commits mailing list