Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DBitTracker.h38 struct BitValue;
155 struct BitTracker::BitValue { struct
194 BitValue(ValueType T = Top) : Type(T) {} in Type() argument
195 BitValue(bool B) : Type(B ? One : Zero) {} in BitValue() function
196 BitValue(unsigned Reg, uint16_t Pos) : Type(Ref), RefI(Reg, Pos) {} in BitValue() argument
198 bool operator== (const BitValue &V) const {
205 bool operator!= (const BitValue &V) const {
229 bool meet(const BitValue &V, const BitRef &Self) { in meet() argument
253 static BitValue ref(const BitValue &V);
255 static BitValue self(const BitRef &Self = BitRef());
[all …]
H A DBitTracker.cpp97 raw_ostream &operator<<(raw_ostream &OS, const BT::BitValue &BV) { in operator <<()
99 case BT::BitValue::Top: in operator <<()
102 case BT::BitValue::Zero: in operator <<()
105 case BT::BitValue::One: in operator <<()
108 case BT::BitValue::Ref: in operator <<()
127 const BT::BitValue &V = RC[i]; in operator <<()
128 const BT::BitValue &SV = RC[Start]; in operator <<()
129 bool IsRef = (V.Type == BT::BitValue::Ref); in operator <<()
133 if (IsRef && SV.Type == BT::BitValue::Ref && V.RefI.Reg == SV.RefI.Reg) { in operator <<()
152 if (SV.Type == BT::BitValue::Ref && SeqRef) in operator <<()
[all …]
H A DHexagonBitTracker.cpp325 return rr0(RegisterCell(W0).fill(0, W0, BT::BitValue::Zero), Outputs); in evaluate()
327 return rr0(RegisterCell(W0).fill(0, W0, BT::BitValue::One), Outputs); in evaluate()
334 RC.fill(0, L, BT::BitValue::Zero); in evaluate()
350 RC.fill(PW, RW, BT::BitValue::Zero); in evaluate()
357 RC.fill(PW, RW, BT::BitValue::Zero); in evaluate()
439 RPC.fill(0, 2, BT::BitValue::Zero); in evaluate()
685 RC[im(2)] = BT::BitValue::Zero; in evaluate()
690 RC[im(2)] = BT::BitValue::One; in evaluate()
696 RC[BX] = RC[BX].is(0) ? BT::BitValue::One in evaluate()
697 : RC[BX].is(1) ? BT::BitValue::Zero in evaluate()
[all …]
H A DHexagonBitSimplify.cpp347 if (RC1[B1+i].Type == BitTracker::BitValue::Ref && RC1[B1+i].RefI.Reg == 0) in isEqual()
350 if (RC2[B2+i].Type == BitTracker::BitValue::Ref && RC2[B2+i].RefI.Reg == 0) in isEqual()
372 const BitTracker::BitValue &BV = RC[i-1]; in getConst()
1865 const BitTracker::BitValue &RV = RC[i+B]; in matchHalf()
1866 if (RV.Type == BitTracker::BitValue::Ref) { in matchHalf()
2242 const BitTracker::BitValue &B0 = RC[0]; in genBitSplit()
2243 if (B0.Type != BitTracker::BitValue::Ref) in genBitSplit()
2252 const BitTracker::BitValue &V = RC[i]; in genBitSplit()
2253 if (V.Type != BitTracker::BitValue::Ref) in genBitSplit()
2273 const BitTracker::BitValue &S0 = SC[0]; in genBitSplit()
[all …]
H A DHexagonGenInsert.cpp237 bool operator() (const BitTracker::BitValue &V1,
238 const BitTracker::BitValue &V2) const;
245 bool BitValueOrdering::operator() (const BitTracker::BitValue &V1, in operator ()()
246 const BitTracker::BitValue &V2) const { in operator ()()
343 const BitTracker::BitValue &V1 = RC1[i], &V2 = RC2[i]; in operator ()()
373 const BitTracker::BitValue &V1 = RC1[Bit1], V2 = RC2[Bit2]; in operator ()()
643 const BitTracker::BitValue &BV = RC[i]; in isConstant()
658 const BitTracker::BitValue &BV = RC[i]; in isSmallConstant()
699 const BitTracker::BitValue &V = RC[i]; in findSelfReference()
700 if (V.Type == BitTracker::BitValue::Ref && V.RefI.Reg == VR) in findSelfReference()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h1323 void setBitVal(unsigned BitPosition, bool BitValue) { in setBitVal() argument
1324 if (BitValue) in setBitVal()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp3672 bool BitValue = !V.isUndef() && V->getAsZExtVal(); in lowerBuildVectorOfConstants()
3673 Bits |= ((uint64_t)BitValue << BitPos); in lowerBuildVectorOfConstants()
3671 bool BitValue = !V.isUndef() && V->getAsZExtVal(); lowerBuildVectorOfConstants() local