Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DEVLIndVarSimplify.cpp115 PHINode *IndVar = L.getInductionVariable(SE); in run() local
116 if (!IndVar || !L.getInductionDescriptor(SE, IVD)) { in run()
117 const char *Reason = (IndVar ? "induction descriptor is not available" in run()
182 BasicBlock *BB = IndVar->getParent(); in run()
191 if (&PN == IndVar) in run()
281 if (llvm::RecursivelyDeleteDeadPHINode(IndVar)) in run()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopInfo.cpp185 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 …]
H A DHashRecognize.cpp417 getRecurrences(BasicBlock *LoopLatch, const PHINode *IndVar, const Loop &L) { in getRecurrences() argument
426 if (&P == IndVar) in getRecurrences()
564 const PHINode *IndVar = L.getCanonicalInductionVariable(); in recognizeCRC() local
565 if (!Latch || !Exit || !IndVar || L.getNumBlocks() != 1) in recognizeCRC()
571 auto R = getRecurrences(Latch, IndVar, L); in recognizeCRC()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp159 PHINode *IndVar, SCEVExpander &Rewriter);
907 static Value *genLoopLimit(PHINode *IndVar, BasicBlock *ExitingBB, in genLoopLimit() argument
910 assert(isLoopCounter(IndVar, L, SE)); in genLoopLimit()
912 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(SE->getSCEV(IndVar)); in genLoopLimit()
920 if (IndVar->getType()->isIntegerTy() && in genLoopLimit()
944 PHINode *IndVar, SCEVExpander &Rewriter) { in linearFunctionTestReplace() argument
946 assert(isLoopCounter(IndVar, L, SE)); in linearFunctionTestReplace()
948 cast<Instruction>(IndVar->getIncomingValueForBlock(L->getLoopLatch())); in linearFunctionTestReplace()
951 Value *CmpIndVar = IndVar; in linearFunctionTestReplace()
963 IndVar->getType()->isIntegerTy() || in linearFunctionTestReplace()
[all …]
H A DInductiveRangeCheckElimination.cpp220 const SCEVAddRecExpr *IndVar,
668 const SCEVAddRecExpr *IndVar, in computeSafeIterationSpace() argument
672 auto *IVType = dyn_cast<IntegerType>(IndVar->getType()); in computeSafeIterationSpace()
701 if (!IndVar->isAffine()) in computeSafeIterationSpace()
704 const SCEV *A = NoopOrExtend(IndVar->getStart(), RCType, SE, IsLatchSigned); in computeSafeIterationSpace()
706 NoopOrExtend(IndVar->getStepRecurrence(SE), RCType, SE, IsLatchSigned)); in computeSafeIterationSpace()
770 const Loop *L = IndVar->getLoop(); in computeSafeIterationSpace()
814 auto L = IndVar->getLoop(); in computeSafeIterationSpace()
1046 const SCEVAddRecExpr *IndVar = in run() local
1060 auto Result = IRC.computeSafeIterationSpace(SE, IndVar, in run()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DLoopInfo.h162 getBounds(const Loop &L, PHINode &IndVar, ScalarEvolution &SE);
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp2242 auto LoopBodyGenCB = [&](InsertPointTy CodeGenIP, Value *IndVar) -> Error { in createSections() argument
2247 SwitchInst *SwitchStmt = Builder.CreateSwitch(IndVar, Continue); in createSections()
4194 Value *IndVar = Builder.CreateAdd(Span, Start); in createCanonicalLoop() local
4195 return BodyGenCB(Builder.saveIP(), IndVar); in createCanonicalLoop()
10381 Instruction *IndVar = getIndVar(); in assertOK() local
10382 assert(IndVar && "Canonical induction variable not found?"); in assertOK()
10383 assert(isa<IntegerType>(IndVar->getType()) && in assertOK()
10385 assert(cast<PHINode>(IndVar)->getParent() == Header && in assertOK()
10387 assert(cast<PHINode>(IndVar)->getIncomingBlock(0) == Preheader); in assertOK()
10389 cast<ConstantInt>(cast<PHINode>(IndVar)->getIncomingValue(0))->isZero()); in assertOK()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetInstrInfo.h853 MachineInstr *IndVar, MachineInstr &Cmp, in reduceLoopCount() argument
/freebsd/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h635 function_ref<Error(InsertPointTy CodeGenIP, Value *IndVar)>;
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp2128 llvm::Value *IndVar) { in EmitOMPCanonicalLoop() argument
2137 {LoopVarAddress.emitRawPointer(*this), IndVar}); in EmitOMPCanonicalLoop()