Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/Support/
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);
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));
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)
DPatternMatch.h558 return PEO->isExact() && SubPattern.match(V); in match()
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp34 bool isNUW = false, isNSW = false, isExact = false; in FoldPHIArgBinOpIntoPHI() local
41 isExact = PEO->isExact(); in FoldPHIArgBinOpIntoPHI()
62 if (isExact) in FoldPHIArgBinOpIntoPHI()
63 isExact = cast<PossiblyExactOperator>(I)->isExact(); in FoldPHIArgBinOpIntoPHI()
125 if (isExact) NewBinOp->setIsExact(); in FoldPHIArgBinOpIntoPHI()
405 bool isNUW = false, isNSW = false, isExact = false; in FoldPHIArgOpIntoPHI() local
429 isExact = PEO->isExact(); in FoldPHIArgOpIntoPHI()
450 if (isExact) in FoldPHIArgOpIntoPHI()
451 isExact = cast<PossiblyExactOperator>(I)->isExact(); in FoldPHIArgOpIntoPHI()
494 if (isExact) BinOp->setIsExact(); in FoldPHIArgOpIntoPHI()
DInstCombineShifts.cpp582 ShiftOp->isExact()) { in FoldShiftByConstant()
601 NewLShr->setIsExact(I.isExact()); in FoldShiftByConstant()
620 NewAShr->setIsExact(I.isExact()); in FoldShiftByConstant()
633 ShiftOp->isExact()) { in FoldShiftByConstant()
717 I.isExact(), TD)) in visitLShr()
745 if (!I.isExact() && in visitLShr()
757 I.isExact(), TD)) in visitAShr()
791 if (!I.isExact() && in visitAShr()
DInstCombineMulDivRem.cpp56 if (I->getOpcode() == Instruction::LShr && !I->isExact()) { in simplifyValueKnownNonZero()
198 if (SDiv->isExact()) { in visitMul()
697 if (I.isExact()) LShr->setIsExact(); in visitUDiv()
730 if (I.isExact()) in visitUDiv()
742 I.isExact()); in visitUDiv()
746 I.isExact()); in visitUDiv()
757 I.isExact()), in visitUDiv()
779 if (I.isExact() && RHS->getValue().isNonNegative() && in visitSDiv()
DInstCombineSimplifyDemanded.cpp639 if (cast<LShrOperator>(I)->isExact()) in SimplifyDemandedUseBits()
684 if (cast<AShrOperator>(I)->isExact()) in SimplifyDemandedUseBits()
708 NewVal->setIsExact(cast<BinaryOperator>(I)->isExact()); in SimplifyDemandedUseBits()
894 if (cast<BinaryOperator>(Shr)->isExact()) in SimplifyShrShlDemandedBits()
DInstCombineCompares.cpp816 ConstantInt *RangeSize = DivI->isExact() ? getOne(Prod) : DivRHS; in FoldICmpDivCst()
858 if (DivI->isExact()) in FoldICmpDivCst()
952 (!Shr->isExact() || ShAmtVal == TypeBits - 1)) in FoldICmpShrCst()
963 Builder->CreateSDiv(Shr->getOperand(0), DivCst, "", Shr->isExact()) : in FoldICmpShrCst()
964 Builder->CreateUDiv(Shr->getOperand(0), DivCst, "", Shr->isExact()); in FoldICmpShrCst()
1002 if (Shr->hasOneUse() && Shr->isExact()) in FoldICmpShrCst()
1367 if (ICI.isEquality() && BO->isExact() && BO->hasOneUse()) { in visitICmpInstWithInstAndIntCst()
2525 if (!BO0->isExact() || !BO1->isExact()) in visitICmpInst()
DInstCombineSelect.cpp237 BO->setIsExact(TVI_BO->isExact()); in FoldSelectIntoOp()
272 BO->setIsExact(FVI_BO->isExact()); in FoldSelectIntoOp()
/external/llvm/unittests/ADT/
DAPFloatTest.cpp403 bool isExact = false; in TEST() local
408 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST()
409 EXPECT_TRUE(isExact); in TEST()
414 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST()
415 EXPECT_FALSE(isExact); in TEST()
420 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST()
421 EXPECT_FALSE(isExact); in TEST()
426 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST()
427 EXPECT_FALSE(isExact); in TEST()
433 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST()
[all …]
/external/smack/src/org/xbill/DNS/
DZone.java348 boolean isExact = (tlabels == labels); in lookup()
352 else if (isExact) in lookup()
370 if (isExact && type == Type.ANY) { in lookup()
382 if (isExact) { in lookup()
401 if (isExact) in lookup()
DCache.java416 boolean isExact = (tlabels == labels); in lookup()
420 else if (isExact) in lookup()
434 if (isExact && type == Type.ANY) { in lookup()
454 } else if (isExact) { in lookup()
491 if (isExact) { in lookup()
/external/llvm/include/llvm/IR/
DIRBuilder.h637 bool isExact = false) {
640 return Insert(Folder.CreateUDiv(LC, RC, isExact), Name);
641 if (!isExact)
649 bool isExact = false) {
652 return Insert(Folder.CreateSDiv(LC, RC, isExact), Name);
653 if (!isExact)
709 bool isExact = false) {
712 return Insert(Folder.CreateLShr(LC, RC, isExact), Name);
713 if (!isExact)
718 bool isExact = false) {
[all …]
DConstants.h841 static Constant *getUDiv(Constant *C1, Constant *C2, bool isExact = false);
842 static Constant *getSDiv(Constant *C1, Constant *C2, bool isExact = false);
852 static Constant *getLShr(Constant *C1, Constant *C2, bool isExact = false);
853 static Constant *getAShr(Constant *C1, Constant *C2, bool isExact = false);
DOperator.h147 bool isExact() const { in isExact() function
DInstrTypes.h359 bool isExact() const;
/external/llvm/unittests/Transforms/Utils/
DCloning.cpp143 EXPECT_FALSE(this->clone(SDiv)->isExact()); in TEST_F()
146 EXPECT_TRUE(this->clone(SDiv)->isExact()); in TEST_F()
/external/llvm/include/llvm/Analysis/
DInstructionSimplify.h135 Value *SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact,
142 Value *SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact,
/external/llvm/lib/Support/
DAPFloat.cpp1949 bool *isExact) const in convertToSignExtendedInteger()
1955 *isExact = false; in convertToSignExtendedInteger()
1966 *isExact = !sign; in convertToSignExtendedInteger()
2042 *isExact = true; in convertToSignExtendedInteger()
2060 roundingMode rounding_mode, bool *isExact) const in convertToInteger()
2065 isExact); in convertToInteger()
2093 roundingMode rounding_mode, bool *isExact) const in convertToInteger()
2098 parts.data(), bitWidth, result.isSigned(), rounding_mode, isExact); in convertToInteger()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1361 static Value *SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyLShrInst() argument
1379 Value *llvm::SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyLShrInst() argument
1383 return ::SimplifyLShrInst(Op0, Op1, isExact, Query (TD, TLI, DT), in SimplifyLShrInst()
1389 static Value *SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyAShrInst() argument
1411 Value *llvm::SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyAShrInst() argument
1415 return ::SimplifyAShrInst(Op0, Op1, isExact, Query (TD, TLI, DT), in SimplifyAShrInst()
2316 if (!LBO->isExact() || !RBO->isExact()) in SimplifyICmpInst()
3074 cast<BinaryOperator>(I)->isExact(), in SimplifyInstruction()
3079 cast<BinaryOperator>(I)->isExact(), in SimplifyInstruction()
DConstantFolding.cpp1246 bool isExact = false; in ConstantFoldConvertToInt() local
1251 &isExact); in ConstantFoldConvertToInt()
/external/llvm/lib/IR/
DConstants.cpp2030 Constant *ConstantExpr::getUDiv(Constant *C1, Constant *C2, bool isExact) { in getUDiv() argument
2032 isExact ? PossiblyExactOperator::IsExact : 0); in getUDiv()
2035 Constant *ConstantExpr::getSDiv(Constant *C1, Constant *C2, bool isExact) { in getSDiv() argument
2037 isExact ? PossiblyExactOperator::IsExact : 0); in getSDiv()
2075 Constant *ConstantExpr::getLShr(Constant *C1, Constant *C2, bool isExact) { in getLShr() argument
2077 isExact ? PossiblyExactOperator::IsExact : 0); in getLShr()
2080 Constant *ConstantExpr::getAShr(Constant *C1, Constant *C2, bool isExact) { in getAShr() argument
2082 isExact ? PossiblyExactOperator::IsExact : 0); in getAShr()
/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp215 bool isExact; in materializeRegForValue() local
217 APFloat::rmTowardZero, &isExact); in materializeRegForValue()
218 if (isExact) { in materializeRegForValue()
414 cast<BinaryOperator>(I)->isExact() && in SelectBinaryOp()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp222 bool isExact = false; in ConvertToSInt() local
226 &isExact) != APFloat::opOK || !isExact) in ConvertToSInt()

12