/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | PackedVector.h | 30 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 D | PointerEmbeddedInt.h | 32 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 D | BitVector.h | 82 MutableArrayRef<BitWord> Bits; // Actual bits. member in class:llvm::BitVector 96 WordRef = &b.Bits[Idx / BITWORD_SIZE]; 141 Bits = allocate(Capacity); 142 init_words(Bits, t); 150 Bits = MutableArrayRef<BitWord>(); 155 Bits = allocate(Capacity); 156 std::memcpy(Bits.data(), RHS.Bits.data(), Capacity * sizeof(BitWord)); 159 BitVector(BitVector &&RHS) : Bits(RHS.Bits), Siz [all...] |
H A D | SparseBitVector.h | 54 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 D | Bitfields.h | 94 template <typename T, unsigned Bits> struct BitPatterns { 103 static_assert(TypeBits >= Bits, "n-bit must fit in T"); 105 /// e.g. with TypeBits == 8 and Bits == 6. 109 static constexpr Unsigned Umax = AllOnes >> (TypeBits - Bits); // 00111111 110 static constexpr Unsigned SignBitMask = Unsigned(1) << (Bits - 1); // 00100000 120 template <typename T, unsigned Bits, bool = std::is_unsigned<T>::value> 123 using BP = BitPatterns<T, Bits>; 134 template <typename T, unsigned Bits> struct Compressor<T, Bits, false> { 136 using BP = BitPatterns<T, Bits>; 228 static constexpr unsigned Bits = Size; member in struct:llvm::Bitfield::Element [all...] |
H A D | SmallBitVector.h | 199 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 290 uintptr_t Bits = getSmallBits(); local 311 uintptr_t Bits = getSmallBits(); local [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/ |
H A D | AArch64BaseInfo.cpp | 136 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-13-stable/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | SubtargetFeature.h | 44 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-13-stable/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | DiagnosticOptions.h | 79 #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; 115 #define DIAGOPT(Name, Bits, Default) 116 #define ENUM_DIAGOPT(Name, Type, Bits, Default) \ 122 #define DIAGOPT(Name, Bits, Default) Name = Default; 123 #define ENUM_DIAGOPT(Name, Type, Bits, Defaul [all...] |
H A D | DiagnosticIDs.h | 148 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 D | CodeGenOptions.h | 34 #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; 342 #define CODEGENOPT(Name, Bits, Default) 343 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) \
|
H A D | LangOptions.h | 35 #define LANGOPT(Name, Bits, Default, Description) unsigned Name : Bits; 36 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) 42 #define LANGOPT(Name, Bits, Default, Description) 43 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \ 44 unsigned Name : Bits; 303 #define LANGOPT(Name, Bits, Default, Description) 304 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/ |
H A D | LangOptions.cpp | 18 #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 D | CodeGenOptions.cpp | 15 #define CODEGENOPT(Name, Bits, Default) Name = Default; 16 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | FoldingSet.cpp | 62 Bits.push_back(I); 65 Bits.push_back(I); 91 Bits.reserve(Bits.size() + NumInserts); 93 Bits.push_back(Size); 102 Bits.append(Base, Base + Units); 116 Bits.push_back(V); 124 Bits.push_back(V); 140 Bits.push_back(V); 145 Bits [all...] |
H A D | X86TargetParser.cpp | 31 uint32_t Bits[NUM_FEATURE_WORDS] = {}; member in class:__anon3823::FeatureBitset 41 return llvm::any_of(Bits, [](uint64_t V) { return V != 0; }); 46 uint32_t NewBits = Bits[I / 32] | (uint32_t(1) << (I % 32)); 47 Bits[I / 32] = NewBits; 53 return (Bits[I / 32] & Mask) != 0; 57 for (unsigned I = 0, E = array_lengthof(Bits); I != E; ++I) { 59 uint32_t NewBits = Bits[I] & RHS.Bits[I]; 60 Bits[I] = NewBits; 66 for (unsigned I = 0, E = array_lengthof(Bits); [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | StackLifetime.h | 64 BitVector Bits; member in class:llvm::StackLifetime::LiveRange 69 LiveRange(unsigned Size, bool Set = false) : Bits(Size, Set) {} 70 void addRange(unsigned Start, unsigned End) { Bits.set(Start, End); } 73 return Bits.anyCommon(Other.Bits); 76 void join(const LiveRange &Other) { Bits |= Other.Bits; } 78 bool test(unsigned Idx) const { return Bits.test(Idx); } 185 return OS << R.Bits;
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | WholeProgramDevirt.h | 42 // 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 D | LowerTypeTests.h | 35 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-13-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | Linkage.h | 66 unsigned Bits = 0; local 67 Bits = (Bits << 1) | ExplicitKind; 68 Bits = (Bits << 1) | IgnoreExplicitVisibility; 69 Bits = (Bits << 1) | IgnoreAllVisibility; 70 return Bits;
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMBasicBlockInfo.h | 79 unsigned Bits = Unalign ? Unalign : KnownBits; local 82 if (Size & ((1u << Bits) - 1)) 83 Bits = countTrailingZeros(Size); 84 return Bits;
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCSubtargetInfo.cpp | 36 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 161 FeatureBitset Bits; local [all...] |
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/ubsan/ |
H A D | ubsan_value.h | 157 const unsigned Bits = getType().getIntegerBitWidth(); local 158 return Bits <= InlineBits; 165 const unsigned Bits = getType().getFloatBitWidth(); local 166 return Bits <= InlineBits;
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Integral.h | 41 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) 259 template <unsigned Bits, bool Signed> 260 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, Integral<Bits, Signe [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | TemplateName.h | 66 struct BitsTag Bits; member in union:clang::UncommonTemplateNameStorage::__anon1366 71 Bits.Kind = kind; 72 Bits.Size = size; 76 unsigned size() const { return Bits.Size; } 79 return Bits.Kind == Overloaded 85 return Bits.Kind == Assumed 91 return Bits.Kind == SubstTemplateTemplateParm 97 return Bits.Kind == SubstTemplateTemplateParmPack
|