[Mlir-commits] [mlir] [mlir][emitc] Mark emitc.literal with CExpression (PR #155582)
Vlad Lazar
llvmlistbot at llvm.org
Wed Sep 3 05:32:50 PDT 2025
================
@@ -38,7 +38,7 @@ struct FormExpressionsPass
auto matchFun = [&](Operation *op) {
if (isa<emitc::CExpressionInterface>(*op) &&
!op->getParentOfType<emitc::ExpressionOp>() &&
- op->getNumResults() == 1)
+ !isa<emitc::LiteralOp>(op) && op->getNumResults() == 1)
----------------
Vladislave0-0 wrote:
Thanks for this observation!
https://github.com/llvm/llvm-project/pull/155582
More information about the Mlir-commits
mailing list