Home
last modified time | relevance | path

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

1234

/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/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/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-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));
DInstructionSimplify.h128 Value *SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact,
132 Value *SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact,
/external/skia/tests/
DDetermineDomainModeTest.cpp125 bool isExact, in create_proxy() argument
131 SkBackingFit fit = isExact ? SkBackingFit::kExact : SkBackingFit::kApprox; in create_proxy()
142 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, in create_proxy()
143 (isPowerOfTwo || isExact) ? RectInfo::kHard : RectInfo::kBad, in create_proxy()
338 for (auto isExact : { true, false }) { in proxy_test()
342 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/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-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()
/external/skia/src/gpu/
DGrSurfaceProxyPriv.h34 bool isExact() const { return SkBackingFit::kExact == fProxy->fFit; } in isExact() function
DGrRenderTargetProxy.cpp122 colorSamplesPerPixel, GrMipMapped::kNo, !this->priv().isExact()); in onUninstantiatedGpuMemorySize()
/external/skqp/src/gpu/
DGrSurfaceProxyPriv.h52 bool isExact() const { return SkBackingFit::kExact == fProxy->fFit; } in isExact() function
DGrRenderTargetProxy.cpp101 colorSamplesPerPixel, GrMipMapped::kNo, !this->priv().isExact()); in onUninstantiatedGpuMemorySize()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DDemandedBits.cpp178 if (cast<LShrOperator>(UserI)->isExact()) in determineLiveOperandBits()
196 if (cast<AShrOperator>(UserI)->isExact()) in determineLiveOperandBits()
DInstructionSimplify.cpp1260 Value *Op1, bool isExact, const SimplifyQuery &Q, in SimplifyRightShift() argument
1272 return isExact ? Op0 : Constant::getNullValue(Op0->getType()); in SimplifyRightShift()
1275 if (isExact) { in SimplifyRightShift()
1317 static Value *SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyLShrInst() argument
1319 if (Value *V = SimplifyRightShift(Instruction::LShr, Op0, Op1, isExact, Q, in SimplifyLShrInst()
1348 Value *llvm::SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyLShrInst() argument
1350 return ::SimplifyLShrInst(Op0, Op1, isExact, Q, RecursionLimit); in SimplifyLShrInst()
1355 static Value *SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyAShrInst() argument
1357 if (Value *V = SimplifyRightShift(Instruction::AShr, Op0, Op1, isExact, Q, in SimplifyAShrInst()
1379 Value *llvm::SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact, in SimplifyAShrInst() argument
[all …]
/external/llvm/lib/Analysis/
DDemandedBits.cpp168 if (cast<LShrOperator>(UserI)->isExact()) in determineLiveOperandBits()
187 if (cast<AShrOperator>(UserI)->isExact()) in determineLiveOperandBits()

1234