| /src/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 …]
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | InductiveRangeCheckElimination.cpp | 228 const SCEVAddRecExpr *IndVar, 652 const SCEVAddRecExpr *IndVar, in computeSafeIterationSpace() argument 656 auto *IVType = dyn_cast<IntegerType>(IndVar->getType()); in computeSafeIterationSpace() 685 if (!IndVar->isAffine()) in computeSafeIterationSpace() 688 const SCEV *A = NoopOrExtend(IndVar->getStart(), RCType, SE, IsLatchSigned); in computeSafeIterationSpace() 690 NoopOrExtend(IndVar->getStepRecurrence(SE), RCType, SE, IsLatchSigned)); in computeSafeIterationSpace() 754 const Loop *L = IndVar->getLoop(); in computeSafeIterationSpace() 798 auto L = IndVar->getLoop(); in computeSafeIterationSpace() 1024 const SCEVAddRecExpr *IndVar = in run() local 1038 auto Result = IRC.computeSafeIterationSpace(SE, IndVar, in run()
|
| 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 …]
|
| /src/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | LoopInfo.h | 166 getBounds(const Loop &L, PHINode &IndVar, ScalarEvolution &SE);
|
| /src/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 …]
|
| /src/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | TargetInstrInfo.h | 830 MachineInstr *IndVar, MachineInstr &Cmp, in reduceLoopCount() argument
|
| /src/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.h | 582 function_ref<void(InsertPointTy CodeGenIP, Value *IndVar)>;
|
| /src/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()
|