| /src/contrib/llvm-project/llvm/lib/TargetParser/ |
| H A D | X86TargetParser.cpp | 23 using FeatureBitset = Bitset<X86::CPU_FEATURE_MAX>; typedef 29 FeatureBitset Features; 36 FeatureBitset ImpliedFeatures; 49 constexpr FeatureBitset Feature##ENUM = {X86::FEATURE_##ENUM}; 53 constexpr FeatureBitset FeaturesPentiumMMX = 57 constexpr FeatureBitset FeaturesPentium2 = 59 constexpr FeatureBitset FeaturesPentium3 = FeaturesPentium2 | FeatureSSE; 62 constexpr FeatureBitset FeaturesPentium4 = FeaturesPentium3 | FeatureSSE2; 63 constexpr FeatureBitset FeaturesPrescott = FeaturesPentium4 | FeatureSSE3; 64 constexpr FeatureBitset FeaturesNocona = [all …]
|
| /src/contrib/llvm-project/llvm/include/llvm/TargetParser/ |
| H A D | SubtargetFeature.h | 41 class FeatureBitset { 47 constexpr FeatureBitset(const std::array<uint64_t, MAX_SUBTARGET_WORDS> &B) in FeatureBitset() function 51 constexpr FeatureBitset() = default; 52 constexpr FeatureBitset(std::initializer_list<unsigned> Init) { in FeatureBitset() function 57 FeatureBitset &set() { in set() 62 constexpr FeatureBitset &set(unsigned I) { in set() 67 constexpr FeatureBitset &reset(unsigned I) { in reset() 72 constexpr FeatureBitset &flip(unsigned I) { in flip() 97 constexpr FeatureBitset &operator^=(const FeatureBitset &RHS) { 103 constexpr FeatureBitset operator^(const FeatureBitset &RHS) const { [all …]
|
| /src/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | MCSubtargetInfo.h | 92 FeatureBitset FeatureBits; // Feature bits for current CPU + FS 112 const FeatureBitset& getFeatureBits() const { return FeatureBits; } in getFeatureBits() 113 void setFeatureBits(const FeatureBitset &FeatureBits_) { in setFeatureBits() 137 FeatureBitset ToggleFeature(uint64_t FB); 141 FeatureBitset ToggleFeature(const FeatureBitset& FB); 145 FeatureBitset ToggleFeature(StringRef FS); 149 FeatureBitset ApplyFeatureFlag(StringRef FS); 152 FeatureBitset SetFeatureBitsTransitively(const FeatureBitset& FB); 153 FeatureBitset ClearFeatureBitsTransitively(const FeatureBitset &FB);
|
| /src/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCSubtargetInfo.cpp | 37 void SetImpliedBits(FeatureBitset &Bits, const FeatureBitset &Implies, in SetImpliedBits() 49 void ClearImpliedBits(FeatureBitset &Bits, unsigned Value, in ClearImpliedBits() 59 static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, in ApplyFeatureFlag() 151 static FeatureBitset getFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS, in getFeatures() 157 return FeatureBitset(); in getFeatures() 162 FeatureBitset Bits; in getFeatures() 241 FeatureBitset MCSubtargetInfo::ToggleFeature(uint64_t FB) { in ToggleFeature() 246 FeatureBitset MCSubtargetInfo::ToggleFeature(const FeatureBitset &FB) { in ToggleFeature() 251 FeatureBitset MCSubtargetInfo::SetFeatureBitsTransitively( in SetFeatureBitsTransitively() 252 const FeatureBitset &FB) { in SetFeatureBitsTransitively() [all …]
|
| /src/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/ |
| H A D | GlobalISelMatchTableExecutorEmitter.cpp | 77 for (const auto &FeatureBitset : FeatureBitsets) { in emitSubtargetFeatureBitsetImpl() local 78 if (FeatureBitset.first.empty() && FeatureBitset.second < 0) in emitSubtargetFeatureBitsetImpl() 81 << getNameForFeatureBitset(FeatureBitset.first, FeatureBitset.second) in emitSubtargetFeatureBitsetImpl() 87 for (const auto &FeatureBitset : FeatureBitsets) { in emitSubtargetFeatureBitsetImpl() local 88 if (FeatureBitset.first.empty() && FeatureBitset.second < 0) in emitSubtargetFeatureBitsetImpl() 91 for (const auto &Feature : FeatureBitset.first) { in emitSubtargetFeatureBitsetImpl() 97 if (FeatureBitset.second >= 0) { in emitSubtargetFeatureBitsetImpl() 98 OS << "Feature_HwMode" << FeatureBitset.second << "Bit, "; in emitSubtargetFeatureBitsetImpl()
|
| /src/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/ |
| H A D | HexagonMCTargetDesc.h | 50 class FeatureBitset; variable 73 FeatureBitset completeHVXFeatures(const FeatureBitset &FB); 85 std::optional<unsigned> getHVXVersion(const FeatureBitset &Features); 87 unsigned getArchVersion(const FeatureBitset &Features);
|
| H A D | HexagonMCTargetDesc.cpp | 500 FeatureBitset Hexagon_MC::completeHVXFeatures(const FeatureBitset &S) { in completeHVXFeatures() 504 FeatureBitset FB = S; in completeHVXFeatures() 592 llvm::FeatureBitset Features = X->getFeatureBits(); in createHexagonMCSubtargetInfo() 597 llvm::FeatureBitset Features = X->getFeatureBits(); in createHexagonMCSubtargetInfo() 609 llvm::FeatureBitset Features = X->getFeatureBits(); in createHexagonMCSubtargetInfo() 629 Hexagon_MC::getHVXVersion(const FeatureBitset &Features) { in getHVXVersion() 640 unsigned Hexagon_MC::getArchVersion(const FeatureBitset &Features) { in getArchVersion()
|
| /src/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPURemoveIncompatibleFunctions.cpp | 111 FeatureBitset expandImpliedFeatures(const FeatureBitset &Features) { in expandImpliedFeatures() 112 FeatureBitset Result = Features; in expandImpliedFeatures() 159 const FeatureBitset GPUFeatureBits = in checkFunction()
|
| H A D | AMDGPUTargetTransformInfo.cpp | 274 const FeatureBitset GCNTTIImpl::InlineFeatureIgnoreList = { 1173 const FeatureBitset &CallerBits = CallerST->getFeatureBits(); in areInlineCompatible() 1174 const FeatureBitset &CalleeBits = CalleeST->getFeatureBits(); in areInlineCompatible() 1176 FeatureBitset RealCallerBits = CallerBits & ~InlineFeatureIgnoreList; in areInlineCompatible() 1177 FeatureBitset RealCalleeBits = CalleeBits & ~InlineFeatureIgnoreList; in areInlineCompatible()
|
| H A D | AMDGPUTargetTransformInfo.h | 76 static const FeatureBitset InlineFeatureIgnoreList;
|
| /src/contrib/llvm-project/llvm/include/llvm/MC/MCParser/ |
| H A D | MCTargetAsmParser.h | 240 static NearMissInfo getMissedFeature(const FeatureBitset &MissingFeatures) { in getMissedFeature() 292 const FeatureBitset& getFeatures() const { in getFeatures() 342 FeatureBitset Features; 372 FeatureBitset AvailableFeatures; 397 const FeatureBitset& getAvailableFeatures() const { in getAvailableFeatures() 400 void setAvailableFeatures(const FeatureBitset& Value) { in setAvailableFeatures()
|
| /src/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVBaseInfo.h | 417 FeatureBitset FeaturesRequired; 420 bool haveRequiredFeatures(const FeatureBitset &ActiveFeatures) const { in haveRequiredFeatures() 461 ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits, 478 void validate(const Triple &TT, const FeatureBitset &FeatureBits); 481 parseFeatureBits(bool IsRV64, const FeatureBitset &FeatureBits);
|
| H A D | RISCVBaseInfo.cpp | 38 ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits, in computeTargetABI() 111 void validate(const Triple &TT, const FeatureBitset &FeatureBits) { in validate() 122 parseFeatureBits(bool IsRV64, const FeatureBitset &FeatureBits) { in parseFeatureBits()
|
| H A D | RISCVELFStreamer.cpp | 36 const FeatureBitset &Features = STI.getFeatureBits(); in RISCVTargetELFStreamer()
|
| /src/contrib/llvm-project/llvm/lib/Target/ARM/Utils/ |
| H A D | ARMBaseInfo.h | 196 FeatureBitset FeaturesRequired; 199 bool hasRequiredFeatures(FeatureBitset ActiveFeatures) const { in hasRequiredFeatures() 204 bool isInRequiredFeatures(FeatureBitset TestFeatures) const { in isInRequiredFeatures()
|
| /src/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/ |
| H A D | AArch64BaseInfo.h | 341 FeatureBitset FeaturesRequired; 344 constexpr SysAlias(const char *N, uint16_t E, FeatureBitset F) in SysAlias() 347 bool haveFeatures(FeatureBitset ActiveFeatures) const { in haveFeatures() 352 FeatureBitset getRequiredFeatures() const { return FeaturesRequired; } in getRequiredFeatures() 359 constexpr SysAliasReg(const char *N, uint16_t E, bool R, FeatureBitset F) in SysAliasReg() 367 constexpr SysAliasImm(const char *N, uint16_t E, uint16_t I, FeatureBitset F) in SysAliasImm() 689 FeatureBitset FeaturesRequired; 691 bool haveFeatures(FeatureBitset ActiveFeatures) const { in haveFeatures()
|
| /src/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyTargetMachine.cpp | 203 FeatureBitset Features = coalesceFeatures(M); in runOnModule() 232 FeatureBitset coalesceFeatures(const Module &M) { in coalesceFeatures() 233 FeatureBitset Features = in coalesceFeatures() 243 static std::string getFeatureString(const FeatureBitset &Features) { in getFeatureString() 309 void recordFeatures(Module &M, const FeatureBitset &Features, bool Stripped) { in recordFeatures()
|
| H A D | WebAssemblyTargetTransformInfo.cpp | 119 const FeatureBitset &CallerBits = in areInlineCompatible() 121 const FeatureBitset &CalleeBits = in areInlineCompatible()
|
| /src/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | InstrInfoEmitter.cpp | 724 getNameForFeatureBitset(const std::vector<Record *> &FeatureBitset) { in getNameForFeatureBitset() argument 726 for (const auto &Feature : FeatureBitset) in getNameForFeatureBitset() 783 for (const auto &FeatureBitset : FeatureBitsets) { in emitFeatureVerifier() local 784 if (FeatureBitset.empty()) in emitFeatureVerifier() 786 OS << " " << getNameForFeatureBitset(FeatureBitset) << ",\n"; in emitFeatureVerifier() 791 for (const auto &FeatureBitset : FeatureBitsets) { in emitFeatureVerifier() local 792 if (FeatureBitset.empty()) in emitFeatureVerifier() 795 for (const auto &Feature : FeatureBitset) { in emitFeatureVerifier()
|
| H A D | AsmMatcherEmitter.cpp | 3227 getNameForFeatureBitset(const std::vector<Record *> &FeatureBitset) { in getNameForFeatureBitset() argument 3229 for (const auto &Feature : FeatureBitset) in getNameForFeatureBitset() 3479 for (const auto &FeatureBitset : FeatureBitsets) { in run() local 3480 if (FeatureBitset.empty()) in run() 3482 OS << " " << getNameForFeatureBitset(FeatureBitset) << ",\n"; in run() 3487 for (const auto &FeatureBitset : FeatureBitsets) { in run() local 3488 if (FeatureBitset.empty()) in run() 3491 for (const auto &Feature : FeatureBitset) { in run()
|
| /src/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/ |
| H A D | LoongArchBaseInfo.h | 72 ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits,
|
| H A D | LoongArchBaseInfo.cpp | 72 ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits, in computeTargetABI()
|
| /src/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRELFStreamer.cpp | 13 static unsigned getEFlagsForFeatureSet(const FeatureBitset &Features) { in getEFlagsForFeatureSet()
|
| /src/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMSubtarget.cpp | 242 const FeatureBitset &Bits = getFeatureBits(); in initSubtargetFeatures()
|
| /src/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/ |
| H A D | X86AsmParser.cpp | 136 uint64_t &ErrorInfo, FeatureBitset &MissingFeatures, in MatchInstruction() 1205 bool ErrorMissingFeature(SMLoc IDLoc, const FeatureBitset &MissingFeatures, 1240 FeatureBitset AllModes({X86::Is64Bit, X86::Is32Bit, X86::Is16Bit}); in SwitchMode() 1241 FeatureBitset OldMode = STI.getFeatureBits() & AllModes; in SwitchMode() 1242 FeatureBitset FB = ComputeAvailableFeatures( in SwitchMode() 1246 assert(FeatureBitset({mode}) == (STI.getFeatureBits() & AllModes)); in SwitchMode() 4124 const FeatureBitset &MissingFeatures, in ErrorMissingFeature() 4186 FeatureBitset MissingFeatures; in matchAndEmitATTInstruction() 4255 FeatureBitset ErrorInfoMissingFeatures; // Init suppresses compiler warnings. in matchAndEmitATTInstruction() 4433 FeatureBitset ErrorInfoMissingFeatures; in matchAndEmitIntelInstruction() [all …]
|