Home
last modified time | relevance | path

Searched refs:getAPInt (Results 1 – 25 of 52) sorted by relevance

123

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DDependenceAnalysis.cpp520 APInt Xtop = C1B2_C2B1->getAPInt(); in intersectConstraints()
521 APInt Xbot = A1B2_A2B1->getAPInt(); in intersectConstraints()
522 APInt Ytop = C1A2_C2A1->getAPInt(); in intersectConstraints()
523 APInt Ybot = A2B1_A1B2->getAPInt(); in intersectConstraints()
547 const APInt &UpperBound = CUB->getAPInt(); in intersectConstraints()
1181 APInt ConstDelta = cast<SCEVConstant>(Delta)->getAPInt(); in strongSIVtest()
1182 APInt ConstCoeff = cast<SCEVConstant>(Coeff)->getAPInt(); in strongSIVtest()
1369 APInt APDelta = ConstDelta->getAPInt(); in weakCrossingSIVtest()
1370 APInt APCoeff = ConstCoeff->getAPInt(); in weakCrossingSIVtest()
1516 APInt AM = ConstSrcCoeff->getAPInt(); in exactSIVtest()
[all …]
DScalarEvolution.cpp417 return SC->getAPInt().isNegative(); in isNonConstantNegative()
694 const APInt &LA = LC->getAPInt(); in CompareSCEVComplexity()
695 const APInt &RA = RC->getAPInt(); in CompareSCEVComplexity()
960 APInt NumeratorVal = Numerator->getAPInt(); in visitConstant()
961 APInt DenominatorVal = D->getAPInt(); in visitConstant()
1578 APInt StartAI = StartC->getAPInt(); in proveNoWrapByVaryingStart()
1615 const APInt C = ConstantTerm->getAPInt(); in extractConstantWithoutWrapping()
1834 const APInt &C = SC->getAPInt(); in getZeroExtendExpr()
1927 if (MulLHS->getAPInt().isPowerOf2()) in getZeroExtendExpr()
1930 MulLHS->getAPInt().logBase2(); in getZeroExtendExpr()
[all …]
DScalarEvolutionExpander.cpp264 ConstantInt::get(SE.getContext(), C->getAPInt().sdiv(FC->getAPInt())); in FactorOutConstant()
272 Remainder, SE.getConstant(C->getAPInt().srem(FC->getAPInt()))); in FactorOutConstant()
285 if (!C->getAPInt().srem(FC->getAPInt())) { in FactorOutConstant()
287 NewMulOps[0] = SE.getConstant(C->getAPInt().sdiv(FC->getAPInt())); in FactorOutConstant()
860 const APInt &RHS = SC->getAPInt(); in visitUDivExpr()
2165 if (SC->getAPInt().isPowerOf2()) { in isHighCostExpansionHelper()
DLoads.cpp225 if (Step->getAPInt() != EltSize) in isDereferenceableAndAlignedInLoop()
/external/llvm/lib/Analysis/
DDependenceAnalysis.cpp499 APInt Xtop = C1B2_C2B1->getAPInt(); in intersectConstraints()
500 APInt Xbot = A1B2_A2B1->getAPInt(); in intersectConstraints()
501 APInt Ytop = C1A2_C2A1->getAPInt(); in intersectConstraints()
502 APInt Ybot = A2B1_A1B2->getAPInt(); in intersectConstraints()
526 const APInt &UpperBound = CUB->getAPInt(); in intersectConstraints()
1104 APInt ConstDelta = cast<SCEVConstant>(Delta)->getAPInt(); in strongSIVtest()
1105 APInt ConstCoeff = cast<SCEVConstant>(Coeff)->getAPInt(); in strongSIVtest()
1292 APInt APDelta = ConstDelta->getAPInt(); in weakCrossingSIVtest()
1293 APInt APCoeff = ConstCoeff->getAPInt(); in weakCrossingSIVtest()
1439 APInt AM = ConstSrcCoeff->getAPInt(); in exactSIVtest()
[all …]
DScalarEvolution.cpp299 return SC->getAPInt().isNegative(); in isNonConstantNegative()
538 const APInt &LA = LC->getAPInt(); in compare()
539 const APInt &RA = RC->getAPInt(); in compare()
765 APInt NumeratorVal = Numerator->getAPInt(); in visitConstant()
766 APInt DenominatorVal = D->getAPInt(); in visitConstant()
1375 APInt StartAI = StartC->getAPInt(); in proveNoWrapByVaryingStart()
1650 const APInt &C1 = SC1->getAPInt(); in getSignExtendExpr()
1651 const APInt &C2 = SC2->getAPInt(); in getSignExtendExpr()
1794 const APInt &C1 = SC1->getAPInt(); in getSignExtendExpr()
1795 const APInt &C2 = SC2->getAPInt(); in getSignExtendExpr()
[all …]
DScalarEvolutionExpander.cpp247 ConstantInt::get(SE.getContext(), C->getAPInt().sdiv(FC->getAPInt())); in FactorOutConstant()
255 Remainder, SE.getConstant(C->getAPInt().srem(FC->getAPInt()))); in FactorOutConstant()
268 if (!C->getAPInt().srem(FC->getAPInt())) { in FactorOutConstant()
270 NewMulOps[0] = SE.getConstant(C->getAPInt().sdiv(FC->getAPInt())); in FactorOutConstant()
787 const APInt &RHS = SC->getAPInt(); in visitUDivExpr()
1961 if (SC->getAPInt().isPowerOf2()) { in isHighCostExpansionHelper()
/external/llvm-project/llvm/lib/Analysis/
DDependenceAnalysis.cpp520 APInt Xtop = C1B2_C2B1->getAPInt(); in intersectConstraints()
521 APInt Xbot = A1B2_A2B1->getAPInt(); in intersectConstraints()
522 APInt Ytop = C1A2_C2A1->getAPInt(); in intersectConstraints()
523 APInt Ybot = A2B1_A1B2->getAPInt(); in intersectConstraints()
547 const APInt &UpperBound = CUB->getAPInt(); in intersectConstraints()
1183 APInt ConstDelta = cast<SCEVConstant>(Delta)->getAPInt(); in strongSIVtest()
1184 APInt ConstCoeff = cast<SCEVConstant>(Coeff)->getAPInt(); in strongSIVtest()
1371 APInt APDelta = ConstDelta->getAPInt(); in weakCrossingSIVtest()
1372 APInt APCoeff = ConstCoeff->getAPInt(); in weakCrossingSIVtest()
1505 APInt AM = ConstSrcCoeff->getAPInt(); in exactSIVtest()
[all …]
DScalarEvolutionDivision.cpp112 APInt NumeratorVal = Numerator->getAPInt(); in visitConstant()
113 APInt DenominatorVal = D->getAPInt(); in visitConstant()
DScalarEvolution.cpp436 return SC->getAPInt().isNegative(); in isNonConstantNegative()
727 const APInt &LA = LC->getAPInt(); in CompareSCEVComplexity()
728 const APInt &RA = RC->getAPInt(); in CompareSCEVComplexity()
1463 APInt StartAI = StartC->getAPInt(); in proveNoWrapByVaryingStart()
1500 const APInt &C = ConstantTerm->getAPInt(); in extractConstantWithoutWrapping()
1715 const APInt &C = SC->getAPInt(); in getZeroExtendExpr()
1808 if (MulLHS->getAPInt().isPowerOf2()) in getZeroExtendExpr()
1811 MulLHS->getAPInt().logBase2(); in getZeroExtendExpr()
2030 const APInt &C = SC->getAPInt(); in getSignExtendExpr()
2078 if (SC->getAPInt().isNegative()) in getAnyExtendExpr()
[all …]
DLoopAccessAnalysis.cpp1092 const APInt &APStepVal = C->getAPInt(); in getPtrStride()
1164 int64_t Offset = Diff->getAPInt().getSExtValue(); in sortPtrAccesses()
1242 const APInt &OffsetDelta = cast<SCEVConstant>(OffsetDeltaSCEV)->getAPInt(); in isConsecutiveAccess()
1537 const APInt &Val = C->getAPInt(); in isDependent()
/external/llvm-project/llvm/lib/Transforms/Utils/
DScalarEvolutionExpander.cpp290 ConstantInt::get(SE.getContext(), C->getAPInt().sdiv(FC->getAPInt())); in FactorOutConstant()
298 Remainder, SE.getConstant(C->getAPInt().srem(FC->getAPInt()))); in FactorOutConstant()
311 if (!C->getAPInt().srem(FC->getAPInt())) { in FactorOutConstant()
313 NewMulOps[0] = SE.getConstant(C->getAPInt().sdiv(FC->getAPInt())); in FactorOutConstant()
887 const APInt &RHS = SC->getAPInt(); in visitUDivExpr()
2267 if (SC->getAPInt().isPowerOf2()) in costAndCollectOperands()
2304 return !SConst || SConst->getAPInt().ugt(1); in costAndCollectOperands()
2374 const APInt &Imm = cast<SCEVConstant>(S)->getAPInt(); in isHighCostExpansionHelper()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMVETailPredication.cpp339 if (Const->getAPInt() != -VF->getValue()) in ComputeElements()
364 if (Const->getAPInt() != (VF->getValue() - 1)) in ComputeElements()
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCLoopInstrFormPrep.cpp392 BucketChain.Elements[j].Offset->getAPInt().urem(Form); in prepareBaseForDispFormChain()
526 ((Form == DSForm) && !BasePtrIncSCEV->getAPInt().urem(4) && in rewriteLoadStores()
784 if (Diff && !Diff->getAPInt().urem(Form)) { in alreadyPrepared()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCLoopInstrFormPrep.cpp387 BucketChain.Elements[j].Offset->getAPInt().urem(Form); in prepareBaseForDispFormChain()
521 ((Form == DSForm) && !BasePtrIncSCEV->getAPInt().urem(4) && in rewriteLoadStores()
775 if (Diff && !Diff->getAPInt().urem(Form)) { in alreadyPrepared()
/external/llvm-project/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp733 EXPECT_EQ(cast<SCEVConstant>(EC)->getAPInt().getLimitedValue(), 999u); in TEST_F()
743 EXPECT_EQ(cast<SCEVConstant>(ARAtLoopExit)->getAPInt().getLimitedValue(), in TEST_F()
757 EXPECT_EQ(cast<SCEVConstant>(NewEC)->getAPInt().getLimitedValue(), 1999u); in TEST_F()
761 EXPECT_EQ(cast<SCEVConstant>(NewARAtLoopExit)->getAPInt().getLimitedValue(), in TEST_F()
846 EXPECT_EQ(cast<SCEVConstant>(NewEC)->getAPInt().getLimitedValue(), 1999u); in TEST_F()
1255 EXPECT_EQ(cast<SCEVConstant>(MaxBTC)->getAPInt(), 15); in TEST_F()
/external/llvm/lib/Transforms/Scalar/
DLoopDataPrefetch.cpp146 unsigned AbsStride = std::abs(ConstStride->getAPInt().getSExtValue()); in isStrideLargeEnough()
DLoopIdiomRecognize.cpp252 if (BECst->getAPInt() == 0) in runOnCountableLoop()
291 return ConstStride->getAPInt(); in getStoreStride()
677 APInt Stride = ConstStride->getAPInt(); in processLoopMemSet()
DLoopStrengthReduce.cpp547 const APInt &RA = RC->getAPInt(); in getExactSDiv()
561 const APInt &LA = C->getAPInt(); in getExactSDiv()
562 const APInt &RA = RC->getAPInt(); in getExactSDiv()
626 if (C->getAPInt().getMinSignedBits() <= 64) { in ExtractImmediate()
2388 if (Factor->getAPInt().getMinSignedBits() <= 64) in CollectInterestingTypesAndFactors()
2389 Factors.insert(Factor->getAPInt().getSExtValue()); in CollectInterestingTypesAndFactors()
2394 if (Factor->getAPInt().getMinSignedBits() <= 64) in CollectInterestingTypesAndFactors()
2395 Factors.insert(Factor->getAPInt().getSExtValue()); in CollectInterestingTypesAndFactors()
2815 if (IncConst->getAPInt().getMinSignedBits() > 64) in canFoldIVIncExpr()
3758 (C->getAPInt().abs() * APInt(BitWidth, F.Scale)) in GenerateCrossUseConstantOffsets()
[all …]
DAlignmentFromAssumptions.cpp245 unsigned TrailingOnes = MaskSCEV->getAPInt().countTrailingOnes(); in extractAlignmentInfo()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp673 const APInt &RA = RC->getAPInt(); in getExactSDiv()
687 const APInt &LA = C->getAPInt(); in getExactSDiv()
688 const APInt &RA = RC->getAPInt(); in getExactSDiv()
752 if (C->getAPInt().getMinSignedBits() <= 64) { in ExtractImmediate()
1261 if (Step->getAPInt() == F.BaseOffset) in RateRegister()
2691 if (Factor->getAPInt().getMinSignedBits() <= 64) in CollectInterestingTypesAndFactors()
2692 Factors.insert(Factor->getAPInt().getSExtValue()); in CollectInterestingTypesAndFactors()
2697 if (Factor->getAPInt().getMinSignedBits() <= 64) in CollectInterestingTypesAndFactors()
2698 Factors.insert(Factor->getAPInt().getSExtValue()); in CollectInterestingTypesAndFactors()
3128 if (IncConst->getAPInt().getMinSignedBits() > 64) in canFoldIVIncExpr()
[all …]
DLoopDataPrefetch.cpp165 unsigned AbsStride = std::abs(ConstStride->getAPInt().getSExtValue()); in isStrideLargeEnough()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp669 const APInt &RA = RC->getAPInt(); in getExactSDiv()
683 const APInt &LA = C->getAPInt(); in getExactSDiv()
684 const APInt &RA = RC->getAPInt(); in getExactSDiv()
748 if (C->getAPInt().getMinSignedBits() <= 64) { in ExtractImmediate()
1268 if (Step->getAPInt() == F.BaseOffset) in RateRegister()
2696 if (Factor->getAPInt().getMinSignedBits() <= 64) in CollectInterestingTypesAndFactors()
2697 Factors.insert(Factor->getAPInt().getSExtValue()); in CollectInterestingTypesAndFactors()
2702 if (Factor->getAPInt().getMinSignedBits() <= 64) in CollectInterestingTypesAndFactors()
2703 Factors.insert(Factor->getAPInt().getSExtValue()); in CollectInterestingTypesAndFactors()
3125 if (IncConst->getAPInt().getMinSignedBits() > 64) in canFoldIVIncExpr()
[all …]
DLoopDataPrefetch.cpp153 unsigned AbsStride = std::abs(ConstStride->getAPInt().getSExtValue()); in isStrideLargeEnough()
DAlignmentFromAssumptions.cpp243 unsigned TrailingOnes = MaskSCEV->getAPInt().countTrailingOnes(); in extractAlignmentInfo()

123