Home
last modified time | relevance | path

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

1234

/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/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/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/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()
DInstCombineShifts.cpp669 I.isExact(), TD)) in visitLShr()
697 if (!I.isExact() && in visitLShr()
709 I.isExact(), TD)) in visitAShr()
743 if (!I.isExact() && in visitAShr()
/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/skia/tests/
DDetermineDomainModeTest.cpp134 bool isExact, in create_proxy() argument
137 SkBackingFit fit = isExact ? SkBackingFit::kExact : SkBackingFit::kApprox; in create_proxy()
150 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, in create_proxy()
151 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, in create_proxy()
361 for (auto isExact : { true, false }) { in proxy_test()
365 isExact, &outermost); in proxy_test()
/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/skia/src/gpu/
DGrSurfaceProxyPriv.h56 bool isExact() const { return SkBackingFit::kExact == fProxy->fFit; } in isExact() function
/external/swiftshader/third_party/LLVM/include/llvm/
DConstants.h638 static Constant *getUDiv(Constant *C1, Constant *C2, bool isExact = false);
639 static Constant *getSDiv(Constant *C1, Constant *C2, bool isExact = false);
649 static Constant *getLShr(Constant *C1, Constant *C2, bool isExact = false);
650 static Constant *getAShr(Constant *C1, Constant *C2, bool isExact = false);
/external/skia/src/image/
DSkSurface_Gpu.cpp28 SkASSERT(fDevice->accessRenderTargetContext()->asSurfaceProxy()->priv().isExact()); in SkSurface_Gpu()
118 SkASSERT(srcProxy->priv().isExact()); in onNewImageSnapshot()
/external/llvm/lib/Analysis/
DDemandedBits.cpp168 if (cast<LShrOperator>(UserI)->isExact()) in determineLiveOperandBits()
187 if (cast<AShrOperator>(UserI)->isExact()) in determineLiveOperandBits()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInstructionSimplify.cpp762 if (Div->isExact()) in SimplifyMulInst()
1087 cast<PossiblyExactOperator>(Op0)->isExact()) in SimplifyShlInst()
1099 static Value *SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyLShrInst() argument
1118 Value *llvm::SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyLShrInst() argument
1120 return ::SimplifyLShrInst(Op0, Op1, isExact, TD, DT, RecursionLimit); in SimplifyLShrInst()
1125 static Value *SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyAShrInst() argument
1148 Value *llvm::SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyAShrInst() argument
1150 return ::SimplifyAShrInst(Op0, Op1, isExact, TD, DT, RecursionLimit); in SimplifyAShrInst()
1884 if (!LBO->isExact() || !RBO->isExact()) in SimplifyICmpInst()
2470 cast<BinaryOperator>(I)->isExact(), in SimplifyInstruction()
[all …]
/external/spirv-llvm/lib/SPIRV/
DSPIRVRegularizeLLVM.cpp141 if (isa<PossiblyExactOperator>(BO) && BO->isExact()) in regularize()

1234