Home
last modified time | relevance | path

Searched refs:Known (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DGISelKnownBits.cpp51 void GISelKnownBits::computeKnownBitsForFrameIndex(Register R, KnownBits &Known, in computeKnownBitsForFrameIndex() argument
55 computeKnownBitsForAlignment(Known, inferPtrAlignment(MI)); in computeKnownBitsForFrameIndex()
58 void GISelKnownBits::computeKnownBitsForAlignment(KnownBits &Known, in computeKnownBitsForAlignment() argument
62 Known.Zero.setLowBits(Log2(Alignment)); in computeKnownBitsForAlignment()
70 KnownBits Known; in getKnownBits() local
74 computeKnownBitsImpl(R, Known, DemandedElts); in getKnownBits()
75 return Known; in getKnownBits()
90 void GISelKnownBits::computeKnownBitsImpl(Register R, KnownBits &Known, in computeKnownBitsImpl() argument
102 Known = KnownBits(); in computeKnownBitsImpl()
107 Known = KnownBits(BitWidth); // Don't know anything in computeKnownBitsImpl()
[all …]
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DGISelKnownBits.cpp68 KnownBits Known; in getKnownBits() local
69 computeKnownBitsImpl(R, Known, DemandedElts); in getKnownBits()
71 return Known; in getKnownBits()
87 dumpResult(const MachineInstr &MI, const KnownBits &Known, unsigned Depth) { in dumpResult() argument
90 << (Known.Zero | Known.One).toString(16, false) << "\n" in dumpResult()
91 << "[" << Depth << "] Zero: 0x" << Known.Zero.toString(16, false) in dumpResult()
93 << "[" << Depth << "] One: 0x" << Known.One.toString(16, false) in dumpResult()
99 KnownBits &Known, in computeKnownBitsMin() argument
103 computeKnownBitsImpl(Src1, Known, DemandedElts, Depth); in computeKnownBitsMin()
106 if (Known.isUnknown()) in computeKnownBitsMin()
[all …]
/external/llvm-project/llvm/lib/Support/
DKnownBits.cpp36 APInt Known = std::move(LHSKnownUnion) & RHSKnownUnion & CarryKnownUnion; in computeForAddCarry() local
38 assert((PossibleSumZero & Known) == (PossibleSumOne & Known) && in computeForAddCarry()
43 KnownOut.Zero = ~std::move(PossibleSumZero) & Known; in computeForAddCarry()
44 KnownOut.One = std::move(PossibleSumOne) & Known; in computeForAddCarry()
185 KnownBits Known(BitWidth); in shl() local
190 Known = LHS; in shl()
191 Known.Zero <<= Shift; in shl()
192 Known.One <<= Shift; in shl()
194 Known.Zero.setLowBits(Shift); in shl()
195 return Known; in shl()
[all …]
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp57 KnownBits Known(BitWidth); in SimplifyDemandedInstructionBits() local
60 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, Known, in SimplifyDemandedInstructionBits()
73 KnownBits &Known, unsigned Depth) { in SimplifyDemandedBits() argument
75 Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask, Known, in SimplifyDemandedBits()
109 KnownBits &Known, in SimplifyDemandedUseBits() argument
118 Known.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
122 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
126 Known.resetAll(); in SimplifyDemandedUseBits()
138 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
146 return SimplifyMultipleUseDemandedBits(I, DemandedMask, Known, Depth, CxtI); in SimplifyDemandedUseBits()
[all …]
/external/llvm-project/llvm/unittests/Support/
DKnownBitsTest.h24 KnownBits Known(Bits); in ForeachKnownBits()
27 Known.Zero = Zero; in ForeachKnownBits()
28 Known.One = One; in ForeachKnownBits()
29 if (Known.hasConflict()) in ForeachKnownBits()
32 Fn(Known); in ForeachKnownBits()
38 void ForeachNumInKnownBits(const KnownBits &Known, FnTy Fn) { in ForeachNumInKnownBits() argument
39 unsigned Bits = Known.getBitWidth(); in ForeachNumInKnownBits()
43 if ((Num & Known.Zero) != 0 || (~Num & Known.One) != 0) in ForeachNumInKnownBits()
DKnownBitsTest.cpp28 KnownBits Known(Bits); in TEST() local
29 Known.Zero.setAllBits(); in TEST()
30 Known.One.setAllBits(); in TEST()
38 Known.One &= Add; in TEST()
39 Known.Zero &= ~Add; in TEST()
46 EXPECT_EQ(Known.Zero, KnownComputed.Zero); in TEST()
47 EXPECT_EQ(Known.One, KnownComputed.One); in TEST()
57 KnownBits Known(Bits), KnownNSW(Bits); in TestAddSubExhaustive() local
58 Known.Zero.setAllBits(); in TestAddSubExhaustive()
59 Known.One.setAllBits(); in TestAddSubExhaustive()
[all …]
/external/llvm-project/llvm/unittests/Analysis/
DValueTrackingTest.cpp100 auto Known = computeKnownBits(A, M->getDataLayout()); in expectKnownBits() local
101 ASSERT_FALSE(Known.hasConflict()); in expectKnownBits()
102 EXPECT_EQ(Known.One.getZExtValue(), One); in expectKnownBits()
103 EXPECT_EQ(Known.Zero.getZExtValue(), Zero); in expectKnownBits()
1152 KnownBits Known = computeKnownBits( in TEST_F() local
1154 EXPECT_EQ(Known.Zero.getZExtValue(), 31u); in TEST_F()
1155 EXPECT_EQ(Known.One.getZExtValue(), 0u); in TEST_F()
1171 KnownBits Known = computeKnownBits( in TEST_F() local
1173 EXPECT_EQ(Known.Zero.getZExtValue(), 31u); in TEST_F()
1174 EXPECT_EQ(Known.One.getZExtValue(), 0u); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DValueTracking.cpp166 static void computeKnownBits(const Value *V, KnownBits &Known,
169 void llvm::computeKnownBits(const Value *V, KnownBits &Known, in computeKnownBits() argument
174 ::computeKnownBits(V, Known, Depth, in computeKnownBits()
251 KnownBits Known = in isKnownNonNegative() local
253 return Known.isNonNegative(); in isKnownNonNegative()
271 KnownBits Known = in isKnownNegative() local
273 return Known.isNegative(); in isKnownNegative()
325 KnownBits &Known, KnownBits &Known2, in computeKnownBitsMul() argument
327 unsigned BitWidth = Known.getBitWidth(); in computeKnownBitsMul()
328 computeKnownBits(Op1, Known, Depth + 1, Q); in computeKnownBitsMul()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp68 KnownBits Known(BitWidth); in SimplifyDemandedInstructionBits() local
71 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, Known, in SimplifyDemandedInstructionBits()
84 KnownBits &Known, in SimplifyDemandedBits() argument
87 Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask, Known, in SimplifyDemandedBits()
119 KnownBits &Known, unsigned Depth, in SimplifyDemandedUseBits() argument
127 Known.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
131 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
135 Known.resetAll(); in SimplifyDemandedUseBits()
144 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
152 return SimplifyMultipleUseDemandedBits(I, DemandedMask, Known, Depth, CxtI); in SimplifyDemandedUseBits()
[all …]
/external/llvm-project/llvm/lib/Analysis/
DValueTracking.cpp203 KnownBits &Known, unsigned Depth, const Query &Q);
205 static void computeKnownBits(const Value *V, KnownBits &Known, unsigned Depth, in computeKnownBits() argument
210 Known.resetAll(); in computeKnownBits()
217 computeKnownBits(V, DemandedElts, Known, Depth, Q); in computeKnownBits()
220 void llvm::computeKnownBits(const Value *V, KnownBits &Known, in computeKnownBits() argument
225 ::computeKnownBits(V, Known, Depth, in computeKnownBits()
230 KnownBits &Known, const DataLayout &DL, in computeKnownBits() argument
234 ::computeKnownBits(V, DemandedElts, Known, Depth, in computeKnownBits()
328 KnownBits Known = in isKnownNonNegative() local
330 return Known.isNonNegative(); in isKnownNonNegative()
[all …]
/external/clang/test/Parser/
Dcxx-template-argument.cpp57 template<class T1, typename T2> struct Known { }; // expected-note 3 {{template is declared here}} struct
68 Known<T1> // expected-error {{too few template arguments for class template 'Known'}}
78 Known<T1> // expected-error {{too few template arguments for class template 'Known'}}
93 Known<T1> // expected-error {{too few template arguments for class template 'Known'}}
108 UnknownBase<Known<int,int>,X<int,int>> // expected-error {{unknown template name 'UnknownBase'}}
115 …UnknownBase<Known<int,int>,X<int,X<int,int>>> // expected-error {{unknown template name 'UnknownBa…
/external/llvm-project/clang/test/Parser/
Dcxx-template-argument.cpp57 template<class T1, typename T2> struct Known { }; // expected-note 3 {{template is declared here}} struct
68 Known<T1> // expected-error {{too few template arguments for class template 'Known'}}
77 Known<T1> // expected-error {{too few template arguments for class template 'Known'}}
92 Known<T1> // expected-error {{too few template arguments for class template 'Known'}}
107 UnknownBase<Known<int,int>,X<int,int>> // expected-error {{no template named 'UnknownBase'}}
114 …UnknownBase<Known<int,int>,X<int,X<int,int>>> // expected-error {{no template named 'UnknownBase'}}
/external/llvm-project/llvm/include/llvm/CodeGen/
DFunctionLoweringInfo.h158 KnownBits Known = 1; member
237 const KnownBits &Known) { in AddLiveOutRegInfo() argument
239 if (NumSignBits == 1 && Known.isUnknown()) in AddLiveOutRegInfo()
245 LOI.Known.One = Known.One; in AddLiveOutRegInfo()
246 LOI.Known.Zero = Known.Zero; in AddLiveOutRegInfo()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DFunctionLoweringInfo.h161 KnownBits Known = 1; member
240 const KnownBits &Known) { in AddLiveOutRegInfo() argument
242 if (NumSignBits == 1 && Known.isUnknown()) in AddLiveOutRegInfo()
248 LOI.Known.One = Known.One; in AddLiveOutRegInfo()
249 LOI.Known.Zero = Known.Zero; in AddLiveOutRegInfo()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DKnownBits.cpp35 APInt Known = std::move(LHSKnownUnion) & RHSKnownUnion & CarryKnownUnion; in computeForAddCarry() local
37 assert((PossibleSumZero & Known) == (PossibleSumOne & Known) && in computeForAddCarry()
42 KnownOut.Zero = ~std::move(PossibleSumZero) & Known; in computeForAddCarry()
43 KnownOut.One = std::move(PossibleSumOne) & Known; in computeForAddCarry()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/IPO/
DAttributor.h1269 bool isAtFixpoint() const override { return Assumed == Known; }
1273 Known = Assumed;
1279 Assumed = Known;
1284 base_t getKnown() const { return Known; }
1331 base_t Known = getWorstState();
1346 return (this->Known & BitsEncoding) == BitsEncoding;
1358 this->Known |= Bits;
1369 this->Known = (this->Known & ~BitsEncoding);
1376 this->Assumed = (this->Assumed & BitsEncoding) | this->Known;
1386 this->Known |= KnownValue;
[all …]
/external/clang/lib/Frontend/
DLayoutOverrideSource.cpp167 llvm::StringMap<Layout>::iterator Known = Layouts.find(Record->getName()); in layoutRecordType() local
168 if (Known == Layouts.end()) in layoutRecordType()
176 if (NumFields >= Known->second.FieldOffsets.size()) in layoutRecordType()
179 FieldOffsets[*F] = Known->second.FieldOffsets[NumFields]; in layoutRecordType()
183 if (NumFields != Known->second.FieldOffsets.size()) in layoutRecordType()
186 Size = Known->second.Size; in layoutRecordType()
187 Alignment = Known->second.Align; in layoutRecordType()
/external/llvm-project/clang/lib/Frontend/
DLayoutOverrideSource.cpp166 llvm::StringMap<Layout>::iterator Known = Layouts.find(Record->getName()); in layoutRecordType() local
167 if (Known == Layouts.end()) in layoutRecordType()
175 if (NumFields >= Known->second.FieldOffsets.size()) in layoutRecordType()
178 FieldOffsets[*F] = Known->second.FieldOffsets[NumFields]; in layoutRecordType()
182 if (NumFields != Known->second.FieldOffsets.size()) in layoutRecordType()
185 Size = Known->second.Size; in layoutRecordType()
186 Alignment = Known->second.Align; in layoutRecordType()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp2507 KnownBits Known(BitWidth); // Don't know anything. in computeKnownBits() local
2511 Known.One = C->getAPIntValue(); in computeKnownBits()
2512 Known.Zero = ~Known.One; in computeKnownBits()
2513 return Known; in computeKnownBits()
2517 Known.One = C->getValueAPF().bitcastToAPInt(); in computeKnownBits()
2518 Known.Zero = ~Known.One; in computeKnownBits()
2519 return Known; in computeKnownBits()
2523 return Known; // Limit search depth. in computeKnownBits()
2532 return Known; // No demanded elts, better to assume we don't know anything. in computeKnownBits()
2538 Known.Zero.setAllBits(); Known.One.setAllBits(); in computeKnownBits()
[all …]
DFunctionLoweringInfo.cpp408 if (BitWidth > LOI->Known.getBitWidth()) { in GetLiveOutRegInfo()
410 LOI->Known = LOI->Known.zext(BitWidth, false /* => any extend */); in GetLiveOutRegInfo()
443 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo()
450 DestLOI.Known.Zero = ~Val; in ComputePHILiveOutRegInfo()
451 DestLOI.Known.One = Val; in ComputePHILiveOutRegInfo()
468 assert(DestLOI.Known.Zero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
469 DestLOI.Known.One.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
476 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo()
483 DestLOI.Known.Zero &= ~Val; in ComputePHILiveOutRegInfo()
484 DestLOI.Known.One &= Val; in ComputePHILiveOutRegInfo()
[all …]
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp419 if (BitWidth > LOI->Known.getBitWidth()) { in GetLiveOutRegInfo()
421 LOI->Known = LOI->Known.anyext(BitWidth); in GetLiveOutRegInfo()
454 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo()
461 DestLOI.Known.Zero = ~Val; in ComputePHILiveOutRegInfo()
462 DestLOI.Known.One = Val; in ComputePHILiveOutRegInfo()
479 assert(DestLOI.Known.Zero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
480 DestLOI.Known.One.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo()
487 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo()
494 DestLOI.Known.Zero &= ~Val; in ComputePHILiveOutRegInfo()
495 DestLOI.Known.One &= Val; in ComputePHILiveOutRegInfo()
[all …]
/external/llvm-project/llvm/unittests/CodeGen/
DAArch64SelectionDAGTest.cpp98 KnownBits Known = DAG->computeKnownBits(Op, DemandedElts); in TEST_F() local
99 EXPECT_TRUE(Known.isZero()); in TEST_F()
113 KnownBits Known = DAG->computeKnownBits(Op, DemandedElts); in TEST_F() local
116 EXPECT_EQ(Known.Zero, APInt(16, 0u)); in TEST_F()
117 EXPECT_EQ(Known.One, APInt(16, 0u)); in TEST_F()
118 EXPECT_FALSE(Known.isZero()); in TEST_F()
132 KnownBits Known = DAG->computeKnownBits(Op, DemandedElts); in TEST_F() local
133 EXPECT_TRUE(Known.isZero()); in TEST_F()
222 KnownBits Known; in TEST_F() local
225 EXPECT_TRUE(TL.SimplifyDemandedBits(Op, DemandedBits, Known, TLO)); in TEST_F()
[all …]
/external/rust/crates/itertools/src/
Dpermutations.rs51 Known(usize), enumerator
131 CompleteStateRemaining::Known(count) => count, in count()
162 CompleteStateRemaining::Known(count) => (count, Some(count)), in size_hint()
245 use self::CompleteStateRemaining::{Known, Overflow}; in remaining()
250 return Known(0); in remaining()
258 Some(count) => Known(count), in remaining()
276 Known(count) in remaining()
/external/llvm-project/polly/unittests/DeLICM/
DDeLICMTest.cpp36 isl::union_set &Occupied, isl::union_map &Known, in completeLifetime() argument
46 assert(!Known); in completeLifetime()
48 Known = isl::union_map::empty(ParamSpace); in completeLifetime()
56 Known = Known.add_map(Map); in completeLifetime()
65 if (!Known) { // By default, nothing is known. in completeLifetime()
66 Known = isl::union_map::empty(ParamSpace); in completeLifetime()
72 assert(Known); in completeLifetime()
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
DGISelKnownBits.h37 void computeKnownBitsMin(Register Src0, Register Src1, KnownBits &Known,
56 virtual void computeKnownBitsImpl(Register R, KnownBits &Known,
85 static void computeKnownBitsForAlignment(KnownBits &Known, in computeKnownBitsForAlignment() argument
88 Known.Zero.setLowBits(Log2(Alignment)); in computeKnownBitsForAlignment()

12345678910>>...15