|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
include/llvm/IR/ConstantRange.h 346 ConstantRange addWithNoWrap(const ConstantRange &Other, unsigned NoWrapKind,
References
lib/IR/ConstantRange.cpp 826 return addWithNoWrap(Other, NoWrapKind);
lib/Transforms/Scalar/IndVarSimplify.cpp 1845 auto NarrowDefRange = CmpConstrainedLHSRange.addWithNoWrap(
unittests/IR/ConstantRangeTest.cpp 761 EXPECT_EQ(Empty.addWithNoWrap(Some, OBO::NoSignedWrap), Empty);
762 EXPECT_EQ(Some.addWithNoWrap(Empty, OBO::NoSignedWrap), Empty);
763 EXPECT_EQ(Full.addWithNoWrap(Full, OBO::NoSignedWrap), Full);
764 EXPECT_NE(Full.addWithNoWrap(Some, OBO::NoSignedWrap), Full);
765 EXPECT_NE(Some.addWithNoWrap(Full, OBO::NoSignedWrap), Full);
766 EXPECT_EQ(Full.addWithNoWrap(ConstantRange(APInt(16, 1), APInt(16, 2)),
770 .addWithNoWrap(Full, OBO::NoSignedWrap),
772 EXPECT_EQ(Full.addWithNoWrap(ConstantRange(APInt(16, -1), APInt(16, 0)),
776 .addWithNoWrap(ConstantRange(APInt(8, 120), APInt(8, 123)),
780 .addWithNoWrap(ConstantRange(APInt(8, -110), APInt(8, -100)),
784 .addWithNoWrap(ConstantRange(APInt(8, -128), APInt(8, 28)),
788 .addWithNoWrap(ConstantRange(APInt(8, -120), APInt(8, 29)),
792 .addWithNoWrap(ConstantRange(APInt(8, 10), APInt(8, 20)),
796 .addWithNoWrap(ConstantRange(APInt(8, -50), APInt(8, 50)),
800 .addWithNoWrap(ConstantRange(APInt(8, 5), APInt(8, 20)),
804 .addWithNoWrap(ConstantRange(APInt(8, 120), APInt(8, -10)),
810 return CR1.addWithNoWrap(CR2, OBO::NoSignedWrap);
816 EXPECT_EQ(Empty.addWithNoWrap(Some, OBO::NoUnsignedWrap), Empty);
817 EXPECT_EQ(Some.addWithNoWrap(Empty, OBO::NoUnsignedWrap), Empty);
818 EXPECT_EQ(Full.addWithNoWrap(Full, OBO::NoUnsignedWrap), Full);
819 EXPECT_NE(Full.addWithNoWrap(Some, OBO::NoUnsignedWrap), Full);
820 EXPECT_NE(Some.addWithNoWrap(Full, OBO::NoUnsignedWrap), Full);
821 EXPECT_EQ(Full.addWithNoWrap(ConstantRange(APInt(16, 1), APInt(16, 2)),
825 .addWithNoWrap(Full, OBO::NoUnsignedWrap),
828 .addWithNoWrap(ConstantRange(APInt(8, 100), APInt(8, 123)),
832 .addWithNoWrap(ConstantRange(APInt(8, 0), APInt(8, 156)),
836 .addWithNoWrap(ConstantRange(APInt(8, 10), APInt(8, 29)),
840 .addWithNoWrap(ConstantRange(APInt(8, 50), APInt(8, 200)),
844 .addWithNoWrap(ConstantRange(APInt(8, 50), APInt(8, 200)),
848 .addWithNoWrap(ConstantRange(APInt(8, 5), APInt(8, 20)),
852 .addWithNoWrap(ConstantRange(APInt(8, 20), APInt(8, -30)),
858 return CR1.addWithNoWrap(CR2, OBO::NoUnsignedWrap);
865 .addWithNoWrap(ConstantRange(APInt(8, 20), APInt(8, 70)),
869 .addWithNoWrap(ConstantRange(APInt(8, 20), APInt(8, 70)),
873 .addWithNoWrap(ConstantRange(APInt(8, 20), APInt(8, 70)),
878 .addWithNoWrap(ConstantRange(APInt(8, 20), APInt(8, 30)),
882 .addWithNoWrap(ConstantRange(APInt(8, 20), APInt(8, 30)),
886 .addWithNoWrap(ConstantRange(APInt(8, 20), APInt(8, 30)),
892 return CR1.addWithNoWrap(CR2, OBO::NoUnsignedWrap | OBO::NoSignedWrap);