Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopInfo.cpp192 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
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()
313 Value *StepInst = IndVar.getIncomingValueForBlock(Latch); in getInductionVariable()
320 return &IndVar; in getInductionVariable()
326 if (&IndVar == LatchCmpOp0 || &IndVar == LatchCmpOp1) in getInductionVariable()
327 return &IndVar; in getInductionVariable()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp228 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 DIndVarSimplify.cpp907 assert(isLoopCounter(IndVar, L, SE)); in genLoopLimit()
917 if (IndVar->getType()->isIntegerTy() && in genLoopLimit()
943 assert(isLoopCounter(IndVar, L, SE)); in linearFunctionTestReplace()
948 Value *CmpIndVar = IndVar; in linearFunctionTestReplace()
960 IndVar->getType()->isIntegerTy() || in linearFunctionTestReplace()
990 IndVar, ExitingBB, ExitCount, UsePostInc, L, Rewriter, SE); in linearFunctionTestReplace()
992 IndVar->getType()->isPointerTy() && in linearFunctionTestReplace()
1034 ExitCnt = Builder.CreateZExt(ExitCnt, IndVar->getType(), in linearFunctionTestReplace()
1041 ExitCnt = Builder.CreateSExt(ExitCnt, IndVar->getType(), in linearFunctionTestReplace()
1991 if (!IndVar) in run()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DLoopInfo.h166 getBounds(const Loop &L, PHINode &IndVar, ScalarEvolution &SE);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp2424 Value *IndVar = Builder.CreateAdd(Span, Start); in createCanonicalLoop() local
2425 BodyGenCB(Builder.saveIP(), IndVar); in createCanonicalLoop()
7169 Instruction *IndVar = getIndVar(); in assertOK() local
7170 assert(IndVar && "Canonical induction variable not found?"); in assertOK()
7171 assert(isa<IntegerType>(IndVar->getType()) && in assertOK()
7173 assert(cast<PHINode>(IndVar)->getParent() == Header && in assertOK()
7175 assert(cast<PHINode>(IndVar)->getIncomingBlock(0) == Preheader); in assertOK()
7178 assert(cast<PHINode>(IndVar)->getIncomingBlock(1) == Latch); in assertOK()
7180 auto *NextIndVar = cast<PHINode>(IndVar)->getIncomingValue(1); in assertOK()
7189 assert(IndVar->getType() == TripCount->getType() && in assertOK()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetInstrInfo.h804 MachineInstr *IndVar, MachineInstr &Cmp, in reduceLoopCount() argument
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h556 function_ref<void(InsertPointTy CodeGenIP, Value *IndVar)>;
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp2055 llvm::Value *IndVar) { in EmitOMPCanonicalLoop() argument
2064 {LoopVarAddress.getPointer(), IndVar}); in EmitOMPCanonicalLoop()