[Mlir-commits] [mlir] [MLIR][Target/Cpp] Natural induction variable naming. (PR #136102)
Simon Camphausen
llvmlistbot at llvm.org
Fri May 2 06:19:28 PDT 2025
================
@@ -870,7 +906,7 @@ static LogicalResult printOperation(CppEmitter &emitter, emitc::ForOp forOp) {
emitter.emitType(forOp.getLoc(), forOp.getInductionVar().getType())))
return failure();
os << " ";
- os << emitter.getOrCreateName(forOp.getInductionVar());
+ os << emitter.getOrCreateInductionVarName(forOp.getInductionVar());
----------------
simon-camp wrote:
Can you change the code below to also use `getOrCreateInductionVarName` for the induction var.
https://github.com/llvm/llvm-project/pull/136102
More information about the Mlir-commits
mailing list