[Mlir-commits] [mlir] [WIP][mlir][EmitC] Model lvalues as a type in EmitC (PR #91475)
Simon Camphausen
llvmlistbot at llvm.org
Mon May 13 01:46:31 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))
----------------
simon-camp wrote:
Correct, I haven't gone through all op definitions yet to restrict operands/results to (non)lvalue types yet. The current state is more or less that variable ops return lvalues and all tests pass again.
https://github.com/llvm/llvm-project/pull/91475
More information about the Mlir-commits
mailing list