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

Matthias Gehre llvmlistbot at llvm.org
Thu May 9 22:34:55 PDT 2024


================
@@ -68,6 +68,8 @@ static LogicalResult verifyInitializationAttribute(Operation *op,
            << "string attributes are not supported, use #emitc.opaque instead";
 
   Type resultType = op->getResult(0).getType();
+  if (auto lType = dyn_cast<LValueType>(resultType))
----------------
mgehre-amd wrote:

This also allows `ConstantOp` to have LValue type, right? I think it should be restricted to VariableOps

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


More information about the Mlir-commits mailing list