Home
last modified time | relevance | path

Searched refs:FeatureBitset (Results 1 – 25 of 54) sorted by relevance

123

/src/contrib/llvm-project/llvm/lib/TargetParser/
H A DX86TargetParser.cpp23 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 DSubtargetFeature.h41 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 DMCSubtargetInfo.h92 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 DMCSubtargetInfo.cpp37 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 DGlobalISelMatchTableExecutorEmitter.cpp77 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 DHexagonMCTargetDesc.h50 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 DHexagonMCTargetDesc.cpp500 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 DAMDGPURemoveIncompatibleFunctions.cpp111 FeatureBitset expandImpliedFeatures(const FeatureBitset &Features) { in expandImpliedFeatures()
112 FeatureBitset Result = Features; in expandImpliedFeatures()
159 const FeatureBitset GPUFeatureBits = in checkFunction()
H A DAMDGPUTargetTransformInfo.cpp274 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 DAMDGPUTargetTransformInfo.h76 static const FeatureBitset InlineFeatureIgnoreList;
/src/contrib/llvm-project/llvm/include/llvm/MC/MCParser/
H A DMCTargetAsmParser.h240 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 DRISCVBaseInfo.h417 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 DRISCVBaseInfo.cpp38 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 DRISCVELFStreamer.cpp36 const FeatureBitset &Features = STI.getFeatureBits(); in RISCVTargetELFStreamer()
/src/contrib/llvm-project/llvm/lib/Target/ARM/Utils/
H A DARMBaseInfo.h196 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 DAArch64BaseInfo.h341 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 DWebAssemblyTargetMachine.cpp203 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 DWebAssemblyTargetTransformInfo.cpp119 const FeatureBitset &CallerBits = in areInlineCompatible()
121 const FeatureBitset &CalleeBits = in areInlineCompatible()
/src/contrib/llvm-project/llvm/utils/TableGen/
H A DInstrInfoEmitter.cpp724 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 DAsmMatcherEmitter.cpp3227 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 DLoongArchBaseInfo.h72 ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits,
H A DLoongArchBaseInfo.cpp72 ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits, in computeTargetABI()
/src/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRELFStreamer.cpp13 static unsigned getEFlagsForFeatureSet(const FeatureBitset &Features) { in getEFlagsForFeatureSet()
/src/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMSubtarget.cpp242 const FeatureBitset &Bits = getFeatureBits(); in initSubtargetFeatures()
/src/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp136 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 …]

123