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

Marius Brehler llvmlistbot at llvm.org
Tue Jul 30 12:45:44 PDT 2024


================
@@ -1286,15 +1308,26 @@ def EmitC_SubscriptOp : EmitC_Op<"subscript", []> {
       EmitC_PointerType]>,
     "the value to subscript">:$value,
     Variadic<EmitCType>:$indices);
-  let results = (outs EmitCType:$result);
+  let results = (outs EmitC_LValueType:$result);
----------------
marbre wrote:

Same here, the example in the op description should probably updated.

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


More information about the Mlir-commits mailing list