[Mlir-commits] [mlir] [mlir][EmitC] Model lvalues as a type in EmitC (PR #91475)
Marius Brehler
llvmlistbot at llvm.org
Thu Jun 13 02:24:55 PDT 2024
================
@@ -1009,7 +1028,8 @@ def EmitC_VariableOp : EmitC_Op<"variable", []> {
}];
let arguments = (ins EmitC_OpaqueOrTypedAttr:$value);
- let results = (outs EmitCType);
+ let results = (outs Res<AnyTypeOf<[EmitC_ArrayType, EmitC_LValueType]>, "",
+ [MemAlloc<DefaultResource, 0, FullEffect>]>:$memref);
----------------
marbre wrote:
NIT:
```suggestion
[MemAlloc<DefaultResource, 0, FullEffect>]>:$result);
```
or
```suggestion
[MemAlloc<DefaultResource, 0, FullEffect>]>);
```
https://github.com/llvm/llvm-project/pull/91475
More information about the Mlir-commits
mailing list