Home
last modified time | relevance | path

Searched refs:NoSignedWrap (Results 1 – 25 of 64) sorted by relevance

123

/external/llvm-project/llvm/unittests/IR/
DConstantRangeTest.cpp858 EXPECT_EQ(Empty.addWithNoWrap(Some, OBO::NoSignedWrap), Empty); in TEST_F()
859 EXPECT_EQ(Some.addWithNoWrap(Empty, OBO::NoSignedWrap), Empty); in TEST_F()
860 EXPECT_EQ(Full.addWithNoWrap(Full, OBO::NoSignedWrap), Full); in TEST_F()
861 EXPECT_NE(Full.addWithNoWrap(Some, OBO::NoSignedWrap), Full); in TEST_F()
862 EXPECT_NE(Some.addWithNoWrap(Full, OBO::NoSignedWrap), Full); in TEST_F()
864 OBO::NoSignedWrap), in TEST_F()
867 .addWithNoWrap(Full, OBO::NoSignedWrap), in TEST_F()
870 OBO::NoSignedWrap), in TEST_F()
874 OBO::NoSignedWrap), in TEST_F()
878 OBO::NoSignedWrap), in TEST_F()
[all …]
/external/llvm/include/llvm/IR/
DOperator.h78 NoSignedWrap = (1 << 1) enumerator
90 (SubclassOptionalData & ~NoSignedWrap) | (B * NoSignedWrap); in setHasNoSignedWrap()
103 return (SubclassOptionalData & NoSignedWrap) != 0; in hasNoSignedWrap()
DPatternMatch.h557 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>
595 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWShl()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DOperator.h71 NoSignedWrap = (1 << 1) enumerator
84 (SubclassOptionalData & ~NoSignedWrap) | (B * NoSignedWrap); in setHasNoSignedWrap()
97 return (SubclassOptionalData & NoSignedWrap) != 0; in hasNoSignedWrap()
DPatternMatch.h950 if (WrapFlags & OverflowingBinaryOperator::NoSignedWrap && in match()
961 OverflowingBinaryOperator::NoSignedWrap>
964 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWAdd()
969 OverflowingBinaryOperator::NoSignedWrap>
972 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWSub()
977 OverflowingBinaryOperator::NoSignedWrap>
980 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWMul()
985 OverflowingBinaryOperator::NoSignedWrap>
988 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWShl()
/external/llvm-project/llvm/include/llvm/IR/
DOperator.h71 NoSignedWrap = (1 << 1) enumerator
84 (SubclassOptionalData & ~NoSignedWrap) | (B * NoSignedWrap); in setHasNoSignedWrap()
97 return (SubclassOptionalData & NoSignedWrap) != 0; in hasNoSignedWrap()
DPatternMatch.h1094 if (WrapFlags & OverflowingBinaryOperator::NoSignedWrap && in match()
1105 OverflowingBinaryOperator::NoSignedWrap>
1108 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWAdd()
1113 OverflowingBinaryOperator::NoSignedWrap>
1116 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWSub()
1121 OverflowingBinaryOperator::NoSignedWrap>
1124 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWMul()
1129 OverflowingBinaryOperator::NoSignedWrap>
1132 OverflowingBinaryOperator::NoSignedWrap>( in m_NSWShl()
2183 OverflowingBinaryOperator::NoSignedWrap>
/external/llvm/unittests/IR/
DConstantRangeTest.cpp625 Instruction::Add, C, OBO::NoSignedWrap); in TEST()
630 Instruction::Add, C, OBO::NoSignedWrap | OBO::NoUnsignedWrap); in TEST()
663 OBO::NoSignedWrap); in TEST()
675 OBO::NoUnsignedWrap | OBO::NoSignedWrap); in TEST()
681 Instruction::Add, OneToFive, OBO::NoSignedWrap), in TEST()
689 Instruction::Add, OneToFive, OBO::NoUnsignedWrap | OBO::NoSignedWrap), in TEST()
694 Instruction::Add, MinusFiveToMinusTwo, OBO::NoSignedWrap), in TEST()
702 OBO::NoUnsignedWrap | OBO::NoSignedWrap), in TEST()
707 Instruction::Add, MinusOneToOne, OBO::NoSignedWrap), in TEST()
715 OBO::NoUnsignedWrap | OBO::NoSignedWrap), in TEST()
/external/deqp/external/vulkancts/data/vulkan/amber/spirv_assembly/instruction/spirv1p4/wrap/
Dno_signed_wrap.amber17 OpDecorate %out_int NoSignedWrap
/external/OpenCL-CTS/test_conformance/spirv_new/spirv_asm/
Dext_cl_khr_spirv_no_integer_wrap_decoration_fmul_int.spvasm3223 OpDecorate %8 NoSignedWrap
Dext_cl_khr_spirv_no_integer_wrap_decoration_fsub_int.spvasm3224 OpDecorate %8 NoSignedWrap
Dext_cl_khr_spirv_no_integer_wrap_decoration_fadd_int.spvasm3223 OpDecorate %8 NoSignedWrap
Dext_cl_khr_spirv_no_integer_wrap_decoration_fnegate_int.spvasm3219 OpDecorate %8 NoSignedWrap
Dext_cl_khr_spirv_no_integer_wrap_decoration_fshiftleft_int.spvasm3223 OpDecorate %8 NoSignedWrap
Dext_cl_khr_spirv_no_integer_wrap_decoration_fnegate_int.spvasm6420 OpDecorate %8 NoSignedWrap
Dext_cl_khr_spirv_no_integer_wrap_decoration_fsub_int.spvasm6425 OpDecorate %8 NoSignedWrap
Dext_cl_khr_spirv_no_integer_wrap_decoration_fadd_int.spvasm6424 OpDecorate %8 NoSignedWrap
Dext_cl_khr_spirv_no_integer_wrap_decoration_fmul_int.spvasm6424 OpDecorate %8 NoSignedWrap
Dext_cl_khr_spirv_no_integer_wrap_decoration_fshiftleft_int.spvasm6424 OpDecorate %8 NoSignedWrap
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp998 Value *InstCombiner::Descale(Value *Val, APInt Scale, bool &NoSignedWrap) { in Descale() argument
1005 NoSignedWrap = true; in Descale()
1057 NoSignedWrap = true; in Descale()
1065 NoSignedWrap = BO->hasNoSignedWrap(); in Descale()
1066 if (RequireNoSignedWrap && !NoSignedWrap) in Descale()
1104 NoSignedWrap = BO->hasNoSignedWrap(); in Descale()
1105 if (RequireNoSignedWrap && !NoSignedWrap) in Descale()
1183 NoSignedWrap = true; in Descale()
1216 NoSignedWrap &= OpNoSignedWrap; in Descale()
1217 if (NoSignedWrap != OpNoSignedWrap) { in Descale()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp1194 Value *InstCombiner::Descale(Value *Val, APInt Scale, bool &NoSignedWrap) { in Descale() argument
1201 NoSignedWrap = true; in Descale()
1252 NoSignedWrap = true; in Descale()
1259 NoSignedWrap = BO->hasNoSignedWrap(); in Descale()
1260 if (RequireNoSignedWrap && !NoSignedWrap) in Descale()
1298 NoSignedWrap = BO->hasNoSignedWrap(); in Descale()
1299 if (RequireNoSignedWrap && !NoSignedWrap) in Descale()
1377 NoSignedWrap = true; in Descale()
1410 NoSignedWrap &= OpNoSignedWrap; in Descale()
1411 if (NoSignedWrap != OpNoSignedWrap) { in Descale()
[all …]
/external/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h330 bool NoSignedWrap : 1;
343 NoSignedWrap = false;
355 void setNoSignedWrap(bool b) { NoSignedWrap = b; }
366 bool hasNoSignedWrap() const { return NoSignedWrap; }
378 return (NoUnsignedWrap << 0) | (NoSignedWrap << 1) | (Exact << 2) |
386 NoSignedWrap &= Flags->NoSignedWrap;
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp1277 Value *InstCombinerImpl::Descale(Value *Val, APInt Scale, bool &NoSignedWrap) { in Descale() argument
1284 NoSignedWrap = true; in Descale()
1335 NoSignedWrap = true; in Descale()
1342 NoSignedWrap = BO->hasNoSignedWrap(); in Descale()
1343 if (RequireNoSignedWrap && !NoSignedWrap) in Descale()
1381 NoSignedWrap = BO->hasNoSignedWrap(); in Descale()
1382 if (RequireNoSignedWrap && !NoSignedWrap) in Descale()
1460 NoSignedWrap = true; in Descale()
1493 NoSignedWrap &= OpNoSignedWrap; in Descale()
1494 if (NoSignedWrap != OpNoSignedWrap) { in Descale()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DIntrinsicInst.cpp216 return OverflowingBinaryOperator::NoSignedWrap; in getNoWrapKind()
/external/llvm/lib/IR/
DConstantRange.cpp186 assert((NoWrapKind == OBO::NoSignedWrap || in makeGuaranteedNoWrapRegion()
188 NoWrapKind == (OBO::NoUnsignedWrap | OBO::NoSignedWrap)) && in makeGuaranteedNoWrapRegion()
208 if (NoWrapKind & OBO::NoSignedWrap) { in makeGuaranteedNoWrapRegion()

123