/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | LoopInfo.cpp | 185 static Value *findFinalIVValue(const Loop &L, const PHINode &IndVar, in findFinalIVValue() argument 193 if (Op0 == &IndVar || Op0 == &StepInst) in findFinalIVValue() 196 if (Op1 == &IndVar || Op1 == &StepInst) in findFinalIVValue() 203 Loop::LoopBounds::getBounds(const Loop &L, PHINode &IndVar, in getBounds() argument 206 if (!InductionDescriptor::isInductionPHI(&IndVar, &L, &SE, IndDesc)) in getBounds() 223 Value *FinalIVValue = findFinalIVValue(L, IndVar, *StepInst); in getBounds() 289 if (PHINode *IndVar = getInductionVariable(SE)) in getBounds() local 290 return LoopBounds::getBounds(*this, *IndVar, SE); in getBounds() 308 for (PHINode &IndVar : Header->phis()) { in getInductionVariable() 310 if (!InductionDescriptor::isInductionPHI(&IndVar, this, &SE, IndDesc)) in getInductionVariable() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | IndVarSimplify.cpp | 161 PHINode *IndVar, SCEVExpander &Rewriter); 916 static Value *genLoopLimit(PHINode *IndVar, BasicBlock *ExitingBB, in genLoopLimit() argument 919 assert(isLoopCounter(IndVar, L, SE)); in genLoopLimit() 921 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(SE->getSCEV(IndVar)); in genLoopLimit() 929 if (IndVar->getType()->isIntegerTy() && in genLoopLimit() 953 PHINode *IndVar, SCEVExpander &Rewriter) { in linearFunctionTestReplace() argument 955 assert(isLoopCounter(IndVar, L, SE)); in linearFunctionTestReplace() 957 cast<Instruction>(IndVar->getIncomingValueForBlock(L->getLoopLatch())); in linearFunctionTestReplace() 960 Value *CmpIndVar = IndVar; in linearFunctionTestReplace() 972 IndVar->getType()->isIntegerTy() || in linearFunctionTestReplace() [all …]
|
H A D | InductiveRangeCheckElimination.cpp | 224 /// Computes a range for the induction variable (IndVar) in which the range 228 const SCEVAddRecExpr *IndVar, 647 /// Computes and returns a range of values for the induction variable (IndVar) 652 const SCEVAddRecExpr *IndVar, 656 auto *IVType = dyn_cast<IntegerType>(IndVar->getType()); 665 // IndVar is of the form "A + B * I" (where "I" is the canonical induction 669 // checked to "M + N * IndVar" where "N" = "D * B^(-1)" and "M" = "C - NA". 673 // 0 <= M + 1 * IndVar < L given L >= 0 (i.e. N == 1) 676 // The inequality is satisfied by (0 - M) <= IndVar < (L - M). To avoid 679 // space. For example, if IndVar i 1749 computeSafeIterationSpace(ScalarEvolution & SE,const SCEVAddRecExpr * IndVar,bool IsLatchSigned) const computeSafeIterationSpace() argument 2120 const SCEVAddRecExpr *IndVar = run() local [all...] |
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | LoopInfo.h | 166 getBounds(const Loop &L, PHINode &IndVar, ScalarEvolution &SE);
|
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
H A D | OMPIRBuilder.cpp | 2105 auto LoopBodyGenCB = [&](InsertPointTy CodeGenIP, Value *IndVar) { in createSections() argument 2110 SwitchInst *SwitchStmt = Builder.CreateSwitch(IndVar, Continue); in createSections() 3963 Value *IndVar = Builder.CreateAdd(Span, Start); in createCanonicalLoop() local 3964 BodyGenCB(Builder.saveIP(), IndVar); in createCanonicalLoop() 9119 Instruction *IndVar = getIndVar(); in assertOK() local 9120 assert(IndVar && "Canonical induction variable not found?"); in assertOK() 9121 assert(isa<IntegerType>(IndVar->getType()) && in assertOK() 9123 assert(cast<PHINode>(IndVar)->getParent() == Header && in assertOK() 9125 assert(cast<PHINode>(IndVar)->getIncomingBlock(0) == Preheader); in assertOK() 9127 cast<ConstantInt>(cast<PHINode>(IndVar)->getIncomingValue(0))->isZero()); in assertOK() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | TargetInstrInfo.h | 830 MachineInstr *IndVar, MachineInstr &Cmp, in reduceLoopCount() argument
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/ |
H A D | OMPIRBuilder.h | 582 function_ref<void(InsertPointTy CodeGenIP, Value *IndVar)>;
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGStmtOpenMP.cpp | 2083 llvm::Value *IndVar) { in EmitOMPCanonicalLoop() argument 2092 {LoopVarAddress.emitRawPointer(*this), IndVar}); in EmitOMPCanonicalLoop()
|