Home
last modified time | relevance | path

Searched refs:OBO (Results 1 – 25 of 33) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DConstantRangeTest.cpp698 typedef OverflowingBinaryOperator OBO; in TEST() typedef
704 Instruction::Add, C, OBO::NoUnsignedWrap); in TEST()
709 Instruction::Add, C, OBO::NoSignedWrap); in TEST()
714 Instruction::Add, C, OBO::NoSignedWrap | OBO::NoUnsignedWrap); in TEST()
749 Instruction::Sub, C, OBO::NoUnsignedWrap); in TEST()
754 Instruction::Sub, C, OBO::NoSignedWrap); in TEST()
759 Instruction::Sub, C, OBO::NoSignedWrap | OBO::NoUnsignedWrap); in TEST()
792 OBO::NoSignedWrap); in TEST()
798 OBO::NoSignedWrap); in TEST()
804 OBO::NoUnsignedWrap); in TEST()
[all …]
/external/llvm/unittests/IR/
DConstantRangeTest.cpp614 typedef OverflowingBinaryOperator OBO; in TEST() typedef
620 Instruction::Add, C, OBO::NoUnsignedWrap); in TEST()
625 Instruction::Add, C, OBO::NoSignedWrap); in TEST()
630 Instruction::Add, C, OBO::NoSignedWrap | OBO::NoUnsignedWrap); in TEST()
663 OBO::NoSignedWrap); in TEST()
669 OBO::NoUnsignedWrap); in TEST()
675 OBO::NoUnsignedWrap | OBO::NoSignedWrap); in TEST()
681 Instruction::Add, OneToFive, OBO::NoSignedWrap), in TEST()
685 Instruction::Add, OneToFive, OBO::NoUnsignedWrap), in TEST()
689 Instruction::Add, OneToFive, OBO::NoUnsignedWrap | OBO::NoSignedWrap), in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstantRange.cpp183 using OBO = OverflowingBinaryOperator; in makeGuaranteedNoWrapRegion() typedef
196 assert((NoWrapKind == OBO::NoSignedWrap || in makeGuaranteedNoWrapRegion()
197 NoWrapKind == OBO::NoUnsignedWrap || in makeGuaranteedNoWrapRegion()
198 NoWrapKind == (OBO::NoUnsignedWrap | OBO::NoSignedWrap)) && in makeGuaranteedNoWrapRegion()
214 if (NoWrapKind & OBO::NoUnsignedWrap) in makeGuaranteedNoWrapRegion()
218 if (NoWrapKind & OBO::NoSignedWrap) { in makeGuaranteedNoWrapRegion()
239 if (NoWrapKind & OBO::NoUnsignedWrap) in makeGuaranteedNoWrapRegion()
243 if (NoWrapKind & OBO::NoSignedWrap) { in makeGuaranteedNoWrapRegion()
259 if (NoWrapKind == (OBO::NoSignedWrap | OBO::NoUnsignedWrap)) { in makeGuaranteedNoWrapRegion()
261 makeGuaranteedNoWrapRegion(BinOp, Other, OBO::NoSignedWrap), in makeGuaranteedNoWrapRegion()
[all …]
DAsmWriter.cpp1260 if (const OverflowingBinaryOperator *OBO = in WriteOptimizationInfo() local
1262 if (OBO->hasNoUnsignedWrap()) in WriteOptimizationInfo()
1264 if (OBO->hasNoSignedWrap()) in WriteOptimizationInfo()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp406 using OBO = OverflowingBinaryOperator; in willNotOverflow() typedef
423 return NoWrap(Instruction::Add, OBO::NoUnsignedWrap); in willNotOverflow()
425 return NoWrap(Instruction::Add, OBO::NoSignedWrap); in willNotOverflow()
427 return NoWrap(Instruction::Sub, OBO::NoUnsignedWrap); in willNotOverflow()
429 return NoWrap(Instruction::Sub, OBO::NoSignedWrap); in willNotOverflow()
608 using OBO = OverflowingBinaryOperator; in processAdd() typedef
641 BinaryOperator::Add, LRange, OBO::NoUnsignedWrap); in processAdd()
650 BinaryOperator::Add, LRange, OBO::NoSignedWrap); in processAdd()
DIndVarSimplify.cpp1243 const OverflowingBinaryOperator *OBO = in getExtendedOperandRecurrence() local
1246 if (ExtKind == SignExtended && OBO->hasNoSignedWrap()) in getExtendedOperandRecurrence()
1249 else if(ExtKind == ZeroExtended && OBO->hasNoUnsignedWrap()) in getExtendedOperandRecurrence()
/external/llvm/lib/IR/
DConstantRange.cpp172 typedef OverflowingBinaryOperator OBO; in makeGuaranteedNoWrapRegion() typedef
186 assert((NoWrapKind == OBO::NoSignedWrap || in makeGuaranteedNoWrapRegion()
187 NoWrapKind == OBO::NoUnsignedWrap || in makeGuaranteedNoWrapRegion()
188 NoWrapKind == (OBO::NoUnsignedWrap | OBO::NoSignedWrap)) && in makeGuaranteedNoWrapRegion()
203 if (NoWrapKind & OBO::NoUnsignedWrap) in makeGuaranteedNoWrapRegion()
208 if (NoWrapKind & OBO::NoSignedWrap) { in makeGuaranteedNoWrapRegion()
DAsmWriter.cpp1112 if (const OverflowingBinaryOperator *OBO = in WriteOptimizationInfo() local
1114 if (OBO->hasNoUnsignedWrap()) in WriteOptimizationInfo()
1116 if (OBO->hasNoSignedWrap()) in WriteOptimizationInfo()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DIndVarSimplify.cpp913 if (const OverflowingBinaryOperator *OBO = in CloneIVUser() local
915 if (OBO->hasNoUnsignedWrap()) WideBO->setHasNoUnsignedWrap(); in CloneIVUser()
916 if (OBO->hasNoSignedWrap()) WideBO->setHasNoSignedWrap(); in CloneIVUser()
938 const OverflowingBinaryOperator *OBO = in GetExtendedOperandRecurrence() local
940 if (IsSigned && OBO->hasNoSignedWrap()) in GetExtendedOperandRecurrence()
943 else if(!IsSigned && OBO->hasNoUnsignedWrap()) in GetExtendedOperandRecurrence()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp703 auto *OBO = cast<OverflowingBinaryOperator>(Op0); in commonIDivTransforms() local
704 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
705 Mul->setHasNoSignedWrap(OBO->hasNoSignedWrap()); in commonIDivTransforms()
729 auto *OBO = cast<OverflowingBinaryOperator>(Op0); in commonIDivTransforms() local
730 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
731 Mul->setHasNoSignedWrap(OBO->hasNoSignedWrap()); in commonIDivTransforms()
DInstructionCombining.cpp195 OverflowingBinaryOperator *OBO = dyn_cast<OverflowingBinaryOperator>(&I); in MaintainNoSignedWrap() local
196 if (!OBO || !OBO->hasNoSignedWrap()) in MaintainNoSignedWrap()
/external/llvm/lib/Analysis/
DLoopAccessAnalysis.cpp854 if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(NonConstIndex)) in isNoWrapAddRec() local
855 if (OBO->hasNoSignedWrap() && in isNoWrapAddRec()
858 isa<ConstantInt>(OBO->getOperand(1))) { in isNoWrapAddRec()
859 auto *OpScev = PSE.getSCEV(OBO->getOperand(0)); in isNoWrapAddRec()
DValueTracking.cpp3564 auto *OBO = cast<OverflowingBinaryOperator>(I); in propagatesFullPoison() local
3565 return OBO->hasNoUnsignedWrap() || OBO->hasNoSignedWrap(); in propagatesFullPoison()
3580 auto *OBO = cast<OverflowingBinaryOperator>(I); in propagatesFullPoison() local
3581 if (OBO->hasNoUnsignedWrap() || OBO->hasNoSignedWrap()) { in propagatesFullPoison()
3582 for (Value *V : OBO->operands()) { in propagatesFullPoison()
DScalarEvolution.cpp1975 typedef OverflowingBinaryOperator OBO; in StrengthenNoWrapFlags() typedef
2006 Instruction::Add, C, OBO::NoSignedWrap); in StrengthenNoWrapFlags()
2012 Instruction::Add, C, OBO::NoUnsignedWrap); in StrengthenNoWrapFlags()
3759 typedef OverflowingBinaryOperator OBO; in proveNoWrapViaConstantRanges() typedef
3767 Instruction::Add, IncRange, OBO::NoSignedWrap); in proveNoWrapViaConstantRanges()
3777 Instruction::Add, IncRange, OBO::NoUnsignedWrap); in proveNoWrapViaConstantRanges()
3803 if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(Op)) { in BinaryOp() local
3804 IsNSW = OBO->hasNoSignedWrap(); in BinaryOp()
3805 IsNUW = OBO->hasNoUnsignedWrap(); in BinaryOp()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DLoopAccessAnalysis.cpp976 if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(NonConstIndex)) in isNoWrapAddRec() local
977 if (OBO->hasNoSignedWrap() && in isNoWrapAddRec()
980 isa<ConstantInt>(OBO->getOperand(1))) { in isNoWrapAddRec()
981 auto *OpScev = PSE.getSCEV(OBO->getOperand(0)); in isNoWrapAddRec()
DScalarEvolution.cpp2304 using OBO = OverflowingBinaryOperator; in StrengthenNoWrapFlags() typedef
2346 Opcode, C, OBO::NoSignedWrap); in StrengthenNoWrapFlags()
2354 Opcode, C, OBO::NoUnsignedWrap); in StrengthenNoWrapFlags()
4416 using OBO = OverflowingBinaryOperator; in proveNoWrapViaConstantRanges() typedef
4425 Instruction::Add, IncRange, OBO::NoSignedWrap); in proveNoWrapViaConstantRanges()
4435 Instruction::Add, IncRange, OBO::NoUnsignedWrap); in proveNoWrapViaConstantRanges()
4462 if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(Op)) { in BinaryOp() local
4463 IsNSW = OBO->hasNoSignedWrap(); in BinaryOp()
4464 IsNUW = OBO->hasNoUnsignedWrap(); in BinaryOp()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp1139 const OverflowingBinaryOperator *OBO = in getExtendedOperandRecurrence() local
1141 if (IsSigned && OBO->hasNoSignedWrap()) in getExtendedOperandRecurrence()
1144 else if(!IsSigned && OBO->hasNoUnsignedWrap()) in getExtendedOperandRecurrence()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstructionCombining.cpp118 OverflowingBinaryOperator *OBO = dyn_cast<OverflowingBinaryOperator>(&I); in MaintainNoSignedWrap() local
119 if (!OBO || !OBO->hasNoSignedWrap()) { in MaintainNoSignedWrap()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DAsmWriter.cpp681 if (const OverflowingBinaryOperator *OBO = in WriteOptimizationInfo() local
683 if (OBO->hasNoUnsignedWrap()) in WriteOptimizationInfo()
685 if (OBO->hasNoSignedWrap()) in WriteOptimizationInfo()
/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp78 bool strengthenOverflowingOperation(BinaryOperator *OBO, Value *IVOperand);
/external/swiftshader/third_party/LLVM/lib/Bitcode/Writer/
DBitcodeWriter.cpp536 if (const OverflowingBinaryOperator *OBO = in GetOptimizationFlags() local
538 if (OBO->hasNoSignedWrap()) in GetOptimizationFlags()
540 if (OBO->hasNoUnsignedWrap()) in GetOptimizationFlags()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp128 OverflowingBinaryOperator *OBO = dyn_cast<OverflowingBinaryOperator>(&I); in MaintainNoSignedWrap() local
129 if (!OBO || !OBO->hasNoSignedWrap()) in MaintainNoSignedWrap()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DValueTracking.cpp445 OverflowingBinaryOperator *OBO = cast<OverflowingBinaryOperator>(I); in ComputeMaskedBits() local
446 if (OBO->hasNoSignedWrap()) { in ComputeMaskedBits()
DScalarEvolution.cpp3042 if (const AddOperator *OBO = dyn_cast<AddOperator>(BEValueV)) { in createNodeForPHI() local
3043 if (OBO->hasNoUnsignedWrap()) in createNodeForPHI()
3045 if (OBO->hasNoSignedWrap()) in createNodeForPHI()
3602 OverflowingBinaryOperator *OBO = cast<OverflowingBinaryOperator>(V); in createSCEV() local
3603 if (OBO->hasNoSignedWrap()) in createSCEV()
3605 if (OBO->hasNoUnsignedWrap()) in createSCEV()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp94 bool strengthenOverflowingOperation(BinaryOperator *OBO, Value *IVOperand);

12