/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | HardwareLoops.cpp | 190 ExitCount(Info.ExitCount), in HardwareLoop() 205 const SCEV *ExitCount = nullptr; member in __anonb7327cda0111::HardwareLoop 298 (HWLoopInfo.ExitBlock && HWLoopInfo.ExitBranch && HWLoopInfo.ExitCount) && in TryConvertLoop() 383 if (!ExitCount->getType()->isPointerTy() && in InitLoopCount() 384 ExitCount->getType() != CountType) in InitLoopCount() 385 ExitCount = SE.getZeroExtendExpr(ExitCount, CountType); in InitLoopCount() 387 ExitCount = SE.getAddExpr(ExitCount, SE.getOne(CountType)); in InitLoopCount() 393 if (SE.isLoopEntryGuardedByCond(L, ICmpInst::ICMP_NE, ExitCount, in InitLoopCount() 394 SE.getZero(ExitCount->getType()))) { in InitLoopCount() 405 if (!isSafeToExpandAt(ExitCount, BB->getTerminator(), SE)) { in InitLoopCount() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 167 const SCEV *ExitCount, 973 const SCEV *ExitCount, bool UsePostInc, Loop *L, in genLoopLimit() argument 984 !ExitCount->getType()->isPointerTy()) { in genLoopLimit() 992 const SCEV *IVOffset = SE->getTruncateOrZeroExtend(ExitCount, OfsTy); in genLoopLimit() 1032 > SE->getTypeSizeInBits(ExitCount->getType())) { in genLoopLimit() 1033 if (isa<SCEVConstant>(IVInit) && isa<SCEVConstant>(ExitCount)) in genLoopLimit() 1034 ExitCount = SE->getZeroExtendExpr(ExitCount, IVInit->getType()); in genLoopLimit() 1036 IVInit = SE->getTruncateExpr(IVInit, ExitCount->getType()); in genLoopLimit() 1039 const SCEV *IVLimit = SE->getAddExpr(IVInit, ExitCount); in genLoopLimit() 1050 Type *LimitTy = ExitCount->getType()->isPointerTy() ? in genLoopLimit() [all …]
|
D | LoopPredication.cpp | 1012 const SCEV *ExitCount = SE.getExitCount(L, ExitingBB); in getMinAnalyzeableBackedgeTakenCount() local 1013 if (isa<SCEVCouldNotCompute>(ExitCount)) in getMinAnalyzeableBackedgeTakenCount() 1018 ExitCounts.push_back(ExitCount); in getMinAnalyzeableBackedgeTakenCount() 1136 const SCEV *ExitCount = SE->getExitCount(L, ExitingBB); in predicateLoopExits() local 1137 if (isa<SCEVCouldNotCompute>(ExitCount) || in predicateLoopExits() 1138 ExitCount->getType()->isPointerTy() || in predicateLoopExits() 1139 !isSafeToExpandAt(ExitCount, WidenableBR, *SE)) in predicateLoopExits() 1155 Value *ECV = Rewriter.expandCodeFor(ExitCount); in predicateLoopExits()
|
D | LoopVersioningLICM.cpp | 269 const SCEV *ExitCount = SE->getBackedgeTakenCount(CurLoop); in legalLoopStructure() local 270 if (isa<SCEVCouldNotCompute>(ExitCount)) { in legalLoopStructure()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 164 const SCEV *ExitCount, 652 const SCEV *ExitCount = SE->getExitCount(L, PN->getIncomingBlock(i)); in rewriteLoopExitValues() local 653 if (isa<SCEVCouldNotCompute>(ExitCount)) in rewriteLoopExitValues() 657 ExitValue = AddRec->evaluateAtIteration(ExitCount, *SE); in rewriteLoopExitValues() 2333 const SCEV *ExitCount, bool UsePostInc, Loop *L, in genLoopLimit() argument 2344 !ExitCount->getType()->isPointerTy()) { in genLoopLimit() 2352 const SCEV *IVOffset = SE->getTruncateOrZeroExtend(ExitCount, OfsTy); in genLoopLimit() 2392 > SE->getTypeSizeInBits(ExitCount->getType())) { in genLoopLimit() 2393 if (isa<SCEVConstant>(IVInit) && isa<SCEVConstant>(ExitCount)) in genLoopLimit() 2394 ExitCount = SE->getZeroExtendExpr(ExitCount, IVInit->getType()); in genLoopLimit() [all …]
|
D | LoopPredication.cpp | 1010 const SCEV *ExitCount = SE.getExitCount(L, ExitingBB); in getMinAnalyzeableBackedgeTakenCount() local 1011 if (isa<SCEVCouldNotCompute>(ExitCount)) in getMinAnalyzeableBackedgeTakenCount() 1016 ExitCounts.push_back(ExitCount); in getMinAnalyzeableBackedgeTakenCount() 1145 const SCEV *ExitCount = SE->getExitCount(L, ExitingBB); in predicateLoopExits() local 1146 if (isa<SCEVCouldNotCompute>(ExitCount) || in predicateLoopExits() 1147 ExitCount->getType()->isPointerTy() || in predicateLoopExits() 1148 !isSafeToExpandAt(ExitCount, WidenableBR, *SE)) in predicateLoopExits() 1161 Value *ECV = Rewriter.expandCodeFor(ExitCount); in predicateLoopExits()
|
D | LoopVersioningLICM.cpp | 256 const SCEV *ExitCount = SE->getBackedgeTakenCount(CurLoop); in legalLoopStructure() local 257 if (ExitCount == SE->getCouldNotCompute()) { in legalLoopStructure()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCCTRLoops.cpp | 503 const SCEV *ExitCount = nullptr; in convertToCTRLoop() local 559 ExitCount = EC; in convertToCTRLoop() 587 if (!ExitCount->getType()->isPointerTy() && in convertToCTRLoop() 588 ExitCount->getType() != CountType) in convertToCTRLoop() 589 ExitCount = SE->getZeroExtendExpr(ExitCount, CountType); in convertToCTRLoop() 590 ExitCount = SE->getAddExpr(ExitCount, SE->getOne(CountType)); in convertToCTRLoop() 592 SCEVE.expandCodeFor(ExitCount, CountType, Preheader->getTerminator()); in convertToCTRLoop()
|
/external/clang/lib/CodeGen/ |
D | CoverageMappingGen.cpp | 463 Counter ExitCount = getRegion().getCounter(); in propagateCounts() local 471 return ExitCount; in propagateCounts() 812 Counter ExitCount = getRegionCounter(S); in VisitSwitchStmt() local 814 pushRegion(ExitCount, getStart(S), ExitLoc); in VisitSwitchStmt() 877 Counter ExitCount = getRegionCounter(S); in VisitCXXTryStmt() local 878 pushRegion(ExitCount); in VisitCXXTryStmt()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopVersioningLICM.cpp | 254 const SCEV *ExitCount = SE->getBackedgeTakenCount(CurLoop); in legalLoopStructure() local 255 if (ExitCount == SE->getCouldNotCompute()) { in legalLoopStructure()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CoverageMappingGen.cpp | 751 Counter ExitCount = getRegion().getCounter(); in propagateCounts() local 759 return ExitCount; in propagateCounts() 1234 Counter ExitCount = getRegionCounter(S); in VisitSwitchStmt() local 1236 pushRegion(ExitCount); in VisitSwitchStmt() 1315 Counter ExitCount = getRegionCounter(S); in VisitCXXTryStmt() local 1316 pushRegion(ExitCount); in VisitCXXTryStmt()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | LoopUtils.cpp | 1386 const SCEV *ExitCount = SE->getExitCount(L, PN->getIncomingBlock(i)); in rewriteLoopExitValues() local 1387 if (isa<SCEVCouldNotCompute>(ExitCount)) in rewriteLoopExitValues() 1391 ExitValue = AddRec->evaluateAtIteration(ExitCount, *SE); in rewriteLoopExitValues()
|
D | ScalarEvolutionExpander.cpp | 2468 const SCEV *ExitCount = in generateOverflowCheck() local 2471 assert(!isa<SCEVCouldNotCompute>(ExitCount) && "Invalid loop count"); in generateOverflowCheck() 2477 unsigned SrcBits = SE.getTypeSizeInBits(ExitCount->getType()); in generateOverflowCheck() 2487 Value *TripCountVal = expandCodeForImpl(ExitCount, CountTy, Loc, false); in generateOverflowCheck()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 2038 const SCEV *ExitCount = in generateOverflowCheck() local 2041 assert(ExitCount != SE.getCouldNotCompute() && "Invalid loop count"); in generateOverflowCheck() 2046 unsigned SrcBits = SE.getTypeSizeInBits(ExitCount->getType()); in generateOverflowCheck() 2056 Value *TripCountVal = expandCodeFor(ExitCount, CountTy, Loc); in generateOverflowCheck()
|
D | LoopAccessAnalysis.cpp | 1497 const SCEV *ExitCount = PSE->getBackedgeTakenCount(); in canAnalyzeLoop() local 1498 if (ExitCount == PSE->getSE()->getCouldNotCompute()) { in canAnalyzeLoop()
|
D | ScalarEvolution.cpp | 5259 const SCEVConstant *ExitCount = in getSmallConstantTripCount() local 5261 if (!ExitCount) in getSmallConstantTripCount() 5264 ConstantInt *ExitConst = ExitCount->getValue(); in getSmallConstantTripCount() 5300 const SCEV *ExitCount = getExitCount(L, ExitingBlock); in getSmallConstantTripMultiple() local 5301 if (ExitCount == getCouldNotCompute()) in getSmallConstantTripMultiple() 5305 const SCEV *TCMul = getAddExpr(ExitCount, getOne(ExitCount->getType())); in getSmallConstantTripMultiple()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 2244 const SCEV *ExitCount = in generateOverflowCheck() local 2247 assert(ExitCount != SE.getCouldNotCompute() && "Invalid loop count"); in generateOverflowCheck() 2253 unsigned SrcBits = SE.getTypeSizeInBits(ExitCount->getType()); in generateOverflowCheck() 2263 Value *TripCountVal = expandCodeFor(ExitCount, CountTy, Loc); in generateOverflowCheck()
|
D | LoopAccessAnalysis.cpp | 1779 const SCEV *ExitCount = PSE->getBackedgeTakenCount(); in canAnalyzeLoop() local 1780 if (ExitCount == PSE->getSE()->getCouldNotCompute()) { in canAnalyzeLoop()
|
D | ScalarEvolution.cpp | 6553 static unsigned getConstantTripCount(const SCEVConstant *ExitCount) { in getConstantTripCount() argument 6554 if (!ExitCount) in getConstantTripCount() 6557 ConstantInt *ExitConst = ExitCount->getValue(); in getConstantTripCount() 6580 const SCEVConstant *ExitCount = in getSmallConstantTripCount() local 6582 return getConstantTripCount(ExitCount); in getSmallConstantTripCount() 6617 const SCEV *ExitCount = getExitCount(L, ExitingBlock); in getSmallConstantTripMultiple() local 6618 if (ExitCount == getCouldNotCompute()) in getSmallConstantTripMultiple() 6622 const SCEV *TCExpr = getAddExpr(ExitCount, getOne(ExitCount->getType())); in getSmallConstantTripMultiple()
|
D | TargetTransformInfo.cpp | 127 ExitCount = EC; in isHardwareLoopCandidate()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | LoopAccessAnalysis.cpp | 1805 const SCEV *ExitCount = PSE->getBackedgeTakenCount(); in canAnalyzeLoop() local 1806 if (isa<SCEVCouldNotCompute>(ExitCount)) { in canAnalyzeLoop()
|
D | ScalarEvolution.cpp | 6797 static unsigned getConstantTripCount(const SCEVConstant *ExitCount) { in getConstantTripCount() argument 6798 if (!ExitCount) in getConstantTripCount() 6801 ConstantInt *ExitConst = ExitCount->getValue(); in getConstantTripCount() 6825 const SCEVConstant *ExitCount = in getSmallConstantTripCount() local 6827 return getConstantTripCount(ExitCount); in getSmallConstantTripCount() 6862 const SCEV *ExitCount = getExitCount(L, ExitingBlock); in getSmallConstantTripMultiple() local 6863 if (ExitCount == getCouldNotCompute()) in getSmallConstantTripMultiple() 6867 const SCEV *TCExpr = getAddExpr(ExitCount, getOne(ExitCount->getType())); in getSmallConstantTripMultiple() 13185 const SCEV *ExitCount = getExitCount(L, ExitingBB); in computeSymbolicMaxBackedgeTakenCount() local 13186 if (isa<SCEVCouldNotCompute>(ExitCount)) in computeSymbolicMaxBackedgeTakenCount() [all …]
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 2779 const SCEV *ExitCount = SE->getAddExpr( in getOrCreateTripCount() local 2789 TripCount = Exp.expandCodeFor(ExitCount, ExitCount->getType(), in getOrCreateTripCount() 4439 const SCEV *ExitCount = PSE.getBackedgeTakenCount(); in canVectorize() local 4440 if (ExitCount == PSE.getSE()->getCouldNotCompute()) { in canVectorize()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | TargetTransformInfo.h | 92 const SCEV *ExitCount = nullptr; member
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 2587 const SCEV *ExitCount = SE->getAddExpr( in getOrCreateTripCount() local 2597 TripCount = Exp.expandCodeFor(ExitCount, ExitCount->getType(), in getOrCreateTripCount()
|