Home
last modified time | relevance | path

Searched refs:BitValue (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DBitTracker.h35 struct BitValue;
152 struct BitTracker::BitValue { struct
191 BitValue(ValueType T = Top) : Type(T) {} in Type() argument
192 BitValue(bool B) : Type(B ? One : Zero) {} in BitValue() function
193 BitValue(unsigned Reg, uint16_t Pos) : Type(Ref), RefI(Reg, Pos) {} in BitValue() function
195 bool operator== (const BitValue &V) const {
202 bool operator!= (const BitValue &V) const {
226 bool meet(const BitValue &V, const BitRef &Self) { in meet() argument
250 static BitValue ref(const BitValue &V);
252 static BitValue self(const BitRef &Self = BitRef());
[all …]
H A DBitTracker.cpp92 raw_ostream &operator<<(raw_ostream &OS, const BT::BitValue &BV) { in operator <<()
94 case BT::BitValue::Top: in operator <<()
97 case BT::BitValue::Zero: in operator <<()
100 case BT::BitValue::One: in operator <<()
103 case BT::BitValue::Ref: in operator <<()
122 const BT::BitValue &V = RC[i]; in operator <<()
123 const BT::BitValue &SV = RC[Start]; in operator <<()
124 bool IsRef = (V.Type == BT::BitValue::Ref); in operator <<()
128 if (IsRef && SV.Type == BT::BitValue::Ref && V.RefI.Reg == SV.RefI.Reg) { in operator <<()
147 if (SV.Type == BT::BitValue::Ref && SeqRef) in operator <<()
[all …]
H A DHexagonBitTracker.cpp317 return rr0(RegisterCell(W0).fill(0, W0, BT::BitValue::Zero), Outputs); in evaluate()
319 return rr0(RegisterCell(W0).fill(0, W0, BT::BitValue::One), Outputs); in evaluate()
326 RC.fill(0, L, BT::BitValue::Zero); in evaluate()
342 RC.fill(PW, RW, BT::BitValue::Zero); in evaluate()
349 RC.fill(PW, RW, BT::BitValue::Zero); in evaluate()
431 RPC.fill(0, 2, BT::BitValue::Zero); in evaluate()
677 RC[im(2)] = BT::BitValue::Zero; in evaluate()
682 RC[im(2)] = BT::BitValue::One; in evaluate()
688 RC[BX] = RC[BX].is(0) ? BT::BitValue::One in evaluate()
689 : RC[BX].is(1) ? BT::BitValue::Zero in evaluate()
[all …]
H A DHexagonBitSimplify.cpp325 if (RC1[B1+i].Type == BitTracker::BitValue::Ref && RC1[B1+i].RefI.Reg == 0) in isEqual()
328 if (RC2[B2+i].Type == BitTracker::BitValue::Ref && RC2[B2+i].RefI.Reg == 0) in isEqual()
350 const BitTracker::BitValue &BV = RC[i-1]; in getConst()
1843 const BitTracker::BitValue &RV = RC[i+B]; in matchHalf()
1844 if (RV.Type == BitTracker::BitValue::Ref) { in matchHalf()
2220 const BitTracker::BitValue &B0 = RC[0]; in genBitSplit()
2221 if (B0.Type != BitTracker::BitValue::Ref) in genBitSplit()
2230 const BitTracker::BitValue &V = RC[i]; in genBitSplit()
2231 if (V.Type != BitTracker::BitValue::Ref) in genBitSplit()
2251 const BitTracker::BitValue &S0 = SC[0]; in genBitSplit()
[all …]
H A DHexagonGenInsert.cpp238 bool operator() (const BitTracker::BitValue &V1,
239 const BitTracker::BitValue &V2) const;
246 bool BitValueOrdering::operator() (const BitTracker::BitValue &V1, in operator ()()
247 const BitTracker::BitValue &V2) const { in operator ()()
344 const BitTracker::BitValue &V1 = RC1[i], &V2 = RC2[i]; in operator ()()
374 const BitTracker::BitValue &V1 = RC1[Bit1], V2 = RC2[Bit2]; in operator ()()
635 const BitTracker::BitValue &BV = RC[i]; in isConstant()
650 const BitTracker::BitValue &BV = RC[i]; in isSmallConstant()
691 const BitTracker::BitValue &V = RC[i]; in findSelfReference()
692 if (V.Type == BitTracker::BitValue::Ref && V.RefI.Reg == VR) in findSelfReference()
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DDecoderEmitter.cpp254 struct BitValue { struct
262 BitValue(bit_value_t V) : V(V) {} in BitValue() function
263 explicit BitValue(const Init *Init) { in BitValue() argument
269 BitValue(const BitsInit &Bits, unsigned Idx) : BitValue(Bits.getBit(Idx)) {} in BitValue() function
313 OS << BitValue(Bit); in dumpBits()
338 typedef std::vector<BitValue> insn_t;
489 std::vector<BitValue> FilterBitValues;
515 FilterBitValues(BW, BitValue::BIT_UNFILTERED), Parent(nullptr), in FilterChooser()
523 const std::vector<BitValue> &ParentFilterBitValues, in FilterChooser()
541 Insn.resize(std::max(BitWidth, Bits.getNumBits()), BitValue::BIT_UNSET); in insnWithID()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DBitcastBuffer.cpp23 bool BitValue = bitof(In, Bits(It)); in pushData() local
24 if (!BitValue) in pushData()
52 bool BitValue = bitof(Data.get(), BitIndex); in copyBits() local
53 if (!BitValue) in copyBits()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h1343 void setBitVal(unsigned BitPosition, bool BitValue) { in setBitVal() argument
1344 if (BitValue) in setBitVal()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp3986 bool BitValue = !V.isUndef() && V->getAsZExtVal(); in lowerBuildVectorOfConstants() local
3987 Bits |= ((uint64_t)BitValue << BitPos); in lowerBuildVectorOfConstants()