Searched refs:Bits (Results 1 - 25 of 112) sorted by relevance

12345

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DPackedVector.h30 static T getValue(const BitVectorTy &Bits, unsigned Idx) { argument
33 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i));
37 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { argument
40 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i);
47 static T getValue(const BitVectorTy &Bits, unsigned Idx) { argument
50 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i));
51 if (Bits[(Idx << (BitNum-1)) + BitNum-1])
56 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { argument
59 Bits.set((Idx << (BitNum-1)) + BitNum-1);
63 Bits[(Id
77 BitVectorTy Bits; member in class:llvm::PackedVector
[all...]
H A DPointerEmbeddedInt.h32 template <typename IntT, int Bits = sizeof(IntT) * CHAR_BIT>
38 static_assert(Bits < sizeof(uintptr_t) * CHAR_BIT,
44 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits,
47 Mask = static_cast<uintptr_t>(-1) << Bits
64 assert((std::is_signed<IntT>::value ? isInt<Bits>(I) : isUInt<Bits>(I)) &&
81 template <typename IntT, int Bits>
82 struct PointerLikeTypeTraits<PointerEmbeddedInt<IntT, Bits>> {
83 using T = PointerEmbeddedInt<IntT, Bits>;
102 template <typename IntT, int Bits>
[all...]
H A DBitVector.h81 MutableArrayRef<BitWord> Bits; // Actual bits. member in class:llvm::BitVector
95 WordRef = &b.Bits[Idx / BITWORD_SIZE];
140 Bits = allocate(Capacity);
141 init_words(Bits, t);
149 Bits = MutableArrayRef<BitWord>();
154 Bits = allocate(Capacity);
155 std::memcpy(Bits.data(), RHS.Bits.data(), Capacity * sizeof(BitWord));
158 BitVector(BitVector &&RHS) : Bits(RHS.Bits), Siz
[all...]
H A DSparseBitVector.h54 BitWord Bits[BITWORDS_PER_ELEMENT]; member in struct:llvm::SparseBitVectorElement
58 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
64 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
72 if (Bits[i] != RHS.Bits[i])
84 return Bits[Idx];
93 if (Bits[i])
99 Bits[Idx / BITWORD_SIZE] |= 1L << (Idx % BITWORD_SIZE);
112 Bits[Idx / BITWORD_SIZE] &= ~(1L << (Idx % BITWORD_SIZE));
116 return Bits[Id
[all...]
H A DSmallBitVector.h199 uintptr_t Bits = getSmallBits(); local
200 return countPopulation(Bits);
229 uintptr_t Bits = getSmallBits(); local
230 if (Bits == 0)
232 return countTrailingZeros(Bits);
239 uintptr_t Bits = getSmallBits(); local
240 if (Bits == 0)
242 return NumBaseBits - countLeadingZeros(Bits) - 1;
253 uintptr_t Bits = getSmallBits();
254 return countTrailingOnes(Bits);
276 uintptr_t Bits = getSmallBits(); local
291 uintptr_t Bits = getSmallBits(); local
311 uintptr_t Bits = getSmallBits(); local
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Basic/
H A DLangOptions.cpp18 #define LANGOPT(Name, Bits, Default, Description) Name = Default;
19 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) set##Name(Default);
24 #define LANGOPT(Name, Bits, Default, Description)
25 #define BENIGN_LANGOPT(Name, Bits, Default, Description) Name = Default;
26 #define BENIGN_ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
H A DCodeGenOptions.cpp15 #define CODEGENOPT(Name, Bits, Default) Name = Default;
16 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/
H A DAArch64BaseInfo.cpp136 uint32_t Bits; local
142 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2;
144 return Bits;
147 std::string AArch64SysReg::genericRegisterString(uint32_t Bits) { argument
148 assert(Bits < 0x10000);
149 uint32_t Op0 = (Bits >> 14) & 0x3;
150 uint32_t Op1 = (Bits >> 11) & 0x7;
151 uint32_t CRn = (Bits >> 7) & 0xf;
152 uint32_t CRm = (Bits >> 3) & 0xf;
153 uint32_t Op2 = Bits
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/MC/
H A DSubtargetFeature.h44 uint64_t Bits[MAX_SUBTARGET_WORDS] = {}; member in class:llvm::FeatureBitset
49 Bits[I] = B[I];
60 std::fill(std::begin(Bits), std::end(Bits), -1ULL);
66 uint64_t NewBits = Bits[I / 64] | (uint64_t(1) << (I % 64));
67 Bits[I / 64] = NewBits;
73 uint64_t NewBits = Bits[I / 64] & ~(uint64_t(1) << (I % 64));
74 Bits[I / 64] = NewBits;
80 uint64_t NewBits = Bits[I / 64] ^ (uint64_t(1) << (I % 64));
81 Bits[
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Basic/
H A DDiagnosticOptions.h79 #define DIAGOPT(Name, Bits, Default) unsigned Name : Bits;
80 #define ENUM_DIAGOPT(Name, Type, Bits, Default)
86 #define DIAGOPT(Name, Bits, Default)
87 #define ENUM_DIAGOPT(Name, Type, Bits, Default) unsigned Name : Bits;
111 #define DIAGOPT(Name, Bits, Default)
112 #define ENUM_DIAGOPT(Name, Type, Bits, Default) \
118 #define DIAGOPT(Name, Bits, Default) Name = Default;
119 #define ENUM_DIAGOPT(Name, Type, Bits, Defaul
[all...]
H A DCodeGenOptions.h34 #define CODEGENOPT(Name, Bits, Default) unsigned Name : Bits;
35 #define ENUM_CODEGENOPT(Name, Type, Bits, Default)
39 #define CODEGENOPT(Name, Bits, Default)
40 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) unsigned Name : Bits;
316 #define CODEGENOPT(Name, Bits, Default)
317 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) \
H A DDiagnosticIDs.h148 static DiagnosticMapping deserialize(unsigned Bits) { argument
150 Result.IsUser = (Bits >> 7) & 1;
151 Result.IsPragma = (Bits >> 6) & 1;
152 Result.HasNoWarningAsError = (Bits >> 5) & 1;
153 Result.HasNoErrorAsFatal = (Bits >> 4) & 1;
154 Result.WasUpgradedFromWarning = (Bits >> 3) & 1;
155 Result.Severity = Bits & 0x7;
H A DLangOptions.h34 #define LANGOPT(Name, Bits, Default, Description) unsigned Name : Bits;
35 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description)
41 #define LANGOPT(Name, Bits, Default, Description)
42 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
43 unsigned Name : Bits;
306 #define LANGOPT(Name, Bits, Default, Description)
307 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DFoldingSet.cpp61 Bits.push_back(I);
64 Bits.push_back(I);
88 Bits.push_back(Size);
97 Bits.append(Base, Base + Units);
111 Bits.push_back(V);
119 Bits.push_back(V);
135 Bits.push_back(V);
140 Bits.append(ID.Bits.begin(), ID.Bits
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DWholeProgramDevirt.h42 // Bits in BytesUsed[I] are 1 if matching bit in Bytes[I] is used, 0 if not.
108 VTableBits *Bits; member in struct:llvm::wholeprogramdevirt::TypeMemberInfo
114 return Bits < other.Bits || (Bits == other.Bits && Offset < other.Offset);
154 uint64_t minAfterBytes() const { return TM->Bits->ObjectSize - TM->Offset; }
159 return minBeforeBytes() + TM->Bits->Before.Bytes.size();
165 return minAfterBytes() + TM->Bits->After.Bytes.size();
171 TM->Bits
[all...]
H A DLowerTypeTests.h35 std::set<uint64_t> Bits; member in struct:llvm::lowertypetests::BitSetInfo
49 return Bits.size() == 1;
53 return Bits.size() == BitSize;
187 /// Allocate BitSize bits in the byte array where Bits contains the bits to
192 void allocate(const std::set<uint64_t> &Bits, uint64_t BitSize,
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DLinkage.h65 unsigned Bits = 0; local
66 Bits = (Bits << 1) | ExplicitKind;
67 Bits = (Bits << 1) | IgnoreExplicitVisibility;
68 Bits = (Bits << 1) | IgnoreAllVisibility;
69 return Bits;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMBasicBlockInfo.h79 unsigned Bits = Unalign ? Unalign : KnownBits; local
82 if (Size & ((1u << Bits) - 1))
83 Bits = countTrailingZeros(Size);
84 return Bits;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/MC/
H A DMCSubtargetInfo.cpp36 void SetImpliedBits(FeatureBitset &Bits, const FeatureBitset &Implies, argument
40 Bits |= Implies;
43 SetImpliedBits(Bits, FE.Implies.getAsBitset(), FeatureTable);
48 void ClearImpliedBits(FeatureBitset &Bits, unsigned Value, argument
52 Bits.reset(FE.Value);
53 ClearImpliedBits(Bits, FE.Value, FeatureTable);
58 static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, argument
70 Bits.set(FeatureEntry->Value);
73 SetImpliedBits(Bits, FeatureEntry->Implies.getAsBitset(), FeatureTable);
75 Bits
163 FeatureBitset Bits; local
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_value.h154 const unsigned Bits = getType().getIntegerBitWidth(); local
155 return Bits <= InlineBits;
162 const unsigned Bits = getType().getFloatBitWidth(); local
163 return Bits <= InlineBits;
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/Interp/
H A DIntegral.h41 template <unsigned Bits, bool Signed> struct Repr;
56 template <unsigned Bits, bool Signed> class Integral {
61 using T = typename Repr<Bits, Signed>::Type;
107 return APSInt(APInt(Bits, static_cast<uint64_t>(V), Signed), !Signed);
117 Integral<Bits, false> toUnsigned() const {
118 return Integral<Bits, false>(*this);
121 constexpr static unsigned bitWidth() { return Bits; }
141 if (TruncBits >= Bits)
260 template <unsigned Bits, bool Signed>
261 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, Integral<Bits, Signe
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
H A DTemplateName.h65 struct BitsTag Bits; member in union:clang::UncommonTemplateNameStorage::__anon89
70 Bits.Kind = kind;
71 Bits.Size = size;
75 unsigned size() const { return Bits.Size; }
78 return Bits.Kind == Overloaded
84 return Bits.Kind == Assumed
90 return Bits.Kind == SubstTemplateTemplateParm
96 return Bits.Kind == SubstTemplateTemplateParmPack
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DBitTracker.cpp116 unsigned n = RC.Bits.size();
126 for (unsigned i = 1, n = RC.Bits.size(); i < n; ++i) {
206 for (uint16_t i = 0, n = Bits.size(); i < n; ++i) {
208 Changed |= Bits[i].meet(RCV, BitRef(SelfR, i));
225 Bits[i+B] = RC[i];
228 Bits[i+B] = RC[i];
230 Bits[i] = RC[i+(W-B)];
241 RC.Bits[i-B] = Bits[i];
247 RC.Bits[
[all...]
H A DBitTracker.h300 RegisterCell(uint16_t Width = DefaultBitN) : Bits(Width) {}
303 return Bits.size();
307 assert(BitN < Bits.size());
308 return Bits[BitN];
311 assert(BitN < Bits.size());
312 return Bits[BitN];
346 BitValueList Bits;
366 RC.Bits[i] = BitValue::self(BitRef(Reg, i));
374 RC.Bits[i] = BitValue(BitValue::Top);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsConstantIslandPass.cpp135 unsigned Bits, Scale; local
138 Bits = 11;
142 Bits = 16;
146 Bits = 8;
150 Bits = 16;
154 Bits = 8;
158 Bits = 16;
162 Bits = 8;
166 Bits = 16;
170 Bits
665 unsigned Bits = 0; local
745 unsigned Bits = 0; local
[all...]

Completed in 139 milliseconds

12345