Home
last modified time | relevance | path

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

123

/freebsd/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 …]
H A DTargetParser.cpp34 static void setImpliedBits(FeatureBitset &Bits, const FeatureBitset &Implies, in setImpliedBits()
55 FeatureBitset Bits; in getCPUDefaultTargetFeatures()
/freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/
H A DSubtargetFeature.h42 class FeatureBitset {
48 constexpr FeatureBitset(const std::array<uint64_t, MAX_SUBTARGET_WORDS> &B) in FeatureBitset() function
52 constexpr FeatureBitset() = default;
53 constexpr FeatureBitset(std::initializer_list<unsigned> Init) { in FeatureBitset() function
58 FeatureBitset &set() { in set()
63 constexpr FeatureBitset &set(unsigned I) { in set()
68 constexpr FeatureBitset &reset(unsigned I) { in reset()
73 constexpr FeatureBitset &flip(unsigned I) { in flip()
98 constexpr FeatureBitset &operator^=(const FeatureBitset &RHS) {
104 constexpr FeatureBitset operator^(const FeatureBitset &RHS) const {
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCSubtargetInfo.h94 FeatureBitset FeatureBits; // Feature bits for current CPU + FS
115 const FeatureBitset& getFeatureBits() const { return FeatureBits; } in getFeatureBits()
116 void setFeatureBits(const FeatureBitset &FeatureBits_) { in setFeatureBits()
140 FeatureBitset ToggleFeature(uint64_t FB);
144 FeatureBitset ToggleFeature(const FeatureBitset& FB);
148 FeatureBitset ToggleFeature(StringRef FS);
152 FeatureBitset ApplyFeatureFlag(StringRef FS);
155 FeatureBitset SetFeatureBitsTransitively(const FeatureBitset& FB);
156 FeatureBitset ClearFeatureBitsTransitively(const FeatureBitset &FB);
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCSubtargetInfo.cpp38 void SetImpliedBits(FeatureBitset &Bits, const FeatureBitset &Implies, in SetImpliedBits()
50 void ClearImpliedBits(FeatureBitset &Bits, unsigned Value, in ClearImpliedBits()
60 static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, in ApplyFeatureFlag()
170 static FeatureBitset getFeatures(MCSubtargetInfo &STI, StringRef CPU, in getFeatures()
178 return FeatureBitset(); in getFeatures()
183 FeatureBitset Bits; in getFeatures()
262 FeatureBitset MCSubtargetInfo::ToggleFeature(uint64_t FB) { in ToggleFeature()
267 FeatureBitset MCSubtargetInfo::ToggleFeature(const FeatureBitset &FB) { in ToggleFeature()
272 FeatureBitset MCSubtargetInfo::SetFeatureBitsTransitively( in SetFeatureBitsTransitively()
273 const FeatureBitset &FB) { in SetFeatureBitsTransitively()
[all …]
/freebsd/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()
/freebsd/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.cpp534 FeatureBitset Hexagon_MC::completeHVXFeatures(const FeatureBitset &S) { in completeHVXFeatures()
538 FeatureBitset FB = S; in completeHVXFeatures()
634 llvm::FeatureBitset Features = X->getFeatureBits(); in createHexagonMCSubtargetInfo()
639 llvm::FeatureBitset Features = X->getFeatureBits(); in createHexagonMCSubtargetInfo()
651 llvm::FeatureBitset Features = X->getFeatureBits(); in createHexagonMCSubtargetInfo()
670 Hexagon_MC::getHVXVersion(const FeatureBitset &Features) { in getHVXVersion()
682 unsigned Hexagon_MC::getArchVersion(const FeatureBitset &Features) { in getArchVersion()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURemoveIncompatibleFunctions.cpp124 FeatureBitset expandImpliedFeatures(const FeatureBitset &Features) { in expandImpliedFeatures()
125 FeatureBitset Result = Features; in expandImpliedFeatures()
181 const FeatureBitset GPUFeatureBits = in checkFunction()
H A DAMDGPUTargetTransformInfo.cpp284 const FeatureBitset GCNTTIImpl::InlineFeatureIgnoreList = {
1282 const FeatureBitset &CallerBits = CallerST->getFeatureBits(); in areInlineCompatible()
1283 const FeatureBitset &CalleeBits = CalleeST->getFeatureBits(); in areInlineCompatible()
1285 FeatureBitset RealCallerBits = CallerBits & ~InlineFeatureIgnoreList; in areInlineCompatible()
1286 FeatureBitset RealCalleeBits = CalleeBits & ~InlineFeatureIgnoreList; in areInlineCompatible()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/
H A DMCTargetAsmParser.h223 static NearMissInfo getMissedFeature(const FeatureBitset &MissingFeatures) { in getMissedFeature()
275 const FeatureBitset& getFeatures() const { in getFeatures()
325 FeatureBitset Features;
355 FeatureBitset AvailableFeatures;
380 const FeatureBitset& getAvailableFeatures() const { in getAvailableFeatures()
383 void setAvailableFeatures(const FeatureBitset& Value) { in setAvailableFeatures()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/
H A DAArch64BaseInfo.h390 FeatureBitset FeaturesRequired;
393 constexpr SysAlias(const char *N, uint16_t E, FeatureBitset F) in SysAlias()
396 bool haveFeatures(FeatureBitset ActiveFeatures) const { in haveFeatures()
401 FeatureBitset getRequiredFeatures() const { return FeaturesRequired; } in getRequiredFeatures()
408 constexpr SysAliasReg(const char *N, uint16_t E, bool R, FeatureBitset F) in SysAliasReg()
416 constexpr SysAliasImm(const char *N, uint16_t E, uint16_t I, FeatureBitset F) in SysAliasImm()
655 FeatureBitset FeaturesRequired;
657 bool haveFeatures(FeatureBitset ActiveFeatures) const { in haveFeatures()
774 FeatureBitset FeaturesRequired;
776 bool haveFeatures(FeatureBitset ActiveFeatures) const { in haveFeatures()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/
H A DXtensaMCTargetDesc.h22 class FeatureBitset; variable
65 bool checkRegister(MCRegister RegNo, const FeatureBitset &FeatureBits,
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVBaseInfo.h210 getTailExpandUseRegNo(const FeatureBitset &FeatureBits) { in getTailExpandUseRegNo()
523 FeatureBitset FeaturesRequired;
528 bool haveRequiredFeatures(const FeatureBitset &ActiveFeatures) const { in haveRequiredFeatures()
570 ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits,
587 void validate(const Triple &TT, const FeatureBitset &FeatureBits);
590 parseFeatureBits(bool IsRV64, const FeatureBitset &FeatureBits);
H A DRISCVBaseInfo.cpp65 ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits, in computeTargetABI()
138 void validate(const Triple &TT, const FeatureBitset &FeatureBits) { in validate()
149 parseFeatureBits(bool IsRV64, const FeatureBitset &FeatureBits) { in parseFeatureBits()
H A DRISCVELFStreamer.cpp32 const FeatureBitset &Features = STI.getFeatureBits(); in RISCVTargetELFStreamer()
/freebsd/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()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetMachine.cpp287 FeatureBitset Features = coalesceFeatures(M); in runOnModule()
316 FeatureBitset coalesceFeatures(const Module &M) { in coalesceFeatures()
321 FeatureBitset Features; in coalesceFeatures()
344 static std::string getFeatureString(const FeatureBitset &Features) { in getFeatureString()
410 void recordFeatures(Module &M, const FeatureBitset &Features, bool Stripped) { in recordFeatures()
H A DWebAssemblySubtarget.cpp38 FeatureBitset Bits = getFeatureBits(); in initializeSubtargetDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/Disassembler/
H A DRISCVDisassembler.cpp725 FeatureBitset ContainedFeatures;
728 bool haveContainedFeatures(const FeatureBitset &ActiveFeatures) const { in haveContainedFeatures()
736 static constexpr FeatureBitset XCVFeatureGroup = {
742 static constexpr FeatureBitset XRivosFeatureGroup = {
747 static constexpr FeatureBitset XqciFeatureGroup = {
759 static constexpr FeatureBitset XSfVectorGroup = {
763 static constexpr FeatureBitset XSfSystemGroup = {
768 static constexpr FeatureBitset XTHeadGroup = {
776 static constexpr FeatureBitset XAndesGroup = {
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DInstrInfoEmitter.cpp617 getNameForFeatureBitset(ArrayRef<const Record *> FeatureBitset) { in getNameForFeatureBitset() argument
619 for (const Record *Feature : FeatureBitset) in getNameForFeatureBitset()
676 for (const auto &FeatureBitset : FeatureBitsets) { in emitFeatureVerifier() local
677 if (FeatureBitset.empty()) in emitFeatureVerifier()
679 OS << " " << getNameForFeatureBitset(FeatureBitset) << ",\n"; in emitFeatureVerifier()
684 for (const auto &FeatureBitset : FeatureBitsets) { in emitFeatureVerifier() local
685 if (FeatureBitset.empty()) in emitFeatureVerifier()
688 for (const auto &Feature : FeatureBitset) { in emitFeatureVerifier()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchBaseInfo.h129 ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits,
H A DLoongArchBaseInfo.cpp75 ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits, in computeTargetABI()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRELFStreamer.cpp10 static unsigned getEFlagsForFeatureSet(const FeatureBitset &Features) { in getEFlagsForFeatureSet()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp418 SmallVector<FeatureBitset> MachineStack;
1533 FeatureBitset AvailableFeatures = getAvailableFeatures(); in parseOperand()
1534 FeatureBitset All; in parseOperand()
1598 FeatureBitset MissingFeatures; in matchAndEmitInstruction()
1635 FeatureBitset FBS = ComputeAvailableFeatures(getSTI().getFeatureBits()); in matchAndEmitInstruction()

123