Home
last modified time | relevance | path

Searched refs:OverflowingBinaryOperator (Results 1 – 25 of 74) sorted by relevance

123

/external/swiftshader/third_party/LLVM/include/llvm/
DOperator.h71 class OverflowingBinaryOperator : public Operator {
79 ~OverflowingBinaryOperator(); // do not implement
105 static inline bool classof(const OverflowingBinaryOperator *) { return true; } in classof() argument
189 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Add> {
193 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Sub> {
197 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Mul> {
201 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
/external/llvm/lib/IR/
DInstruction.cpp100 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(b); in setHasNoUnsignedWrap()
104 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(b); in setHasNoSignedWrap()
112 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap()
116 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap()
219 if (auto *OB = dyn_cast<OverflowingBinaryOperator>(V)) { in copyIRFlags()
220 if (isa<OverflowingBinaryOperator>(this)) { in copyIRFlags()
238 if (auto *OB = dyn_cast<OverflowingBinaryOperator>(V)) { in andIRFlags()
239 if (isa<OverflowingBinaryOperator>(this)) { in andIRFlags()
DConstants.cpp2134 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getAdd()
2135 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getAdd()
2145 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getSub()
2146 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getSub()
2156 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getMul()
2157 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getMul()
2205 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getShl()
2206 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getShl()
2900 if (isa<OverflowingBinaryOperator>(BO)) { in getAsInstruction()
2902 OverflowingBinaryOperator::NoUnsignedWrap); in getAsInstruction()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstruction.cpp102 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(b); in setHasNoUnsignedWrap()
106 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(b); in setHasNoSignedWrap()
114 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap()
118 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap()
127 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(false); in dropPoisonGeneratingFlags()
128 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(false); in dropPoisonGeneratingFlags()
244 if (IncludeWrapFlags && isa<OverflowingBinaryOperator>(this)) { in copyIRFlags()
245 if (auto *OB = dyn_cast<OverflowingBinaryOperator>(V)) { in copyIRFlags()
267 if (auto *OB = dyn_cast<OverflowingBinaryOperator>(V)) { in andIRFlags()
268 if (isa<OverflowingBinaryOperator>(this)) { in andIRFlags()
DConstants.cpp2188 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getAdd()
2189 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getAdd()
2199 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getSub()
2200 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getSub()
2210 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getMul()
2211 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getMul()
2259 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getShl()
2260 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getShl()
2972 if (isa<OverflowingBinaryOperator>(BO)) { in getAsInstruction()
2974 OverflowingBinaryOperator::NoUnsignedWrap); in getAsInstruction()
[all …]
/external/llvm/include/llvm/IR/
DOperator.h74 class OverflowingBinaryOperator : public Operator {
334 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Add> {
337 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Sub> {
340 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Mul> {
343 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
DPatternMatch.h551 if (auto *Op = dyn_cast<OverflowingBinaryOperator>(V)) { in match()
554 if (WrapFlags & OverflowingBinaryOperator::NoUnsignedWrap && in match()
557 if (WrapFlags & OverflowingBinaryOperator::NoSignedWrap && in match()
568 OverflowingBinaryOperator::NoSignedWrap>
571 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWAdd()
576 OverflowingBinaryOperator::NoSignedWrap>
579 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWSub()
584 OverflowingBinaryOperator::NoSignedWrap>
587 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWMul()
592 OverflowingBinaryOperator::NoSignedWrap>
[all …]
/external/llvm/unittests/IR/
DIRBuilderTest.cpp283 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNSWAdd(C, C)) in TEST_F()
285 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNSWSub(C, C)) in TEST_F()
287 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNSWMul(C, C)) in TEST_F()
289 EXPECT_TRUE(cast<OverflowingBinaryOperator>( in TEST_F()
293 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNUWAdd(C, C)) in TEST_F()
295 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNUWSub(C, C)) in TEST_F()
297 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNUWMul(C, C)) in TEST_F()
299 EXPECT_TRUE(cast<OverflowingBinaryOperator>( in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DOperator.h67 class OverflowingBinaryOperator : public Operator {
400 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Add> {
403 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Sub> {
406 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Mul> {
409 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
DPatternMatch.h763 if (auto *Op = dyn_cast<OverflowingBinaryOperator>(V)) { in match()
766 if (WrapFlags & OverflowingBinaryOperator::NoUnsignedWrap && in match()
769 if (WrapFlags & OverflowingBinaryOperator::NoSignedWrap && in match()
780 OverflowingBinaryOperator::NoSignedWrap>
783 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWAdd()
788 OverflowingBinaryOperator::NoSignedWrap>
791 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWSub()
796 OverflowingBinaryOperator::NoSignedWrap>
799 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWMul()
804 OverflowingBinaryOperator::NoSignedWrap>
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombinePHI.cpp35 if (OverflowingBinaryOperator *BO = in FoldPHIArgBinOpIntoPHI()
36 dyn_cast<OverflowingBinaryOperator>(FirstInst)) { in FoldPHIArgBinOpIntoPHI()
59 isNUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in FoldPHIArgBinOpIntoPHI()
61 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI()
423 if (OverflowingBinaryOperator *BO = in FoldPHIArgOpIntoPHI()
424 dyn_cast<OverflowingBinaryOperator>(FirstInst)) { in FoldPHIArgOpIntoPHI()
447 isNUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in FoldPHIArgOpIntoPHI()
449 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgOpIntoPHI()
DInstCombineSelect.cpp233 if (isa<OverflowingBinaryOperator>(BO)) { in FoldSelectIntoOp()
268 if (isa<OverflowingBinaryOperator>(BO)) { in FoldSelectIntoOp()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DIRBuilderTest.cpp367 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNSWAdd(C, C)) in TEST_F()
369 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNSWSub(C, C)) in TEST_F()
371 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNSWMul(C, C)) in TEST_F()
373 EXPECT_TRUE(cast<OverflowingBinaryOperator>( in TEST_F()
377 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNUWAdd(C, C)) in TEST_F()
379 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNUWSub(C, C)) in TEST_F()
381 EXPECT_TRUE(cast<OverflowingBinaryOperator>(Builder.CreateNUWMul(C, C)) in TEST_F()
383 EXPECT_TRUE(cast<OverflowingBinaryOperator>( in TEST_F()
DConstantRangeTest.cpp698 typedef OverflowingBinaryOperator OBO; in TEST()
1025 typedef OverflowingBinaryOperator OBO; in TEST()
1043 typedef OverflowingBinaryOperator OBO; in TEST()
1064 typedef OverflowingBinaryOperator OBO; in TEST()
1084 typedef OverflowingBinaryOperator OBO; in TEST()
1101 typedef OverflowingBinaryOperator OBO; in TEST()
/external/spirv-llvm/lib/SPIRV/
DSPIRVRegularizeLLVM.cpp135 if (isa<OverflowingBinaryOperator>(BO)) { in regularize()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp242 cast<OverflowingBinaryOperator>(Op0)->hasNoSignedWrap() && in visitMul()
243 cast<OverflowingBinaryOperator>(Op1)->hasNoSignedWrap()) in visitMul()
703 auto *OBO = cast<OverflowingBinaryOperator>(Op0); in commonIDivTransforms()
729 auto *OBO = cast<OverflowingBinaryOperator>(Op0); in commonIDivTransforms()
777 bool HasNSW = cast<OverflowingBinaryOperator>(Op1)->hasNoSignedWrap(); in commonIDivTransforms()
778 bool HasNUW = cast<OverflowingBinaryOperator>(Op1)->hasNoUnsignedWrap(); in commonIDivTransforms()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstants.cpp1782 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getAdd()
1783 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getAdd()
1793 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getSub()
1794 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getSub()
1804 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getMul()
1805 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getMul()
1853 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getShl()
1854 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getShl()
/external/llvm/lib/Analysis/
DValueTracking.cpp930 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in computeKnownBitsFromOperator()
1070 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in computeKnownBitsFromOperator()
1077 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in computeKnownBitsFromOperator()
1547 OverflowingBinaryOperator *VOBO = cast<OverflowingBinaryOperator>(V); in isKnownToBeAPowerOfTwo()
1735 OverflowingBinaryOperator *BO = cast<OverflowingBinaryOperator>(V); in isKnownNonZero()
1820 OverflowingBinaryOperator *BO = cast<OverflowingBinaryOperator>(V); in isKnownNonZero()
3564 auto *OBO = cast<OverflowingBinaryOperator>(I); in propagatesFullPoison()
3580 auto *OBO = cast<OverflowingBinaryOperator>(I); in propagatesFullPoison()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMCodeGenPrepare.cpp188 if (isa<OverflowingBinaryOperator>(I) && I->hasNoUnsignedWrap()) in isSafeOverflow()
257 if (isa<OverflowingBinaryOperator>(I)) in isPromotedResultSafe()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DIndVarSimplify.cpp913 if (const OverflowingBinaryOperator *OBO = in CloneIVUser()
914 dyn_cast<OverflowingBinaryOperator>(NarrowBO)) { in CloneIVUser()
938 const OverflowingBinaryOperator *OBO = in GetExtendedOperandRecurrence()
939 cast<OverflowingBinaryOperator>(DU.NarrowUse); in GetExtendedOperandRecurrence()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp406 using OBO = OverflowingBinaryOperator; in willNotOverflow()
608 using OBO = OverflowingBinaryOperator; in processAdd()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp851 cast<OverflowingBinaryOperator>(LHS)->hasNoUnsignedWrap()); in commonIDivTransforms()
853 cast<OverflowingBinaryOperator>(LHS)->hasNoSignedWrap()); in commonIDivTransforms()
879 cast<OverflowingBinaryOperator>(LHS)->hasNoUnsignedWrap()); in commonIDivTransforms()
881 cast<OverflowingBinaryOperator>(LHS)->hasNoSignedWrap()); in commonIDivTransforms()
DInstructionCombining.cpp128 OverflowingBinaryOperator *OBO = dyn_cast<OverflowingBinaryOperator>(&I); in MaintainNoSignedWrap()
514 if (isa<OverflowingBinaryOperator>(SimplifiedInst)) { in tryFactorization()
516 if (isa<OverflowingBinaryOperator>(&I)) in tryFactorization()
520 if (isa<OverflowingBinaryOperator>(Op0)) in tryFactorization()
524 if (isa<OverflowingBinaryOperator>(Op1)) in tryFactorization()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DValueTracking.cpp1017 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in computeKnownBitsFromOperator()
1154 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in computeKnownBitsFromOperator()
1205 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in computeKnownBitsFromOperator()
1211 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in computeKnownBitsFromOperator()
1371 auto *OverflowOp = dyn_cast<OverflowingBinaryOperator>(LU); in computeKnownBitsFromOperator()
1724 const OverflowingBinaryOperator *VOBO = cast<OverflowingBinaryOperator>(V); in isKnownToBeAPowerOfTwo()
2005 const OverflowingBinaryOperator *BO = cast<OverflowingBinaryOperator>(V); in isKnownNonZero()
2078 const OverflowingBinaryOperator *BO = cast<OverflowingBinaryOperator>(V); in isKnownNonZero()
/external/llvm/lib/Target/AArch64/
DAArch64AddressTypePromotion.cpp161 if (BinOp && isa<OverflowingBinaryOperator>(BinOp) && in canGetThrough()

123