Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLoopInfo.cpp188 if (Op0 == &IndVar || Op0 == &StepInst) in findFinalIVValue()
191 if (Op1 == &IndVar || Op1 == &StepInst) in findFinalIVValue()
218 Value *FinalIVValue = findFinalIVValue(L, IndVar, *StepInst); in getBounds()
284 if (PHINode *IndVar = getInductionVariable(SE)) in getBounds() local
285 return LoopBounds::getBounds(*this, *IndVar, SE); in getBounds()
303 for (PHINode &IndVar : Header->phis()) { in getInductionVariable()
309 Value *StepInst = IndVar.getIncomingValueForBlock(Latch); in getInductionVariable()
316 return &IndVar; in getInductionVariable()
322 if (&IndVar == LatchCmpOp0 || &IndVar == LatchCmpOp1) in getInductionVariable()
323 return &IndVar; in getInductionVariable()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp980 assert(isLoopCounter(IndVar, L, SE)); in genLoopLimit()
989 if (IndVar->getType()->isPointerTy() && in genLoopLimit()
1049 IndVar->getType() : ExitCount->getType(); in genLoopLimit()
1065 assert(isLoopCounter(IndVar, L, SE)); in linearFunctionTestReplace()
1070 Value *CmpIndVar = IndVar; in linearFunctionTestReplace()
1082 IndVar->getType()->isIntegerTy() || in linearFunctionTestReplace()
1114 IndVar->getType()->isPointerTy() && in linearFunctionTestReplace()
1157 ExitCnt = Builder.CreateZExt(ExitCnt, IndVar->getType(), in linearFunctionTestReplace()
1164 ExitCnt = Builder.CreateSExt(ExitCnt, IndVar->getType(), in linearFunctionTestReplace()
2004 if (!IndVar) in run()
[all …]
H A DInductiveRangeCheckElimination.cpp215 const SCEVAddRecExpr *IndVar,
1581 ScalarEvolution &SE, const SCEVAddRecExpr *IndVar, in computeSafeIterationSpace() argument
1585 auto *IVType = cast<IntegerType>(IndVar->getType()); in computeSafeIterationSpace()
1609 if (!IndVar->isAffine()) in computeSafeIterationSpace()
1612 const SCEV *A = NoopOrExtend(IndVar->getStart(), RCType, SE, IsLatchSigned); in computeSafeIterationSpace()
1614 NoopOrExtend(IndVar->getStepRecurrence(SE), RCType, SE, IsLatchSigned)); in computeSafeIterationSpace()
1677 const Loop *L = IndVar->getLoop(); in computeSafeIterationSpace()
1933 const SCEVAddRecExpr *IndVar = in run() local
1949 auto Result = IRC.computeSafeIterationSpace(SE, IndVar, in run()
/llvm-project-15.0.7/llvm/test/Transforms/IndVarSimplify/
H A Drewrite-loop-exit-values-phi.ll4 ; that was not deleted, and the IndVar pass would return an incorrect modified
H A D2011-10-27-lftrnull.ll3 ; rdar://10359193: assert "IndVar type must match IVInit type"
/llvm-project-15.0.7/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp2005 Value *IndVar = Builder.CreateAdd(Span, Start); in createCanonicalLoop() local
2006 BodyGenCB(Builder.saveIP(), IndVar); in createCanonicalLoop()
4546 Instruction *IndVar = getIndVar(); in assertOK() local
4547 assert(IndVar && "Canonical induction variable not found?"); in assertOK()
4548 assert(isa<IntegerType>(IndVar->getType()) && in assertOK()
4550 assert(cast<PHINode>(IndVar)->getParent() == Header && in assertOK()
4552 assert(cast<PHINode>(IndVar)->getIncomingBlock(0) == Preheader); in assertOK()
4555 assert(cast<PHINode>(IndVar)->getIncomingBlock(1) == Latch); in assertOK()
4557 auto *NextIndVar = cast<PHINode>(IndVar)->getIncomingValue(1); in assertOK()
4566 assert(IndVar->getType() == TripCount->getType() && in assertOK()
[all …]
/llvm-project-15.0.7/llvm/
H A DCODE_OWNERS.TXT190 D: IndVar Simplify, Scalar Evolution
/llvm-project-15.0.7/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h176 function_ref<void(InsertPointTy CodeGenIP, Value *IndVar)>;
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DLoopInfo.h665 static Optional<Loop::LoopBounds> getBounds(const Loop &L, PHINode &IndVar,
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DTargetInstrInfo.h783 MachineInstr *IndVar, MachineInstr &Cmp, in reduceLoopCount() argument
/llvm-project-15.0.7/llvm/unittests/Frontend/
H A DOpenMPIRBuilderTest.cpp1239 Instruction *IndVar = Loop->getIndVar(); in TEST_F() local
1240 EXPECT_TRUE(isa<PHINode>(IndVar)); in TEST_F()
1241 EXPECT_EQ(IndVar->getType(), TripCount->getType()); in TEST_F()
1242 EXPECT_EQ(IndVar->getParent(), Loop->getHeader()); in TEST_F()
1249 EXPECT_EQ(CmpInst->getOperand(0), IndVar); in TEST_F()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp2047 llvm::Value *IndVar) { in EmitOMPCanonicalLoop() argument
2056 {LoopVarAddress.getPointer(), IndVar}); in EmitOMPCanonicalLoop()