| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | BitVector.h | 493 if (Bits[i] & RHS.Bits[i]) in anyCommon() 503 return std::equal(Bits.begin(), Bits.begin() + NumWords, RHS.Bits.begin()); 514 Bits[i] &= RHS.Bits[i]; 530 Bits[i] &= ~RHS.Bits[i]; in reset() 541 if ((Bits[i] & ~RHS.Bits[i]) != 0) in test() 560 Out.Bits[I] = f(Arg.Bits[I], Args.Bits[I]...); in apply() 569 Bits[I] |= RHS.Bits[I]; 577 Bits[I] ^= RHS.Bits[I]; 622 Bits[I] |= (Bits[I + 1] & Mask) << LSH; 681 std::swap(Bits, RHS.Bits); in swap() [all …]
|
| H A D | PackedVector.h | 52 if (Bits[(Idx << (BitNum-1)) + BitNum-1]) in getValue() 78 BitVectorTy Bits; variable 92 Vec.setValue(Vec.Bits, Idx, val); 97 return Vec.getValue(Vec.Bits, Idx); in T() 104 bool empty() const { return Bits.empty(); } in empty() 108 void clear() { Bits.clear(); } in clear() 115 Bits.reset(); in reset() 129 return base::getValue(Bits, Idx); 133 return Bits == RHS.Bits; 137 return Bits != RHS.Bits; [all …]
|
| H A D | Bitset.h | 39 std::array<BitWord, NumWords> Bits{}; 43 : Bits{B} {} in Bitset() 53 std::fill(std::begin(Bits), std::end(Bits), -BitWord(0)); in set() 74 return (Bits[I / BITWORD_SIZE] & Mask) != 0; 87 for (auto B : Bits) in count() 94 Bits[I] ^= RHS.Bits[I]; 105 for (unsigned I = 0, E = Bits.size(); I != E; ++I) 106 Bits[I] &= RHS.Bits[I]; 117 Bits[I] |= RHS.Bits[I]; 129 for (auto &B : Result.Bits) [all …]
|
| H A D | SparseBitVector.h | 73 if (Bits[i] != RHS.Bits[i]) 94 if (Bits[i]) in empty() 177 Bits[i] |= RHS.Bits[i]; in unionWith() 187 if (RHS.Bits[i] & Bits[i]) in intersects() 204 Bits[i] &= RHS.Bits[i]; in intersectWith() 227 Bits[i] &= ~RHS.Bits[i]; in intersectWithComplement() 247 Bits[i] = RHS1.Bits[i] & ~RHS2.Bits[i]; in intersectWithComplement() 359 while (Bits && !(Bits & 1)) { in AdvanceToNextNonZero() 365 if (!Bits) { in AdvanceToNextNonZero() 401 Bits = 0; in BitVector() [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"); 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>; 228 static constexpr unsigned Bits = Size; 230 static constexpr unsigned LastBit = Shift + Bits - 1; 231 static constexpr unsigned NextBit = Shift + 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() 257 return llvm::countr_one(Bits); in find_first_unset() 284 return llvm::countr_zero(Bits); in find_next() 301 return llvm::countr_one(Bits); in find_next_unset() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Basic/ |
| H A D | CodeGenOptions.cpp | 15 #define CODEGENOPT(Name, Bits, Default) Name = Default; in CodeGenOptions() argument 25 #define DEBUGOPT(Name, Bits, Default) in resetNonModularOptions() argument 26 #define VALUE_DEBUGOPT(Name, Bits, Default) in resetNonModularOptions() argument 27 #define ENUM_DEBUGOPT(Name, Type, Bits, Default) in resetNonModularOptions() argument 28 #define CODEGENOPT(Name, Bits, Default) Name = Default; in resetNonModularOptions() argument 36 #define DEBUGOPT(Name, Bits, Default) in resetNonModularOptions() argument 37 #define VALUE_DEBUGOPT(Name, Bits, Default) in resetNonModularOptions() argument 38 #define ENUM_DEBUGOPT(Name, Type, Bits, Default) in resetNonModularOptions() argument 47 #define DEBUGOPT(Name, Bits, Default) Name = Default; in resetNonModularOptions() argument 50 #define BENIGN_DEBUGOPT(Name, Bits, Default) in resetNonModularOptions() argument [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/TargetParser/ |
| H A D | SubtargetFeature.h | 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() 73 Bits[I / 64] ^= uint64_t(1) << (I % 64); in flip() 79 return (Bits[I / 64] & Mask) != 0; 92 for (auto B : Bits) in count() 99 Bits[I] ^= RHS.Bits[I]; 111 Bits[I] &= RHS.Bits[I]; 122 Bits[I] |= RHS.Bits[I]; 134 for (auto &B : Result.Bits) [all …]
|
| /freebsd-14.2/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() 164 ++Bits; in getParmsType() [all …]
|
| /freebsd-14.2/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() 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 <() 125 return FoldingSetNodeIDRef(Bits.data(), Bits.size()) < RHS; in operator <() [all …]
|
| /freebsd-14.2/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-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVOptWInstrs.cpp | 120 unsigned Bits = P.second; in hasAllNBitUsers() local 171 if (Bits >= 32) in hasAllNBitUsers() 176 if (Bits >= 8) in hasAllNBitUsers() 184 if (Bits >= 16) in hasAllNBitUsers() 189 if (Bits >= (ST.getXLen() / 2)) in hasAllNBitUsers() 198 if (Bits > ShAmt) { in hasAllNBitUsers() 233 if (Bits >= Log2_32(ST.getXLen())) in hasAllNBitUsers() 254 if (OpIdx == 1 && Bits >= 32) in hasAllNBitUsers() 266 if (OpIdx == 0 && Bits >= 8) in hasAllNBitUsers() 271 if (OpIdx == 0 && Bits >= 16) in hasAllNBitUsers() [all …]
|
| H A D | RISCVISelDAGToDAG.h | 68 template <unsigned MaxShift, unsigned Bits> 74 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, 133 bool selectVSplatUimm(SDValue N, unsigned Bits, SDValue &SplatVal); [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | WholeProgramDevirt.h | 108 VTableBits *Bits; member 114 return Bits < other.Bits || (Bits == other.Bits && Offset < other.Offset); 154 uint64_t minAfterBytes() const { return TM->Bits->ObjectSize - TM->Offset; } in minAfterBytes() 159 return minBeforeBytes() + TM->Bits->Before.Bytes.size(); in allocatedBeforeBytes() 165 return minAfterBytes() + TM->Bits->After.Bytes.size(); in allocatedAfterBytes() 171 TM->Bits->Before.setBit(Pos - 8 * minBeforeBytes(), RetVal); in setBeforeBit() 177 TM->Bits->After.setBit(Pos - 8 * minAfterBytes(), RetVal); in setAfterBit() 186 TM->Bits->Before.setLE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes() 188 TM->Bits->Before.setBE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes() 195 TM->Bits->After.setBE(Pos - 8 * minAfterBytes(), RetVal, Size); in setAfterBytes() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCSubtargetInfo.cpp | 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() 71 Bits.set(FeatureEntry->Value); in ApplyFeatureFlag() 76 Bits.reset(FeatureEntry->Value); in ApplyFeatureFlag() 79 ClearImpliedBits(Bits, FeatureEntry->Value, FeatureTable); in ApplyFeatureFlag() 162 FeatureBitset Bits; in getFeatures() local 203 ApplyFeatureFlag(Bits, Feature, ProcFeatures); in getFeatures() [all …]
|
| /freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86FixupVectorConstants.cpp | 80 return APInt::getSplat(NumBits, *Bits); in extractConstantBits() 92 APInt Bits = APInt::getZero(NumBits); in extractConstantBits() local 101 return Bits; in extractConstantBits() 116 if (std::optional<APInt> Bits = extractConstantBits(C)) in getSplatableConstant() local 117 if (Bits->isSplat(SplatBitWidth)) in getSplatableConstant() 118 return Bits->trunc(SplatBitWidth); in getSplatableConstant() 149 SplatBits.insertBits(*Bits, I * Bits->getBitWidth()); in getSplatableConstant() 165 unsigned BitWidth = Bits.getBitWidth(); in rebuildConstant() 170 RawBits.push_back(Bits.extractBits(8, I).getZExtValue()); in rebuildConstant() 177 RawBits.push_back(Bits.extractBits(16, I).getZExtValue()); in rebuildConstant() [all …]
|
| /freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | Linkage.h | 66 unsigned Bits = 0; in toBits() local 67 Bits = (Bits << 1) | ExplicitKind; in toBits() 68 Bits = (Bits << 1) | IgnoreExplicitVisibility; in toBits() 69 Bits = (Bits << 1) | IgnoreAllVisibility; in toBits() 70 return Bits; in toBits()
|
| /freebsd-14.2/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() 122 unsigned size() const { return Bits.Data; } in size() 156 unsigned getIndex() const { return Bits.Index; } in getIndex() 398 if (Bits.Data == 0) in getPackIndex() [all …]
|
| /freebsd-14.2/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()
|