Home
last modified time | relevance | path

Searched refs:isExact (Results 1 – 25 of 45) sorted by relevance

12

/external/llvm/include/llvm/IR/
DConstantFolder.h56 bool isExact = false) const {
57 return ConstantExpr::getUDiv(LHS, RHS, isExact);
60 bool isExact = false) const {
61 return ConstantExpr::getSDiv(LHS, RHS, isExact);
80 bool isExact = false) const {
81 return ConstantExpr::getLShr(LHS, RHS, isExact);
84 bool isExact = false) const {
85 return ConstantExpr::getAShr(LHS, RHS, isExact);
DNoFolder.h89 bool isExact = false) const {
90 if (!isExact)
98 bool isExact = false) const {
99 if (!isExact)
126 bool isExact = false) const {
127 if (!isExact)
132 bool isExact = false) const {
133 if (!isExact)
DIRBuilder.h830 bool isExact = false) {
833 return Insert(Folder.CreateUDiv(LC, RC, isExact), Name);
834 if (!isExact)
842 bool isExact = false) {
845 return Insert(Folder.CreateSDiv(LC, RC, isExact), Name);
846 if (!isExact)
902 bool isExact = false) {
905 return Insert(Folder.CreateLShr(LC, RC, isExact), Name);
906 if (!isExact)
911 bool isExact = false) {
[all …]
DConstants.h929 static Constant *getUDiv(Constant *C1, Constant *C2, bool isExact = false);
930 static Constant *getSDiv(Constant *C1, Constant *C2, bool isExact = false);
940 static Constant *getLShr(Constant *C1, Constant *C2, bool isExact = false);
941 static Constant *getAShr(Constant *C1, Constant *C2, bool isExact = false);
DOperator.h141 bool isExact() const { in isExact() function
/external/llvm/include/llvm/Analysis/
DTargetFolder.h71 Constant *CreateUDiv(Constant *LHS, Constant *RHS, bool isExact = false)const{
72 return Fold(ConstantExpr::getUDiv(LHS, RHS, isExact));
74 Constant *CreateSDiv(Constant *LHS, Constant *RHS, bool isExact = false)const{
75 return Fold(ConstantExpr::getSDiv(LHS, RHS, isExact));
93 Constant *CreateLShr(Constant *LHS, Constant *RHS, bool isExact = false)const{
94 return Fold(ConstantExpr::getLShr(LHS, RHS, isExact));
96 Constant *CreateAShr(Constant *LHS, Constant *RHS, bool isExact = false)const{
97 return Fold(ConstantExpr::getAShr(LHS, RHS, isExact));
DInstructionSimplify.h163 Value *SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact,
172 Value *SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact,
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp35 bool isNUW = false, isNSW = false, isExact = false; in FoldPHIArgBinOpIntoPHI() local
42 isExact = PEO->isExact(); in FoldPHIArgBinOpIntoPHI()
63 if (isExact) in FoldPHIArgBinOpIntoPHI()
64 isExact = cast<PossiblyExactOperator>(I)->isExact(); in FoldPHIArgBinOpIntoPHI()
126 if (isExact) NewBinOp->setIsExact(); in FoldPHIArgBinOpIntoPHI()
497 bool isNUW = false, isNSW = false, isExact = false; in FoldPHIArgOpIntoPHI() local
521 isExact = PEO->isExact(); in FoldPHIArgOpIntoPHI()
542 if (isExact) in FoldPHIArgOpIntoPHI()
543 isExact = cast<PossiblyExactOperator>(I)->isExact(); in FoldPHIArgOpIntoPHI()
586 if (isExact) BinOp->setIsExact(); in FoldPHIArgOpIntoPHI()
DInstCombineShifts.cpp600 ShiftOp->isExact()) { in FoldShiftByConstant()
619 NewLShr->setIsExact(I.isExact()); in FoldShiftByConstant()
638 NewAShr->setIsExact(I.isExact()); in FoldShiftByConstant()
651 ShiftOp->isExact()) { in FoldShiftByConstant()
741 if (Value *V = SimplifyLShrInst(I.getOperand(0), I.getOperand(1), I.isExact(), in visitLShr()
770 if (!I.isExact() && in visitLShr()
785 if (Value *V = SimplifyAShrInst(I.getOperand(0), I.getOperand(1), I.isExact(), in visitAShr()
815 if (!I.isExact() && in visitAShr()
DInstCombineMulDivRem.cpp60 if (I->getOpcode() == Instruction::LShr && !I->isExact()) { in simplifyValueKnownNonZero()
324 if (SDiv->isExact()) { in visitMul()
827 BO->setIsExact(I.isExact()); in commonIDivTransforms()
855 BO->setIsExact(I.isExact()); in commonIDivTransforms()
965 if (I.isExact()) in foldUDivPow2Cst()
994 if (I.isExact()) in foldUDivShl()
1064 bool IsExact = I.isExact() && match(Op0, m_Exact(m_Value())); in visitUDiv()
1078 Builder->CreateUDiv(ZOp0->getOperand(0), ZOp1, "div", I.isExact()), in visitUDiv()
1134 if (I.isExact() && RHS->getValue().isNonNegative() && in visitSDiv()
1151 BO->setIsExact(I.isExact()); in visitSDiv()
[all …]
DInstCombineSimplifyDemanded.cpp598 if (cast<LShrOperator>(I)->isExact()) in SimplifyDemandedUseBits()
643 if (cast<AShrOperator>(I)->isExact()) in SimplifyDemandedUseBits()
667 NewVal->setIsExact(cast<BinaryOperator>(I)->isExact()); in SimplifyDemandedUseBits()
858 if (cast<BinaryOperator>(Shr)->isExact()) in SimplifyShrShlDemandedBits()
DInstCombineCompares.cpp903 ConstantInt *RangeSize = DivI->isExact() ? getOne(Prod) : DivRHS; in FoldICmpDivCst()
944 if (DivI->isExact()) in FoldICmpDivCst()
1038 (!Shr->isExact() || ShAmtVal == TypeBits - 1)) in FoldICmpShrCst()
1049 Builder->CreateSDiv(Shr->getOperand(0), DivCst, "", Shr->isExact()) : in FoldICmpShrCst()
1050 Builder->CreateUDiv(Shr->getOperand(0), DivCst, "", Shr->isExact()); in FoldICmpShrCst()
1086 if (Shr->hasOneUse() && Shr->isExact()) in FoldICmpShrCst()
1760 if (ICI.isEquality() && BO->isExact() && BO->hasOneUse()) { in visitICmpInstWithInstAndIntCst()
3599 if (!BO0->isExact() || !BO1->isExact()) in visitICmpInst()
DInstCombineSelect.cpp235 BO->setIsExact(TVI_BO->isExact()); in FoldSelectIntoOp()
270 BO->setIsExact(FVI_BO->isExact()); in FoldSelectIntoOp()
DInstCombineVectorOps.cpp652 New->setIsExact(BO->isExact()); in buildNew()
/external/llvm/lib/Analysis/
DDemandedBits.cpp166 if (cast<LShrOperator>(UserI)->isExact()) in determineLiveOperandBits()
185 if (cast<AShrOperator>(UserI)->isExact()) in determineLiveOperandBits()
DInstructionSimplify.cpp1350 bool isExact, const Query &Q, in SimplifyRightShift() argument
1362 return isExact ? Op0 : Constant::getNullValue(Op0->getType()); in SimplifyRightShift()
1365 if (isExact) { in SimplifyRightShift()
1407 static Value *SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyLShrInst() argument
1409 if (Value *V = SimplifyRightShift(Instruction::LShr, Op0, Op1, isExact, Q, in SimplifyLShrInst()
1421 Value *llvm::SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyLShrInst() argument
1426 return ::SimplifyLShrInst(Op0, Op1, isExact, Query(DL, TLI, DT, AC, CxtI), in SimplifyLShrInst()
1432 static Value *SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyAShrInst() argument
1434 if (Value *V = SimplifyRightShift(Instruction::AShr, Op0, Op1, isExact, Q, in SimplifyAShrInst()
1455 Value *llvm::SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyAShrInst() argument
[all …]
DConstantFolding.cpp1388 bool isExact = false; in ConstantFoldConvertToInt() local
1393 &isExact); in ConstantFoldConvertToInt()
/external/llvm/unittests/Transforms/Utils/
DCloning.cpp149 EXPECT_FALSE(this->clone(SDiv)->isExact()); in TEST_F()
152 EXPECT_TRUE(this->clone(SDiv)->isExact()); in TEST_F()
/external/llvm/unittests/ADT/
DAPFloatTest.cpp953 bool isExact = false; in TEST() local
958 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST()
959 EXPECT_TRUE(isExact); in TEST()
964 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST()
965 EXPECT_FALSE(isExact); in TEST()
970 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST()
971 EXPECT_FALSE(isExact); in TEST()
976 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST()
977 EXPECT_FALSE(isExact); in TEST()
983 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST()
[all …]
/external/llvm/lib/Support/
DAPFloat.cpp2100 bool *isExact) const in convertToSignExtendedInteger()
2106 *isExact = false; in convertToSignExtendedInteger()
2117 *isExact = !sign; in convertToSignExtendedInteger()
2193 *isExact = true; in convertToSignExtendedInteger()
2211 roundingMode rounding_mode, bool *isExact) const in convertToInteger()
2216 isExact); in convertToInteger()
2244 roundingMode rounding_mode, bool *isExact) const in convertToInteger()
2249 parts.data(), bitWidth, result.isSigned(), rounding_mode, isExact); in convertToInteger()
/external/llvm/lib/IR/
DConstants.cpp2226 Constant *ConstantExpr::getUDiv(Constant *C1, Constant *C2, bool isExact) { in getUDiv() argument
2228 isExact ? PossiblyExactOperator::IsExact : 0); in getUDiv()
2231 Constant *ConstantExpr::getSDiv(Constant *C1, Constant *C2, bool isExact) { in getSDiv() argument
2233 isExact ? PossiblyExactOperator::IsExact : 0); in getSDiv()
2271 Constant *ConstantExpr::getLShr(Constant *C1, Constant *C2, bool isExact) { in getLShr() argument
2273 isExact ? PossiblyExactOperator::IsExact : 0); in getLShr()
2276 Constant *ConstantExpr::getAShr(Constant *C1, Constant *C2, bool isExact) { in getAShr() argument
2278 isExact ? PossiblyExactOperator::IsExact : 0); in getAShr()
DInstructions.cpp2193 bool BinaryOperator::isExact() const { in isExact() function in BinaryOperator
2194 return cast<PossiblyExactOperator>(this)->isExact(); in isExact()
2206 setIsExact(PE->isExact()); in copyIRFlags()
2220 setIsExact(isExact() & PE->isExact()); in andIRFlags()
/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp235 bool isExact; in materializeConstant() local
237 APFloat::rmTowardZero, &isExact); in materializeConstant()
238 if (isExact) { in materializeConstant()
433 cast<BinaryOperator>(I)->isExact() && isPowerOf2_64(Imm)) { in selectBinaryOp()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp261 bool isExact = false; in ConvertToSInt() local
265 &isExact) != APFloat::opOK || !isExact) in ConvertToSInt()
/external/testng/ant/
Divy-2.1.0.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/LICENSE META-INF ...

12