[Mlir-commits] [mlir] [mlir][EmitC] Model lvalues as a type in EmitC (PR #91475)
Simon Camphausen
llvmlistbot at llvm.org
Thu Jun 13 01:21:24 PDT 2024
================
@@ -38,7 +38,8 @@ struct FormExpressionsPass
auto matchFun = [&](Operation *op) {
if (op->hasTrait<OpTrait::emitc::CExpression>() &&
!op->getParentOfType<emitc::ExpressionOp>() &&
- op->getNumResults() == 1)
+ op->getNumResults() == 1 &&
+ isSupportedEmitCType(op->getResult(0).getType()))
----------------
simon-camp wrote:
In the current form all ops with the CExpression trait return a non-lvalue, so I dropped the check completely.
https://github.com/llvm/llvm-project/pull/91475
More information about the Mlir-commits
mailing list