Home
last modified time | relevance | path

Searched refs:currentLoop (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Conversion/SCFToGPU/
H A DSCFToGPU.cpp189 AffineForOp currentLoop = forOp; in collectBounds() local
191 Value lowerBound = getOrEmitLowerBound(currentLoop, builder); in collectBounds()
192 Value upperBound = getOrEmitUpperBound(currentLoop, builder); in collectBounds()
197 Value range = builder.create<arith::SubIOp>(currentLoop.getLoc(), in collectBounds()
199 Value step = getOrCreateStep(currentLoop, builder); in collectBounds()
201 range = builder.create<arith::DivSIOp>(currentLoop.getLoc(), range, step); in collectBounds()
205 ivs.push_back(currentLoop.getInductionVar()); in collectBounds()
209 currentLoop = cast<AffineForOp>(&currentLoop.getBody()->front()); in collectBounds()
211 return currentLoop; in collectBounds()