[Mlir-commits] [mlir] [mlir][EmitC] Model lvalues as a type in	EmitC (PR #91475)
    Matthias Gehre 
    llvmlistbot at llvm.org
       
    Tue Jun 11 07:17:19 PDT 2024
    
    
  
================
@@ -83,6 +83,23 @@ def EmitC_ArrayType : EmitC_Type<"Array", "array", [ShapedTypeInterface]> {
   let hasCustomAssemblyFormat = 1;
 }
 
+def EmitC_LValueType : EmitC_Type<"LValue", "lvalue"> {
+  let summary = "EmitC lvalue type";
+
+  let description = [{
+    Values of this type can be assigned to and their address can be taken.
+  }];
+
+  let parameters = (ins "Type":$value);
----------------
mgehre-amd wrote:
`getValue()` reads oddly, maybe
```suggestion
  let parameters = (ins "Type":$valueType);
```
https://github.com/llvm/llvm-project/pull/91475
    
    
More information about the Mlir-commits
mailing list