@@ -55,9 +55,9 @@ static Value buildLinearId(RewriterBase &rewriter, Location loc,
55
55
llvm::dbgs () << " \n " );
56
56
assert (originalBasisOfr.size () == 3 && " expected 3 sizes" );
57
57
IndexType indexType = rewriter.getIndexType ();
58
- AffineExpr tx, ty, tz, BDX, BDY ;
58
+ AffineExpr tx, ty, tz, bdx, bdy ;
59
59
bindDims (rewriter.getContext (), tx, ty, tz);
60
- bindSymbols (rewriter.getContext (), BDX, BDY );
60
+ bindSymbols (rewriter.getContext (), bdx, bdy );
61
61
SmallVector<OpFoldResult> vals{
62
62
rewriter.create <ThreadOrBlockIdOp>(loc, indexType, Dimension::x)
63
63
.getResult (),
@@ -67,7 +67,7 @@ static Value buildLinearId(RewriterBase &rewriter, Location loc,
67
67
.getResult (),
68
68
originalBasisOfr[0 ], originalBasisOfr[1 ]};
69
69
OpFoldResult ofr = affine::makeComposedFoldedAffineApply (
70
- rewriter, loc, tx + ty * BDX + tz * BDX * BDY , vals);
70
+ rewriter, loc, tx + ty * bdx + tz * bdx * bdy , vals);
71
71
return getValueOrCreateConstantIndexOp (rewriter, loc, ofr);
72
72
}
73
73
0 commit comments