Home
last modified time | relevance | path

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

123456

/external/swiftshader/third_party/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);
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)
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));
DIRBuilder.h561 bool isExact = false) {
564 return Insert(Folder.CreateUDiv(LC, RC, isExact), Name);
565 if (!isExact)
573 bool isExact = false) {
576 return Insert(Folder.CreateSDiv(LC, RC, isExact), Name);
577 if (!isExact)
629 bool isExact = false) {
632 return Insert(Folder.CreateLShr(LC, RC, isExact), Name);
633 if (!isExact)
638 bool isExact = false) {
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DConstantFolder.h64 bool isExact = false) const {
65 return ConstantExpr::getUDiv(LHS, RHS, isExact);
69 bool isExact = false) const {
70 return ConstantExpr::getSDiv(LHS, RHS, isExact);
95 bool isExact = false) const {
96 return ConstantExpr::getLShr(LHS, RHS, isExact);
100 bool isExact = false) const {
101 return ConstantExpr::getAShr(LHS, RHS, isExact);
DNoFolder.h103 bool isExact = false) const {
104 if (!isExact)
114 bool isExact = false) const {
115 if (!isExact)
149 bool isExact = false) const {
150 if (!isExact)
156 bool isExact = false) const {
157 if (!isExact)
DIRBuilder.h1014 bool isExact = false) {
1017 return Insert(Folder.CreateUDiv(LC, RC, isExact), Name);
1018 if (!isExact)
1028 bool isExact = false) {
1031 return Insert(Folder.CreateSDiv(LC, RC, isExact), Name);
1032 if (!isExact)
1073 bool isExact = false) {
1076 return Insert(Folder.CreateLShr(LC, RC, isExact), Name);
1077 if (!isExact)
1083 bool isExact = false) {
[all …]
/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.h845 bool isExact = false) {
848 return Insert(Folder.CreateUDiv(LC, RC, isExact), Name);
849 if (!isExact)
857 bool isExact = false) {
860 return Insert(Folder.CreateSDiv(LC, RC, isExact), Name);
861 if (!isExact)
917 bool isExact = false) {
920 return Insert(Folder.CreateLShr(LC, RC, isExact), Name);
921 if (!isExact)
926 bool isExact = false) {
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DTargetFolder.h70 Constant *CreateUDiv(Constant *LHS, Constant *RHS, bool isExact = false)const{
71 return Fold(ConstantExpr::getUDiv(LHS, RHS, isExact));
73 Constant *CreateSDiv(Constant *LHS, Constant *RHS, bool isExact = false)const{
74 return Fold(ConstantExpr::getSDiv(LHS, RHS, isExact));
92 Constant *CreateLShr(Constant *LHS, Constant *RHS, bool isExact = false)const{
93 return Fold(ConstantExpr::getLShr(LHS, RHS, isExact));
95 Constant *CreateAShr(Constant *LHS, Constant *RHS, bool isExact = false)const{
96 return Fold(ConstantExpr::getAShr(LHS, RHS, isExact));
/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));
/external/swiftshader/third_party/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()
DInstCombineMulDivRem.cpp57 if (I->getOpcode() == Instruction::LShr && !I->isExact()) { in simplifyValueKnownNonZero()
199 if (SDiv->isExact()) { in visitMul()
453 if (I.isExact()) LShr->setIsExact(); in visitUDiv()
470 if (I.isExact()) in visitUDiv()
482 I.isExact()); in visitUDiv()
486 I.isExact()); in visitUDiv()
497 I.isExact()), in visitUDiv()
519 if (I.isExact() && RHS->getValue().isNonNegative() && in visitSDiv()
/external/skia/tests/
DDetermineDomainModeTest.cpp123 bool isExact, in create_proxy() argument
127 SkBackingFit fit = isExact ? SkBackingFit::kExact : SkBackingFit::kApprox; in create_proxy()
143 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, in create_proxy()
144 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, in create_proxy()
337 for (auto isExact : { true, false }) { in proxy_test()
341 isExact, &outermost); in proxy_test()
/external/skqp/tests/
DDetermineDomainModeTest.cpp123 bool isExact, in create_proxy() argument
127 SkBackingFit fit = isExact ? SkBackingFit::kExact : SkBackingFit::kApprox; in create_proxy()
143 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, in create_proxy()
144 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, in create_proxy()
337 for (auto isExact : { true, false }) { in proxy_test()
341 isExact, &outermost); in proxy_test()
/external/swiftshader/third_party/LLVM/unittests/ADT/
DAPFloatTest.cpp351 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/lib/Transforms/InstCombine/
DInstCombineShifts.cpp601 ShiftOp->isExact()) { in FoldShiftByConstant()
620 NewLShr->setIsExact(I.isExact()); in FoldShiftByConstant()
639 NewAShr->setIsExact(I.isExact()); in FoldShiftByConstant()
652 ShiftOp->isExact()) { in FoldShiftByConstant()
742 if (Value *V = SimplifyLShrInst(I.getOperand(0), I.getOperand(1), I.isExact(), in visitLShr()
771 if (!I.isExact() && in visitLShr()
786 if (Value *V = SimplifyAShrInst(I.getOperand(0), I.getOperand(1), I.isExact(), in visitAShr()
816 if (!I.isExact() && in visitAShr()
DInstCombineMulDivRem.cpp60 if (I->getOpcode() == Instruction::LShr && !I->isExact()) { in simplifyValueKnownNonZero()
324 if (SDiv->isExact()) { in visitMul()
841 BO->setIsExact(I.isExact()); in commonIDivTransforms()
869 BO->setIsExact(I.isExact()); in commonIDivTransforms()
979 if (I.isExact()) in foldUDivPow2Cst()
1008 if (I.isExact()) in foldUDivShl()
1078 bool IsExact = I.isExact() && match(Op0, m_Exact(m_Value())); in visitUDiv()
1092 Builder->CreateUDiv(ZOp0->getOperand(0), ZOp1, "div", I.isExact()), in visitUDiv()
1149 if (I.isExact() && Op1C->isNonNegative() && Op1C->isPowerOf2()) { in visitSDiv()
1181 BO->setIsExact(I.isExact()); in visitSDiv()
[all …]
/external/llvm/lib/IR/
DInstruction.cpp119 bool Instruction::isExact() const { in isExact() function in Instruction
120 return cast<PossiblyExactOperator>(this)->isExact(); in isExact()
229 setIsExact(PE->isExact()); in copyIRFlags()
247 setIsExact(isExact() & PE->isExact()); in andIRFlags()
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DInstructionSimplify.h82 Value *SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact,
87 Value *SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact,
/external/swiftshader/third_party/LLVM/unittests/Transforms/Utils/
DCloning.cpp138 EXPECT_FALSE(this->clone(SDiv)->isExact()); in TEST_F()
141 EXPECT_TRUE(this->clone(SDiv)->isExact()); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp80 if (I->getOpcode() == Instruction::LShr && !I->isExact()) { in simplifyValueKnownNonZero()
266 if (Div->isExact()) { in visitMul()
695 NewDiv->setIsExact(I.isExact()); in commonIDivTransforms()
721 BO->setIsExact(I.isExact()); in commonIDivTransforms()
829 if (I.isExact()) in foldUDivPow2Cst()
853 if (I.isExact()) in foldUDivShl()
951 bool IsExact = I.isExact() && match(Op0, m_Exact(m_Value())); in visitUDiv()
1048 if (I.isExact() && Op1C->isNonNegative() && Op1C->isPowerOf2()) { in visitSDiv()
1080 BO->setIsExact(I.isExact()); in visitSDiv()
1092 BO->setIsExact(I.isExact()); in visitSDiv()
[all …]
DInstCombineShifts.cpp696 if (Value *V = SimplifyLShrInst(I.getOperand(0), I.getOperand(1), I.isExact(), in visitLShr()
735 NewLShr->setIsExact(I.isExact()); in visitLShr()
739 Value *NewLShr = Builder.CreateLShr(X, ShiftDiff, "", I.isExact()); in visitLShr()
805 if (!I.isExact() && in visitLShr()
824 if (Value *V = SimplifyAShrInst(I.getOperand(0), I.getOperand(1), I.isExact(), in visitAShr()
859 NewAShr->setIsExact(I.isExact()); in visitAShr()
890 if (!I.isExact() && in visitAShr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstruction.cpp144 bool Instruction::isExact() const { in isExact() function in Instruction
145 return cast<PossiblyExactOperator>(this)->isExact(); in isExact()
254 setIsExact(PE->isExact()); in copyIRFlags()
276 setIsExact(isExact() & PE->isExact()); in andIRFlags()

123456