Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DLoopInfo.cpp184 static Value *findFinalIVValue(const Loop &L, const PHINode &IndVar, in findFinalIVValue() argument
192 if (Op0 == &IndVar || Op0 == &StepInst) in findFinalIVValue()
195 if (Op1 == &IndVar || Op1 == &StepInst) in findFinalIVValue()
202 Loop::LoopBounds::getBounds(const Loop &L, PHINode &IndVar, in getBounds() argument
205 if (!InductionDescriptor::isInductionPHI(&IndVar, &L, &SE, IndDesc)) in getBounds()
222 Value *FinalIVValue = findFinalIVValue(L, IndVar, *StepInst); in getBounds()
288 if (PHINode *IndVar = getInductionVariable(SE)) in getBounds() local
289 return LoopBounds::getBounds(*this, *IndVar, SE); in getBounds()
307 for (PHINode &IndVar : Header->phis()) { in getInductionVariable()
309 if (!InductionDescriptor::isInductionPHI(&IndVar, this, &SE, IndDesc)) in getInductionVariable()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp170 PHINode *IndVar, SCEVExpander &Rewriter);
978 static Value *genLoopLimit(PHINode *IndVar, BasicBlock *ExitingBB, in genLoopLimit() argument
981 assert(isLoopCounter(IndVar, L, SE)); in genLoopLimit()
982 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(SE->getSCEV(IndVar)); in genLoopLimit()
990 if (IndVar->getType()->isPointerTy() && in genLoopLimit()
1009 return Rewriter.expandCodeFor(IVLimit, IndVar->getType(), BI); in genLoopLimit()
1050 IndVar->getType() : ExitCount->getType(); in genLoopLimit()
1064 PHINode *IndVar, SCEVExpander &Rewriter) { in linearFunctionTestReplace() argument
1066 assert(isLoopCounter(IndVar, L, SE)); in linearFunctionTestReplace()
1068 cast<Instruction>(IndVar->getIncomingValueForBlock(L->getLoopLatch())); in linearFunctionTestReplace()
[all …]
H A DInductiveRangeCheckElimination.cpp214 const SCEVAddRecExpr *IndVar,
1585 const SCEVAddRecExpr *IndVar, in computeSafeIterationSpace() argument
1589 auto *IVType = dyn_cast<IntegerType>(IndVar->getType()); in computeSafeIterationSpace()
1616 if (!IndVar->isAffine()) in computeSafeIterationSpace()
1619 const SCEV *A = NoopOrExtend(IndVar->getStart(), RCType, SE, IsLatchSigned); in computeSafeIterationSpace()
1621 NoopOrExtend(IndVar->getStepRecurrence(SE), RCType, SE, IsLatchSigned)); in computeSafeIterationSpace()
1684 const Loop *L = IndVar->getLoop(); in computeSafeIterationSpace()
1940 const SCEVAddRecExpr *IndVar = in run() local
1956 auto Result = IRC.computeSafeIterationSpace(SE, IndVar, in run()
/openbsd-src/gnu/llvm/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp1626 auto LoopBodyGenCB = [&](InsertPointTy CodeGenIP, Value *IndVar) { in createSections() argument
1631 SwitchInst *SwitchStmt = Builder.CreateSwitch(IndVar, Continue); in createSections()
2094 Value *IndVar = Builder.CreateAdd(Span, Start); in createCanonicalLoop() local
2095 BodyGenCB(Builder.saveIP(), IndVar); in createCanonicalLoop()
5266 Instruction *IndVar = getIndVar(); in assertOK() local
5267 assert(IndVar && "Canonical induction variable not found?"); in assertOK()
5268 assert(isa<IntegerType>(IndVar->getType()) && in assertOK()
5270 assert(cast<PHINode>(IndVar)->getParent() == Header && in assertOK()
5272 assert(cast<PHINode>(IndVar)->getIncomingBlock(0) == Preheader); in assertOK()
5274 cast<ConstantInt>(cast<PHINode>(IndVar)->getIncomingValue(0))->isZero()); in assertOK()
[all …]
/openbsd-src/gnu/llvm/llvm/
H A DCODE_OWNERS.TXT194 D: IndVar Simplify, Scalar Evolution
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DLoopInfo.h669 getBounds(const Loop &L, PHINode &IndVar, ScalarEvolution &SE);
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DTargetInstrInfo.h797 MachineInstr *IndVar, MachineInstr &Cmp, in reduceLoopCount() argument
/openbsd-src/gnu/llvm/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h279 function_ref<void(InsertPointTy CodeGenIP, Value *IndVar)>;
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp2055 llvm::Value *IndVar) { in EmitOMPCanonicalLoop() argument
2064 {LoopVarAddress.getPointer(), IndVar}); in EmitOMPCanonicalLoop()