/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | BitVector.h | 92 Storage Bits; // Actual bits. variable 106 WordRef = &b.Bits[Idx / BITWORD_SIZE]; in reference() 150 : Bits(NumBitWords(s), 0 - (BitWord)t), Size(s) { in NumBitWords() 164 for (auto Bit : Bits) in count() 171 return any_of(Bits, [](BitWord Bit) { return Bit != 0; }); in any() 177 if (Bits[i] != ~BitWord(0)) in all() 182 return Bits[Size / BITWORD_SIZE] == (BitWord(1) << Remainder) - 1; in all() 209 BitWord Copy = Bits[i]; 241 BitWord Copy = Bits[CurrentWord]; in find_last_in() 278 BitWord Copy = Bits[CurrentWord]; in find_last_unset_in() [all …]
|
H A D | PackedVector.h | 31 static T getValue(const BitVectorTy &Bits, unsigned Idx) { in getValue() argument 34 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue() 38 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { in setValue() argument 41 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue() 48 static T getValue(const BitVectorTy &Bits, unsigned Idx) { in getValue() argument 51 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue() 52 if (Bits[(Idx << (BitNum-1)) + BitNum-1]) in getValue() 57 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { in setValue() argument 60 Bits.set((Idx << (BitNum-1)) + BitNum-1); in setValue() 64 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue() [all …]
|
H A D | SparseBitVector.h | 55 BitWord Bits[BITWORDS_PER_ELEMENT]; member 59 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT); in SparseBitVectorElement() 65 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT); in SparseBitVectorElement() 73 if (Bits[i] != RHS.Bits[i]) 85 return Bits[Idx]; in word() 94 if (Bits[i]) in empty() 100 Bits[Idx / BITWORD_SIZE] |= 1L << (Idx % BITWORD_SIZE); in set() 113 Bits[Idx / BITWORD_SIZE] &= ~(1L << (Idx % BITWORD_SIZE)); in reset() 117 return Bits[Id in test() 335 typename SparseBitVectorElement<ElementSize>::BitWord Bits; global() variable [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> 103 struct DenseMapInfo<PointerEmbeddedInt<IntT, Bits>> { [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"); 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>; 160 using C = Compressor<IntegerType, Bitfield::Bits>; 161 using BP = BitPatterns<StorageType, Bitfield::Bits>; [all …]
|
H A D | SmallBitVector.h | 202 uintptr_t Bits = getSmallBits(); in count() local 203 return llvm::popcount(Bits); in count() 232 uintptr_t Bits = getSmallBits(); in find_first() local 233 if (Bits == 0) in find_first() 235 return llvm::countr_zero(Bits); in find_first() 242 uintptr_t Bits = getSmallBits(); in find_last() local 243 if (Bits == 0) in find_last() 245 return NumBaseBits - llvm::countl_zero(Bits) - 1; in find_last() 256 uintptr_t Bits = getSmallBits(); in find_first_unset() local 257 return llvm::countr_one(Bits); in find_first_unset() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/ |
H A D | SubtargetFeature.h | 44 std::array<uint64_t, MAX_SUBTARGET_WORDS> Bits{}; 48 : Bits{B} {} in FeatureBitset() 58 std::fill(std::begin(Bits), std::end(Bits), -1ULL); in set() 63 Bits[I / 64] |= uint64_t(1) << (I % 64); in set() 68 Bits[I / 64] &= ~(uint64_t(1) << (I % 64)); 73 Bits[I / 64] ^= uint64_t(1) << (I % 64); in reset() 79 return (Bits[I / 64] & Mask) != 0; in flip() 87 return llvm::any_of(Bits, [](uint64_t I) { return I != 0; }); 92 for (auto B : Bits) in any() [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCMachineFunctionInfo.cpp | 101 int Bits = 0; in getVecExtParmsType() local 112 Bits += XCOFF::TracebackTable::WidthOfParamType; in getVecExtParmsType() 118 Bits += XCOFF::TracebackTable::WidthOfParamType; in getVecExtParmsType() 124 Bits += XCOFF::TracebackTable::WidthOfParamType; in getVecExtParmsType() 130 Bits += XCOFF::TracebackTable::WidthOfParamType; in getVecExtParmsType() 137 if (Bits >= 32) in getVecExtParmsType() 140 return Bits < 32 ? VectExtParamInfo << (32 - Bits) : VectExtParamInfo; in getVecExtParmsType() 147 int Bits = 0; in getParmsType() local 150 if (Bits > 31 || (Bits > 30 && (Elt != FixedType || hasVectorParms()))) in getParmsType() 160 Bits += XCOFF::TracebackTable::WidthOfParamType; in getParmsType() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | FoldingSet.cpp | 49 Bits.reserve(Bits.size() + NumInserts); in AddString() 51 Bits.push_back(Size); in AddString() 60 Bits.append(Base, Base + Units); in AddString() 74 Bits.push_back(V); in AddString() 82 Bits.push_back(V); in AddString() 98 Bits.push_back(V); in AddString() 103 Bits.append(ID.Bits.begin(), ID.Bits.end()); in AddNodeID() 109 return *this == FoldingSetNodeIDRef(RHS.Bits.data(), RHS.Bits.size()); in operator ==() 115 return FoldingSetNodeIDRef(Bits.data(), Bits.size()) == RHS; in operator ==() 121 return *this < FoldingSetNodeIDRef(RHS.Bits.data(), RHS.Bits.size()); in operator <() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/ |
H A D | AArch64BaseInfo.cpp | 159 uint32_t Bits; in parseGenericRegister() local 165 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2; in parseGenericRegister() 167 return Bits; in parseGenericRegister() 170 std::string AArch64SysReg::genericRegisterString(uint32_t Bits) { in genericRegisterString() argument 171 assert(Bits < 0x10000); in genericRegisterString() 172 uint32_t Op0 = (Bits >> 14) & 0x3; in genericRegisterString() 173 uint32_t Op1 = (Bits >> 11) & 0x7; in genericRegisterString() 174 uint32_t CRn = (Bits >> 7) & 0xf; in genericRegisterString() 175 uint32_t CRm = (Bits >> 3) & 0xf; in genericRegisterString() 176 uint32_t Op2 = Bits & 0x7; in genericRegisterString()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | DiagnosticOptions.h | 93 #define DIAGOPT(Name, Bits, Default) unsigned Name : Bits; argument 94 #define ENUM_DIAGOPT(Name, Type, Bits, Default) argument 100 #define DIAGOPT(Name, Bits, Default) argument 101 #define ENUM_DIAGOPT(Name, Type, Bits, Default) unsigned Name : Bits; argument 133 #define DIAGOPT(Name, Bits, Default) argument 134 #define ENUM_DIAGOPT(Name, Type, Bits, Default) \ argument 140 #define DIAGOPT(Name, Bits, Default) Name = Default; in DiagnosticOptions() argument 141 #define ENUM_DIAGOPT(Name, Type, Bits, Default) set##Name(Default); in DiagnosticOptions() argument
|
H A D | DebugOptions.def | 20 #define DEBUGOPT(Name, Bits, Default) \ 21 CODEGENOPT(Name, Bits, Default) 25 # define VALUE_DEBUGOPT(Name, Bits, Default) \ 26 VALUE_CODEGENOPT(Name, Bits, Default) 30 # define ENUM_DEBUGOPT(Name, Type, Bits, Default) \ 31 ENUM_CODEGENOPT(Name, Type, Bits, Default) 35 #define BENIGN_DEBUGOPT(Name, Bits, Default) \ 36 DEBUGOPT(Name, Bits, Default) 40 # define BENIGN_VALUE_DEBUGOPT(Name, Bits, Default) \ 41 VALUE_DEBUGOPT(Name, Bits, Default) [all …]
|
H A D | DiagnosticOptions.def | 23 # define VALUE_DIAGOPT(Name, Bits, Default) \ 24 DIAGOPT(Name, Bits, Default) 28 # define ENUM_DIAGOPT(Name, Type, Bits, Default) \ 29 DIAGOPT(Name, Bits, Default) 33 # define SEMANTIC_DIAGOPT(Name, Bits, Default) DIAGOPT(Name, Bits, Default) 37 # define SEMANTIC_VALUE_DIAGOPT(Name, Bits, Default) \ 38 VALUE_DIAGOPT(Name, Bits, Default) 42 # define SEMANTIC_ENUM_DIAGOPT(Name, Type, Bits, Default) \ 43 ENUM_DIAGOPT(Name, Type, Bits, Default)
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | WholeProgramDevirt.h | 109 VTableBits *Bits; member 115 return Bits < other.Bits || (Bits == other.Bits && Offset < other.Offset); 155 uint64_t minAfterBytes() const { return TM->Bits->ObjectSize - TM->Offset; } in minAfterBytes() 160 return minBeforeBytes() + TM->Bits->Before.Bytes.size(); in allocatedBeforeBytes() 166 return minAfterBytes() + TM->Bits->After.Bytes.size(); in allocatedAfterBytes() 172 TM->Bits->Before.setBit(Pos - 8 * minBeforeBytes(), RetVal); in setBeforeBit() 178 TM->Bits->After.setBit(Pos - 8 * minAfterBytes(), RetVal); in setAfterBit() 187 TM->Bits->Before.setLE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes() 189 TM->Bits->Before.setBE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes() 196 TM->Bits->After.setBE(Pos - 8 * minAfterBytes(), RetVal, Size); in setAfterBytes() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVOptWInstrs.cpp | 94 unsigned Bits) { in vectorPseudoHasAllNBitUsers() argument 113 return NumDemandedBits && Bits >= *NumDemandedBits; in vectorPseudoHasAllNBitUsers() 131 unsigned Bits = P.second; in hasAllNBitUsers() local 150 if (vectorPseudoHasAllNBitUsers(UserOp, Bits)) in hasAllNBitUsers() 182 if (Bits >= 32) in hasAllNBitUsers() 187 if (Bits >= 8) in hasAllNBitUsers() 195 if (Bits >= 16) in hasAllNBitUsers() 200 if (Bits >= (ST.getXLen() / 2)) in hasAllNBitUsers() 209 if (Bits > ShAmt) { in hasAllNBitUsers() 210 Worklist.push_back(std::make_pair(UserMI, Bits - ShAmt)); in hasAllNBitUsers() [all …]
|
H A D | RISCVISelDAGToDAG.h | 66 template <unsigned MaxShift, unsigned Bits> 72 if (C && C->getZExtValue() == maskTrailingOnes<uint64_t>(Bits)) { in SelectAddrRegZextRegScale() 103 bool selectSExtBits(SDValue N, unsigned Bits, SDValue &Val); 104 template <unsigned Bits> bool selectSExtBits(SDValue N, SDValue &Val) { in selectSExtBits() 105 return selectSExtBits(N, Bits, Val); in selectSExtBits() 107 bool selectZExtBits(SDValue N, unsigned Bits, SDValue &Val); 108 template <unsigned Bits> bool selectZExtBits(SDValue N, SDValue &Val) { in selectZExtBits() 109 return selectZExtBits(N, Bits, Val); in selectZExtBits() 122 bool hasAllNBitUsers(SDNode *Node, unsigned Bits, 134 bool selectVSplatUimm(SDValue N, unsigned Bits, SDValue &SplatVal); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86FixupVectorConstants.cpp | 99 if (std::optional<APInt> Bits = extractConstantBits(CVSplat)) { in extractConstantBits() local 100 assert((NumBits % Bits->getBitWidth()) == 0 && "Illegal splat"); in extractConstantBits() 101 return APInt::getSplat(NumBits, *Bits); in extractConstantBits() 105 APInt Bits = APInt::getZero(NumBits); in extractConstantBits() local 113 Bits.insertBits(*SubBits, I * SubBits->getBitWidth()); in extractConstantBits() 115 return Bits; in extractConstantBits() 125 APInt Bits = APInt::getZero(NumBits); in extractConstantBits() local 129 Bits.insertBits(CDS->getElementAsAPInt(I), I * EltBits); in extractConstantBits() 131 Bits.insertBits(CDS->getElementAsAPFloat(I).bitcastToAPInt(), in extractConstantBits() 134 return Bits; in extractConstantBits() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCSubtargetInfo.cpp | 37 void SetImpliedBits(FeatureBitset &Bits, const FeatureBitset &Implies, in SetImpliedBits() argument 41 Bits |= Implies; in SetImpliedBits() 44 SetImpliedBits(Bits, FE.Implies.getAsBitset(), FeatureTable); in SetImpliedBits() 49 void ClearImpliedBits(FeatureBitset &Bits, unsigned Value, in ClearImpliedBits() argument 53 Bits.reset(FE.Value); in ClearImpliedBits() 54 ClearImpliedBits(Bits, FE.Value, FeatureTable); in ClearImpliedBits() 59 static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, in ApplyFeatureFlag() argument 71 Bits.set(FeatureEntry->Value); in ApplyFeatureFlag() 74 SetImpliedBits(Bits, FeatureEntry->Implies.getAsBitset(), FeatureTable); in ApplyFeatureFlag() 76 Bits.reset(FeatureEntry->Value); in ApplyFeatureFlag() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
H A D | LoongArchOptWInstrs.cpp | 110 unsigned Bits = P.second; in hasAllNBitUsers() local 170 if (Bits >= 32) in hasAllNBitUsers() 174 if (Bits >= 1) in hasAllNBitUsers() 178 if (Bits >= 8) in hasAllNBitUsers() 182 if (Bits >= 16) in hasAllNBitUsers() 191 if (Bits > ShAmt) { in hasAllNBitUsers() 192 Worklist.push_back(std::make_pair(UserMI, Bits - ShAmt)); in hasAllNBitUsers() 201 if (Bits >= (ST.getGRLen() - UserMI->getOperand(2).getImm())) in hasAllNBitUsers() 203 Worklist.push_back(std::make_pair(UserMI, Bits)); in hasAllNBitUsers() 207 if (Bits >= (unsigned)llvm::bit_width(Imm)) in hasAllNBitUsers() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | StackLifetime.h | 64 BitVector Bits; variable 69 LiveRange(unsigned Size, bool Set = false) : Bits(Size, Set) {} in Bits() function 70 void addRange(unsigned Start, unsigned End) { Bits.set(Start, End); } in addRange() 73 return Bits.anyCommon(Other.Bits); in overlaps() 76 void join(const LiveRange &Other) { Bits |= Other.Bits; } in join() 78 bool test(unsigned Idx) const { return Bits.test(Idx); } in test() 180 return OS << R.Bits;
|
/freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/ |
H A D | XCOFF.cpp | 114 int Bits = 0; in parseParmsType() local 128 while (Bits < 31 && ParsedNum < ParmsNum) { in parseParmsType() 136 ++Bits; in parseParmsType() 146 Bits += 2; in parseParmsType() 199 for (int Bits = 0; Bits < 32 && ParsedNum < ParmsNum; Bits += 2) { in parseParmsTypeWithVecInfo() local 244 for (int Bits = 0; ParsedNum < ParmsNum && Bits < 32; Bits += 2) { in parseVectorParmsType() local
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Linkage.h | 69 unsigned Bits = 0; in toBits() local 70 Bits = (Bits << 1) | ExplicitKind; in toBits() 71 Bits = (Bits << 1) | IgnoreExplicitVisibility; in toBits() 72 Bits = (Bits << 1) | IgnoreAllVisibility; in toBits() 73 return Bits; in toBits()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | TemplateName.h | 70 struct BitsTag Bits; member 75 Bits.Kind = Kind; in UncommonTemplateNameStorage() 76 Bits.Index = Index; in UncommonTemplateNameStorage() 77 Bits.Data = Data; in UncommonTemplateNameStorage() 82 return Bits.Kind == Overloaded in getAsOverloadedStorage() 88 return Bits.Kind == Assumed in getAsAssumedTemplateName() 94 return Bits.Kind == SubstTemplateTemplateParm in getAsSubstTemplateTemplateParm() 100 return Bits.Kind == SubstTemplateTemplateParmPack in getAsSubstTemplateTemplateParmPack() 122 unsigned size() const { return Bits.Data; } in size() 127 iterator end() const { return getStorage() + Bits.Data; } in end() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | BPF.cpp | 29 uint64_t Bits = getContext().getTypeSize(Ty); in classifyArgumentType() local 30 if (Bits == 0) in classifyArgumentType() 34 if (Bits <= 128) { in classifyArgumentType() 36 if (Bits <= 64) { in classifyArgumentType() 38 llvm::IntegerType::get(getVMContext(), llvm::alignTo(Bits, 8)); in classifyArgumentType()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Integral.h | 35 template <unsigned Bits, bool Signed> struct Repr; 50 template <unsigned Bits, bool Signed> class Integral final { 55 using ReprT = typename Repr<Bits, Signed>::Type; 66 using AsUnsigned = Integral<Bits, false>; 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; } 152 if (TruncBits >= Bits) 298 template <unsigned Bits, bool Signed> [all …]
|