/external/llvm/include/llvm/Support/ |
D | ConstantFolder.h | 56 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);
|
D | TargetFolder.h | 71 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));
|
D | NoFolder.h | 89 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)
|
D | PatternMatch.h | 477 return PEO->isExact() && SubPattern.match(V); in match()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 34 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()
|
D | InstCombineShifts.cpp | 585 ShiftOp->isExact()) { in FoldShiftByConstant() 604 NewLShr->setIsExact(I.isExact()); in FoldShiftByConstant() 623 NewAShr->setIsExact(I.isExact()); in FoldShiftByConstant() 636 ShiftOp->isExact()) { in FoldShiftByConstant() 720 I.isExact(), TD)) in visitLShr() 748 if (!I.isExact() && in visitLShr() 760 I.isExact(), TD)) in visitAShr() 794 if (!I.isExact() && in visitAShr()
|
D | InstCombineMulDivRem.cpp | 57 if (I->getOpcode() == Instruction::LShr && !I->isExact()) { in simplifyValueKnownNonZero() 199 if (SDiv->isExact()) { in visitMul() 451 if (I.isExact()) LShr->setIsExact(); in visitUDiv() 483 if (I.isExact()) in visitUDiv() 495 I.isExact()); in visitUDiv() 499 I.isExact()); in visitUDiv() 510 I.isExact()), in visitUDiv() 532 if (I.isExact() && RHS->getValue().isNonNegative() && in visitSDiv()
|
D | InstCombineCompares.cpp | 816 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() 1337 if (ICI.isEquality() && BO->isExact() && BO->hasOneUse()) { in visitICmpInstWithInstAndIntCst() 2478 if (!BO0->isExact() || !BO1->isExact()) in visitICmpInst()
|
D | InstCombineSimplifyDemanded.cpp | 614 if (cast<LShrOperator>(I)->isExact()) in SimplifyDemandedUseBits() 659 if (cast<AShrOperator>(I)->isExact()) in SimplifyDemandedUseBits() 683 NewVal->setIsExact(cast<BinaryOperator>(I)->isExact()); in SimplifyDemandedUseBits()
|
D | InstCombineSelect.cpp | 237 BO->setIsExact(TVI_BO->isExact()); in FoldSelectIntoOp() 272 BO->setIsExact(FVI_BO->isExact()); in FoldSelectIntoOp()
|
/external/llvm/unittests/ADT/ |
D | APFloatTest.cpp | 351 bool isExact = false; in TEST() local 356 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST() 357 EXPECT_TRUE(isExact); in TEST() 362 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST() 363 EXPECT_FALSE(isExact); in TEST() 368 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST() 369 EXPECT_FALSE(isExact); in TEST() 374 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST() 375 EXPECT_FALSE(isExact); in TEST() 381 .convertToInteger(result, APFloat::rmTowardZero, &isExact)); in TEST() [all …]
|
/external/llvm/include/llvm/ |
D | IRBuilder.h | 605 bool isExact = false) { 608 return Insert(Folder.CreateUDiv(LC, RC, isExact), Name); 609 if (!isExact) 617 bool isExact = false) { 620 return Insert(Folder.CreateSDiv(LC, RC, isExact), Name); 621 if (!isExact) 677 bool isExact = false) { 680 return Insert(Folder.CreateLShr(LC, RC, isExact), Name); 681 if (!isExact) 686 bool isExact = false) { [all …]
|
D | Constants.h | 855 static Constant *getUDiv(Constant *C1, Constant *C2, bool isExact = false); 856 static Constant *getSDiv(Constant *C1, Constant *C2, bool isExact = false); 866 static Constant *getLShr(Constant *C1, Constant *C2, bool isExact = false); 867 static Constant *getAShr(Constant *C1, Constant *C2, bool isExact = false);
|
D | Operator.h | 145 bool isExact() const { in isExact() function
|
D | InstrTypes.h | 361 bool isExact() const;
|
/external/llvm/unittests/Transforms/Utils/ |
D | Cloning.cpp | 140 EXPECT_FALSE(this->clone(SDiv)->isExact()); in TEST_F() 143 EXPECT_TRUE(this->clone(SDiv)->isExact()); in TEST_F()
|
/external/llvm/include/llvm/Analysis/ |
D | InstructionSimplify.h | 97 Value *SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact, 104 Value *SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact,
|
/external/llvm/lib/Support/ |
D | APFloat.cpp | 1985 bool *isExact) const in convertToSignExtendedInteger() 1993 *isExact = false; in convertToSignExtendedInteger() 2004 *isExact = !sign; in convertToSignExtendedInteger() 2080 *isExact = true; in convertToSignExtendedInteger() 2098 roundingMode rounding_mode, bool *isExact) const in convertToInteger() 2103 isExact); in convertToInteger() 2131 roundingMode rounding_mode, bool *isExact) const in convertToInteger() 2136 parts.data(), bitWidth, result.isSigned(), rounding_mode, isExact); in convertToInteger()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 1259 static Value *SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyLShrInst() argument 1277 Value *llvm::SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyLShrInst() argument 1281 return ::SimplifyLShrInst(Op0, Op1, isExact, Query (TD, TLI, DT), in SimplifyLShrInst() 1287 static Value *SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyAShrInst() argument 1309 Value *llvm::SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyAShrInst() argument 1313 return ::SimplifyAShrInst(Op0, Op1, isExact, Query (TD, TLI, DT), in SimplifyAShrInst() 2150 if (!LBO->isExact() || !RBO->isExact()) in SimplifyICmpInst() 2814 cast<BinaryOperator>(I)->isExact(), in SimplifyInstruction() 2819 cast<BinaryOperator>(I)->isExact(), in SimplifyInstruction()
|
D | ConstantFolding.cpp | 1203 bool isExact = false; in ConstantFoldConvertToInt() local 1208 &isExact); in ConstantFoldConvertToInt()
|
/external/llvm/lib/VMCore/ |
D | Constants.cpp | 1955 Constant *ConstantExpr::getUDiv(Constant *C1, Constant *C2, bool isExact) { in getUDiv() argument 1957 isExact ? PossiblyExactOperator::IsExact : 0); in getUDiv() 1960 Constant *ConstantExpr::getSDiv(Constant *C1, Constant *C2, bool isExact) { in getSDiv() argument 1962 isExact ? PossiblyExactOperator::IsExact : 0); in getSDiv() 2000 Constant *ConstantExpr::getLShr(Constant *C1, Constant *C2, bool isExact) { in getLShr() argument 2002 isExact ? PossiblyExactOperator::IsExact : 0); in getLShr() 2005 Constant *ConstantExpr::getAShr(Constant *C1, Constant *C2, bool isExact) { in getAShr() argument 2007 isExact ? PossiblyExactOperator::IsExact : 0); in getAShr()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | FastISel.cpp | 194 bool isExact; in materializeRegForValue() local 196 APFloat::rmTowardZero, &isExact); in materializeRegForValue() 197 if (isExact) { in materializeRegForValue() 393 cast<BinaryOperator>(I)->isExact() && in SelectBinaryOp()
|
/external/llvm/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 222 bool isExact = false; in ConvertToSInt() local 228 &isExact) != APFloat::opOK || !isExact) in ConvertToSInt()
|
/external/clang/lib/Sema/ |
D | SemaChecking.cpp | 3810 if (FLL->isExact()) in CheckFloatComparison() 3814 if (FLR->isExact()) in CheckFloatComparison() 4464 bool isExact = false; in DiagnoseFloatingLiteralImpCast() local 4469 llvm::APFloat::rmTowardZero, &isExact) in DiagnoseFloatingLiteralImpCast() 4470 == llvm::APFloat::opOK && isExact) in DiagnoseFloatingLiteralImpCast()
|
/external/clang/lib/AST/ |
D | StmtProfile.cpp | 283 ID.AddBoolean(S->isExact()); in VisitFloatingLiteral()
|