Home
last modified time | relevance | path

Searched refs:Zero (Results 1 – 25 of 822) sorted by relevance

12345678910>>...33

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DKnownBits.h24 APInt Zero; member
29 KnownBits(APInt Zero, APInt One) in KnownBits()
30 : Zero(std::move(Zero)), One(std::move(One)) {} in KnownBits()
37 KnownBits(unsigned BitWidth) : Zero(BitWidth, 0), One(BitWidth, 0) {} in KnownBits()
41 assert(Zero.getBitWidth() == One.getBitWidth() && in getBitWidth()
43 return Zero.getBitWidth(); in getBitWidth()
47 bool hasConflict() const { return Zero.intersects(One); } in hasConflict()
52 return Zero.countPopulation() + One.countPopulation() == getBitWidth(); in isConstant()
63 bool isUnknown() const { return Zero.isNullValue() && One.isNullValue(); } in isUnknown()
67 Zero.clearAllBits(); in resetAll()
[all …]
/external/swiftshader/third_party/LLVM/unittests/VMCore/
DConstantsTest.cpp21 Constant* Zero = ConstantInt::get(Int1, 0); in TEST() local
28 EXPECT_EQ(Zero, ConstantExpr::getAdd(One, One)); in TEST()
32 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, One)); in TEST()
36 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, NegOne)); in TEST()
40 EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One)); in TEST()
44 EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne)); in TEST()
48 EXPECT_EQ(Zero, ConstantExpr::getSub(One, One)); in TEST()
56 EXPECT_EQ(One, ConstantExpr::getShl(One, Zero)); in TEST()
88 EXPECT_EQ(Zero, ConstantExpr::getSRem(NegOne, One)); in TEST()
92 EXPECT_EQ(Zero, ConstantExpr::getURem(NegOne, One)); in TEST()
[all …]
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/
Dallocate_shared_cxx03.pass.cpp25 struct Zero struct
28 Zero() {++count;} in Zero() argument
29 Zero(Zero const &) {++count;} in Zero() function
30 ~Zero() {--count;} in ~Zero() argument
33 int Zero::count = 0;
74 std::shared_ptr<Zero> p = std::allocate_shared<Zero>(Alloc()); in test()
75 assert(Zero::count == 1); in test()
77 assert(Zero::count == 0); in test()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DKnownBits.cpp25 std::swap(RHS.Zero, RHS.One); in computeForAddSub()
29 APInt PossibleSumZero = ~LHS.Zero + ~RHS.Zero + CarryIn; in computeForAddSub()
33 APInt CarryKnownZero = ~(PossibleSumZero ^ LHS.Zero ^ RHS.Zero); in computeForAddSub()
37 APInt LHSKnownUnion = LHS.Zero | LHS.One; in computeForAddSub()
38 APInt RHSKnownUnion = RHS.Zero | RHS.One; in computeForAddSub()
47 KnownOut.Zero = ~std::move(PossibleSumZero) & Known; in computeForAddSub()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp169 SimplifyDemandedBits(I, 0, DemandedMask & ~RHSKnown.Zero, LHSKnown, in SimplifyDemandedUseBits()
176 APInt IKnownZero = RHSKnown.Zero | LHSKnown.Zero; in SimplifyDemandedUseBits()
187 if (DemandedMask.isSubsetOf(LHSKnown.Zero | RHSKnown.One)) in SimplifyDemandedUseBits()
189 if (DemandedMask.isSubsetOf(RHSKnown.Zero | LHSKnown.One)) in SimplifyDemandedUseBits()
193 if (ShrinkDemandedConstant(I, 1, DemandedMask & ~LHSKnown.Zero)) in SimplifyDemandedUseBits()
196 Known.Zero = std::move(IKnownZero); in SimplifyDemandedUseBits()
210 APInt IKnownZero = RHSKnown.Zero & LHSKnown.Zero; in SimplifyDemandedUseBits()
221 if (DemandedMask.isSubsetOf(LHSKnown.One | RHSKnown.Zero)) in SimplifyDemandedUseBits()
223 if (DemandedMask.isSubsetOf(RHSKnown.One | LHSKnown.Zero)) in SimplifyDemandedUseBits()
230 Known.Zero = std::move(IKnownZero); in SimplifyDemandedUseBits()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/
DSPU128InstrInfo.td7 // zext 32->128: Zero extend 32-bit to 128-bit
11 // zext 64->128: Zero extend 64-bit to 128-bit
15 // zext 16->128: Zero extend 16-bit to 128-bit
19 // zext 8->128: Zero extend 8-bit to 128-bit
23 // anyext 32->128: Zero extend 32-bit to 128-bit
27 // anyext 64->128: Zero extend 64-bit to 128-bit
31 // anyext 16->128: Zero extend 16-bit to 128-bit
35 // anyext 8->128: Zero extend 8-bit to 128-bit
/external/libcxx/test/std/input.output/filesystems/fs.enum/
Dcheck_bitmask_types.hpp15 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()
/external/python/cpython3/Lib/test/decimaltestdata/
Dclass.decTest31 clasx001 class 0 -> +Zero
32 clasx002 class 0.00 -> +Zero
33 clasx003 class 0E+5 -> +Zero
50 clasx021 class -0 -> -Zero
51 clasx022 class -0.00 -> -Zero
52 clasx023 class -0E+5 -> -Zero
85 clasx201 class 0 -> +Zero
86 clasx202 class 0.00 -> +Zero
87 clasx203 class 0E+5 -> +Zero
104 clasx221 class -0 -> -Zero
[all …]
DddClass.decTest30 ddcla001 class 0 -> +Zero
31 ddcla002 class 0.00 -> +Zero
32 ddcla003 class 0E+5 -> +Zero
49 ddcla021 class -0 -> -Zero
50 ddcla022 class -0.00 -> -Zero
51 ddcla023 class -0E+5 -> -Zero
DdqClass.decTest31 dqcla001 class 0 -> +Zero
32 dqcla002 class 0.00 -> +Zero
33 dqcla003 class 0E+5 -> +Zero
50 dqcla021 class -0 -> -Zero
51 dqcla022 class -0.00 -> -Zero
52 dqcla023 class -0E+5 -> -Zero
/external/python/cpython2/Lib/test/decimaltestdata/
Dclass.decTest31 clasx001 class 0 -> +Zero
32 clasx002 class 0.00 -> +Zero
33 clasx003 class 0E+5 -> +Zero
50 clasx021 class -0 -> -Zero
51 clasx022 class -0.00 -> -Zero
52 clasx023 class -0E+5 -> -Zero
85 clasx201 class 0 -> +Zero
86 clasx202 class 0.00 -> +Zero
87 clasx203 class 0E+5 -> +Zero
104 clasx221 class -0 -> -Zero
[all …]
DddClass.decTest30 ddcla001 class 0 -> +Zero
31 ddcla002 class 0.00 -> +Zero
32 ddcla003 class 0E+5 -> +Zero
49 ddcla021 class -0 -> -Zero
50 ddcla022 class -0.00 -> -Zero
51 ddcla023 class -0E+5 -> -Zero
DdqClass.decTest31 dqcla001 class 0 -> +Zero
32 dqcla002 class 0.00 -> +Zero
33 dqcla003 class 0E+5 -> +Zero
50 dqcla021 class -0 -> -Zero
51 dqcla022 class -0.00 -> -Zero
52 dqcla023 class -0E+5 -> -Zero
/external/spirv-llvm/lib/SPIRV/
DSPIRVLowerBool.cpp80 auto Zero = getScalarOrVectorConstantInt(Op->getType(), 0, false); in visitTruncInst() local
81 auto Cmp = new ICmpInst(&I, CmpInst::ICMP_NE, Op, Zero); in visitTruncInst()
89 auto Zero = getScalarOrVectorConstantInt(Ty, 0, false); in visitZExtInst() local
91 auto Sel = SelectInst::Create(Op, One, Zero, "", &I); in visitZExtInst()
99 auto Zero = getScalarOrVectorConstantInt(Ty, 0, false); in visitSExtInst() local
101 auto Sel = SelectInst::Create(Op, One, Zero, "", &I); in visitSExtInst()
/external/tensorflow/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/
DInterpreter.cs39 if (model == IntPtr.Zero) throw new Exception("Failed to create TensorFlowLite Model"); in Interpreter()
40 interpreter = TFL_NewInterpreter(model, /*options=*/IntPtr.Zero); in Interpreter()
41 …if (interpreter == IntPtr.Zero) throw new Exception("Failed to create TensorFlowLite Interpreter"); in Interpreter()
49 if (interpreter != IntPtr.Zero) TFL_DeleteInterpreter(interpreter); in Dispose()
50 interpreter = IntPtr.Zero; in Dispose()
51 if (model != IntPtr.Zero) TFL_DeleteModel(model); in Dispose()
52 model = IntPtr.Zero; in Dispose()
/external/clang/test/Analysis/
Denum.cpp6 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DValueTracking.cpp206 return (LHSKnown.Zero | RHSKnown.Zero).isAllOnesValue(); in haveNoCommonBitsSet()
401 unsigned TrailBitsKnown0 = (Known.Zero | Known.One).countTrailingOnes(); in computeKnownBitsMul()
402 unsigned TrailBitsKnown1 = (Known2.Zero | Known2.One).countTrailingOnes(); in computeKnownBitsMul()
416 Known.Zero.setHighBits(LeadZ); in computeKnownBitsMul()
417 Known.Zero |= (~BottomKnown).getLoBits(ResultBitsKnown); in computeKnownBitsMul()
437 Known.Zero.setAllBits(); in computeKnownBitsFromRangeMetadata()
453 Known.Zero &= ~Range.getUnsignedMax() & Mask; in computeKnownBitsFromRangeMetadata()
623 Known.Zero |= RHSKnown.Zero; in computeKnownBitsFromAssume()
637 Known.Zero |= RHSKnown.Zero & MaskKnown.One; in computeKnownBitsFromAssume()
651 Known.Zero |= RHSKnown.One & MaskKnown.One; in computeKnownBitsFromAssume()
[all …]
/external/eigen/doc/snippets/
DTutorial_AdvancedInitialization_ThreeWays.cpp3 mat1.topLeftCorner(size/2, size/2) = MatrixXd::Zero(size/2, size/2);
6 mat1.bottomRightCorner(size/2, size/2) = MatrixXd::Zero(size/2, size/2);
17 mat3 << MatrixXd::Zero(size/2, size/2), MatrixXd::Identity(size/2, size/2),
18 MatrixXd::Identity(size/2, size/2), MatrixXd::Zero(size/2, size/2);
DTutorial_AdvancedInitialization_Zero.cpp2 Array33f a1 = Array33f::Zero();
7 ArrayXf a2 = ArrayXf::Zero(3);
12 ArrayXXf a3 = ArrayXXf::Zero(3, 4);
/external/u-boot/arch/x86/include/asm/arch-tangier/acpi/
Dsouthcluster.asl90 Name (PSTS, Zero)
103 If (PSTS == Zero)
129 Return (Zero)
136 ^^^GPIO.WFD3 = Zero
137 PSTS = Zero
143 If (PSTS == Zero)
164 Return (Zero)
233 Name (AVBL, Zero)
/external/u-boot/arch/x86/include/asm/acpi/
Dglobutil.asl41 Store(Zero, Local4)
65 Return (Zero)
82 Return (Zero)
84 Store(Zero, Local2)
90 Return (Zero)
/external/fdlibm/
De_fmod.c23 static const double one = 1.0, Zero[] = {0.0, -0.0,}; variable
25 static double one = 1.0, Zero[] = {0.0, -0.0,}; variable
53 return Zero[(unsigned)sx>>31]; /* |x|=|y| return x*0*/
107 return Zero[(unsigned)sx>>31];
116 return Zero[(unsigned)sx>>31];
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp416 Zero = APInt::getNullValue(IntTyBits); in compute()
457 return std::make_pair(align(Size, I.getAlignment()), Zero); in visitAllocaInst()
462 return std::make_pair(align(Size, I.getAlignment()), Zero); in visitAllocaInst()
475 return std::make_pair(align(Size, A.getParamAlignment()), Zero); in visitArgument()
501 return std::make_pair(Size, Zero); in visitCallSite()
529 return std::make_pair(Size, Zero); in visitCallSite()
541 return Overflow ? unknown() : std::make_pair(Size, Zero); in visitCallSite()
554 return std::make_pair(Zero, Zero); in visitConstantPointerNull()
588 return std::make_pair(align(Size, GV.getAlignment()), Zero); in visitGlobalVariable()
635 return std::make_pair(Zero, Zero); in visitUndefValue()
[all …]
/external/clang/test/SemaTemplate/
Dalias-templates.cpp174 template <typename ... Args> using Zero = tuple<DefaultValue<Args> ...>; typedef
175 template <typename ... Args> void f(const Zero<Args ...> &t);
177 f(Zero<int,double,double>()); in f()
185 template <template<int x> class... Args> using Zero = tuple<DefaultValue<Args> ...>; typedef
186 template <template<int x> class... Args> void f(const Zero<Args ...> &t);
188 f(Zero<X,X,X>()); in f()
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyFrameLowering.cpp90 unsigned Zero = MRI.createVirtualRegister(PtrRC); in writeSPToMemory() local
94 BuildMI(MBB, InsertAddr, DL, TII->get(WebAssembly::CONST_I32), Zero) in writeSPToMemory()
101 .addReg(Zero) in writeSPToMemory()
140 unsigned Zero = MRI.createVirtualRegister(PtrRC); in emitPrologue() local
144 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::CONST_I32), Zero) in emitPrologue()
153 .addReg(Zero) // addr in emitPrologue()

12345678910>>...33