| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 24 APInt Zero; member 30 : Zero(std::move(Zero)), One(std::move(One)) {} in KnownBits() 67 Zero.clearAllBits(); in resetAll() 85 Zero.setAllBits(); in setAllZero() 116 Zero.setSignBit(); in makeNonNegative() 138 return ~Zero; in getMaxValue() 144 APInt Max = ~Zero; in getSignedMaxValue() 211 Zero.insertBits(SubBits.Zero, BitPosition); in insertBits() 309 return KnownBits(LHS.Zero & RHS.Zero, LHS.One & RHS.One); in commonBits() 314 return (LHS.Zero | RHS.Zero).isAllOnes(); in haveNoCommonBitsSet() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 31 APInt CarryKnownZero = ~(PossibleSumZero ^ LHS.Zero ^ RHS.Zero); in computeForAddCarry() 99 Result.Zero = Zero << ExtBits; in sextInReg() 145 APInt Zero = Val.Zero; in smax() local 160 Zero.setBitVal(SignBitPosition, Val.Zero[SignBitPosition]); in smin() 209 SpecificShift.Zero = LHS.Zero << ShiftAmt; in shl() 557 Known.Zero = LHS.Zero | ~LowBits; in urem() 578 Known.Zero = LHS.Zero & LowBits; in srem() 603 Zero |= RHS.Zero; in operator &=() 611 Zero &= RHS.Zero; in operator |=() 619 APInt Z = (Zero & RHS.Zero) | (One & RHS.One); in operator ^=() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | KnownBitsTest.cpp | 89 EXPECT_TRUE(KnownNSWComputed.Zero.isSubsetOf(KnownNSW.Zero)); in TestAddSubExhaustive() 225 EXPECT_TRUE(ComputedMul.Zero.isSubsetOf(KnownMul.Zero)); in TEST() 229 EXPECT_TRUE(ComputedMulHS.Zero.isSubsetOf(KnownMulHS.Zero)); in TEST() 237 EXPECT_TRUE(ComputedUDiv.Zero.isSubsetOf(KnownUDiv.Zero)); in TEST() 241 EXPECT_TRUE(ComputedURem.Zero.isSubsetOf(KnownURem.Zero)); in TEST() 245 EXPECT_TRUE(ComputedSRem.Zero.isSubsetOf(KnownSRem.Zero)); in TEST() 249 EXPECT_TRUE(ComputedShl.Zero.isSubsetOf(KnownShl.Zero)); in TEST() 253 EXPECT_TRUE(ComputedLShr.Zero.isSubsetOf(KnownLShr.Zero)); in TEST() 257 EXPECT_TRUE(ComputedAShr.Zero.isSubsetOf(KnownAShr.Zero)); in TEST() 275 EXPECT_TRUE(ComputedMul.Zero.isSubsetOf(KnownMul.Zero)); in TEST() [all …]
|
| H A D | KnownBitsTest.h | 25 for (unsigned Zero = 0; Zero < Max; ++Zero) { in ForeachKnownBits() local 27 Known.Zero = Zero; in ForeachKnownBits() 43 if ((Num & Known.Zero) != 0 || (~Num & Known.One) != 0) in ForeachNumInKnownBits()
|
| /llvm-project-15.0.7/llvm/test/TableGen/ |
| H A D | ListSlices.td | 31 // CHECK: int Zero = 0 35 int Zero = Var1[0]; 42 // CHECK: int Zero = 10 46 int Zero = ids[0]; 55 // CHECK: int Zero = 20 59 int Zero = Class1<[20, 21, 22, 23, 24, 25, 26]>.Zero; 66 // CHECK: int Zero = 30 69 // CHECK: int Zero = 30 74 int Zero = ids[0]; 112 // CHECK: int Zero = ?; [all …]
|
| H A D | foreach-variable-range.td | 4 int Zero = 0; 16 foreach Index = Constants.Zero ... Constants.Two in { 23 foreach Index = Constants.Zero...Constants.Two in { 30 foreach Index = Constants.Zero ...Constants.Two in { 37 foreach Index = Constants.Zero... Constants.Two in { 72 foreach Index = Constants.Zero ... 2 in { 79 foreach Index = Constants.Zero...2 in { 86 foreach Index = Constants.Zero ...2 in { 93 foreach Index = Constants.Zero... 2 in { 101 foreach Index = {Constants.Zero...Constants.One, Constants.Two...Constants.Three} in {
|
| /llvm-project-15.0.7/llvm/unittests/CodeGen/GlobalISel/ |
| H A D | KnownBitsTest.cpp | 30 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 56 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 89 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 123 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 161 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 198 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 243 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 698 EXPECT_EQ(Known.Zero, Zeroes); in TEST_F() 708 auto Zero = B.buildConstant(S32, 0); in TEST_F() local 1227 EXPECT_EQ(0u, Res.Zero.getZExtValue()); in TEST_F() [all …]
|
| H A D | KnownBitsVectorTest.cpp | 43 EXPECT_EQ(0x01u, Res.Zero.getZExtValue()); in TEST_F() 85 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 121 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 157 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 195 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 227 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 621 auto Zero = B.buildConstant(V2S32, 0); in TEST_F() local 1136 EXPECT_EQ(0u, Res.Zero.getZExtValue()); in TEST_F() 1141 EXPECT_EQ(1u, Res.Zero.getZExtValue()); in TEST_F() 1208 EXPECT_EQ(0u, Res.Zero.getZExtValue()); in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | RangedConstraintManager.cpp | 45 const llvm::APSInt &Zero = getBasicVals().getValue(0, SIE->getType()); in assumeSym() local 46 return assumeSymRel(State, SIE, (Assumption ? BO_NE : BO_EQ), Zero); in assumeSym() 68 const llvm::APSInt &Zero = getBasicVals().getValue(0, DiffTy); in assumeSym() local 72 return assumeSymRel(State, Subtraction, Op, Zero); in assumeSym() 85 const llvm::APSInt &Zero = getBasicVals().getValue(0, ExprType); in assumeSym() local 88 return assumeSymNE(State, CanonicalEquality, Zero, Zero); in assumeSym() 91 return assumeSymEQ(State, CanonicalEquality, Zero, Zero); in assumeSym() 145 const llvm::APSInt &Zero = BVF.getValue(0, T); in assumeSymUnsupported() local 147 return assumeSymNE(State, Sym, Zero, Zero); in assumeSymUnsupported() 149 return assumeSymEQ(State, Sym, Zero, Zero); in assumeSymUnsupported()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.enum/ |
| H A D | check_bitmask_types.h | 15 EnumType Zero = static_cast<EnumType>(0) 22 static_assert(Val1 != Zero && Val2 != Zero, ""); 40 static_assert((Val1 & Zero) == Zero, ""); in check() 44 static_assert((Val1 | Zero) == Val1, ""); in check() 47 static_assert((Val1 ^ Zero) == Val1, ""); in check() 50 static_assert(dcast(~Zero) == unpromote(~UZero), ""); in check()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/ |
| H A D | allocate_shared.pass.cpp | 49 struct Zero struct 52 Zero() {++count;} in Zero() argument 53 Zero(Zero const &) {++count;} in Zero() argument 54 ~Zero() {--count;} in ~Zero() argument 57 int Zero::count = 0; 114 std::shared_ptr<Zero> p = std::allocate_shared<Zero>(Alloc()); in test() 115 assert(Zero::count == 1); in test() 117 assert(Zero::count == 0); in test()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ScalarEvolutionDivision.cpp | 66 *Remainder = D.Zero; in divide() 71 *Quotient = D.Zero; in divide() 72 *Remainder = D.Zero; in divide() 79 *Remainder = D.Zero; in divide() 94 *Quotient = D.Zero; in divide() 99 *Remainder = D.Zero; in divide() 204 Remainder = Zero; in visitMulExpr() 217 RewriteMap[cast<SCEVUnknown>(Denominator)->getValue()] = Zero; in visitMulExpr() 234 if (R != Zero) in visitMulExpr() 242 Zero = SE.getZero(Denominator->getType()); in SCEVDivision() [all …]
|
| H A D | DemandedBits.cpp | 260 AB &= ~Known2.Zero; in determineLiveOperandBits() 262 AB &= ~(Known.Zero & ~Known2.Zero); in determineLiveOperandBits() 544 APInt Bound = (LHS.Zero & RHS.Zero) | (LHS.One & RHS.One); in determineLiveOperandBitsAddCarry() 561 NeededToMaintainCarryZero = LHS.Zero | ~RHS.Zero; in determineLiveOperandBitsAddCarry() 564 NeededToMaintainCarryZero = RHS.Zero | ~LHS.Zero; in determineLiveOperandBitsAddCarry() 569 APInt PossibleSumZero = ~LHS.Zero + ~RHS.Zero + !CarryZero; in determineLiveOperandBitsAddCarry() 603 NRHS.Zero = RHS.One; in determineLiveOperandBitsSub() 604 NRHS.One = RHS.Zero; in determineLiveOperandBitsSub()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 277 if (DemandedMask.isSubsetOf(RHSKnown.Zero | LHSKnown.Zero)) { in SimplifyDemandedUseBits() 598 Known.Zero <<= ShiftAmt; in SimplifyDemandedUseBits() 608 Known.Zero.setSignBit(); in SimplifyDemandedUseBits() 674 Known.Zero.lshrInPlace(ShiftAmt); in SimplifyDemandedUseBits() 726 Known.Zero.lshrInPlace(ShiftAmt); in SimplifyDemandedUseBits() 762 Known.Zero.setHighBits(std::min( in SimplifyDemandedUseBits() 787 Known.Zero = LHSKnown.Zero & LowBits; in SimplifyDemandedUseBits() 793 Known.Zero |= ~LowBits; in SimplifyDemandedUseBits() 893 Known.Zero = LHSKnown.Zero.shl(ShiftAmt) | in SimplifyDemandedUseBits() 1112 Known.Zero.setLowBits(ShlAmt - 1); in simplifyShrShlDemandedBits() [all …]
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | StoreTest.cpp | 67 SVal Zero = Builder.makeZeroVal(ASTCtxt.IntTy); in performTest() local 72 Store StX0 = SManager.Bind(StInit, LX0, Zero).getStore(); in performTest() 73 EXPECT_EQ(Zero, SManager.getBinding(StX0, LX0, ASTCtxt.IntTy)); in performTest() 77 SManager.BindDefaultInitial(StInit, LY0.getAsRegion(), Zero).getStore(); in performTest() 78 EXPECT_EQ(Zero, SManager.getBinding(StY0, LY0, ASTCtxt.IntTy)); in performTest() 79 EXPECT_EQ(Zero, *SManager.getDefaultBinding(StY0, LY0.getAsRegion())); in performTest() 86 EXPECT_EQ(Zero, SManager.getBinding(StZ0, LZ0, ASTCtxt.IntTy)); in performTest() 130 NonLoc Zero = Builder.makeIntVal(0, false); in performTest() local 132 MRManager.getElementRegion(ASTCtxt.IntTy, Zero, CLRegion, ASTCtxt)); in performTest()
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | enum-bool.cpp | 5 enum E { Zero, One }; enumerator 16 enum E : bool { Zero, One }; enumerator 27 enum class E { Zero, One }; enumerator 38 enum class E : bool { Zero, One }; enumerator
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | enum.cpp | 6 Zero enumerator 10 return Foo::Zero == (Foo)x; // don't crash in pr15703() 18 clang_analyzer_eval(f == Foo::Zero); // expected-warning{{TRUE}} in testCasting() 23 clang_analyzer_eval(f == Foo::Zero); // expected-warning{{FALSE}} in testCasting()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | AMDGPUEmitPrintf.cpp | 75 auto Zero = Builder.getInt64(0); in appendArg() local 76 return callAppendArgs(Builder, Desc, 1, Arg0, Zero, Zero, Zero, Zero, Zero, in appendArg() 77 Zero, IsLast); in appendArg() 88 auto Zero = Builder.getInt64(0); in getStrlenWithNull() local 144 LenPhi->addIncoming(Zero, Prev); in getStrlenWithNull()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | DemandedBitsTest.cpp | 34 Known1Redacted.Zero = Known1.Zero & AB1; in TestBinOpExhaustive() 36 Known2Redacted.Zero = Known2.Zero & AB2; in TestBinOpExhaustive()
|
| H A D | PatternMatch.cpp | 78 .match(Zero)); in TEST_F() 88 .match(Zero)); in TEST_F() 98 .match(Zero)); in TEST_F() 117 .match(Zero)); in TEST_F() 127 .match(Zero)); in TEST_F() 137 .match(Zero)); in TEST_F() 156 .match(Zero)); in TEST_F() 166 .match(Zero)); in TEST_F() 176 .match(Zero)); in TEST_F() 218 .match(Zero)); in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGen/PowerPC/ |
| H A D | ppc32-and-aix-struct-return.c | 32 } Zero; typedef 64 Zero ret0(void) { return (Zero){}; } in ret0()
|
| /llvm-project-15.0.7/clang/test/SemaSYCL/ |
| H A D | zero-length-arrays.cpp | 94 Templated<0, float> Zero; in foo() local 99 (void)Zero; // expected-error 2{{zero-length arrays are not permitted in SYCL device code}} in foo() 108 …kernel<class UseTemplated1>([Zero] { // expected-error 2{{zero-length arrays are not permitted in … in foo()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | ContainerDataPointerCheck.cpp | 63 const auto Zero = integerLiteral(equals(0)); in registerMatchers() local 73 hasArgument(1, Zero)), in registerMatchers() 75 argumentCountIs(1), hasArgument(0, Zero)), in registerMatchers() 76 arraySubscriptExpr(hasLHS(ContainerExpr), hasRHS(Zero)))))) in registerMatchers()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | Thunk.h | 58 VirtualAdjustment Zero; in isEmpty() local 59 return Equals(Zero); in isEmpty() 125 VirtualAdjustment Zero; in isEmpty() local 126 return Equals(Zero); in isEmpty()
|
| /llvm-project-15.0.7/llvm/unittests/CodeGen/ |
| H A D | DIEHashTest.cpp | 139 DIEInteger Zero(0); in TEST_F() local 170 DIEInteger Zero(0); in TEST_F() local 224 DIEInteger Zero(0); in TEST_F() local 226 Zero); in TEST_F() 254 DIEInteger Zero(0); in TEST_F() local 256 Zero); in TEST_F() 289 DIEInteger Zero(0); in TEST_F() local 324 DIEInteger Zero(0); in TEST_F() local 350 DIEInteger Zero(0); in TEST_F() local 428 DIEInteger Zero(0); in TEST_F() local [all …]
|