22 std::vector<StringRef> &Features) {
29 Features.push_back(
"+fpuv2_sf");
30 Features.push_back(
"+fpuv2_df");
31 Features.push_back(
"+fdivdu");
34 Features.push_back(
"+fpuv2_sf");
35 Features.push_back(
"+fpuv2_df");
38 Features.push_back(
"+fpuv2_sf");
39 Features.push_back(
"+fpuv2_df");
40 Features.push_back(
"+fdivdu");
43 Features.push_back(
"+fpuv2_sf");
46 Features.push_back(
"+fpuv3_hf");
47 Features.push_back(
"+fpuv3_hi");
48 Features.push_back(
"+fpuv3_sf");
49 Features.push_back(
"+fpuv3_df");
52 Features.push_back(
"+fpuv3_hf");
53 Features.push_back(
"+fpuv3_hi");
56 Features.push_back(
"+fpuv3_hf");
57 Features.push_back(
"+fpuv3_hi");
58 Features.push_back(
"+fpuv3_sf");
61 Features.push_back(
"+fpuv3_sf");
62 Features.push_back(
"+fpuv3_df");
83 if (AK == CSKY::ArchKind::INVALID)
94 if (
A.getName() == Arch)
98 return CSKY::ArchKind::INVALID;
103 if (CPU ==
C.getName())
107 return CSKY::ArchKind::INVALID;
112 if (ArchExt ==
A.getName())
120 if (Arch.ArchID != CSKY::ArchKind::INVALID)
126 if (FPUKind >= FK_LAST)
132 if (FPUKind >= FK_LAST)
139#define CSKY_CPU_NAME(NAME, ID, DEFAULT_EXT) \
140 .Case(NAME, ARCHNames[static_cast<unsigned>(ArchKind::ID)].archBaseExt | \
142#include "llvm/TargetParser/CSKYTargetParser.def"
154 if (Name.starts_with(
"no")) {
155 Name = Name.substr(2);
164 if (AE.Feature && ArchExt == AE.getName())
165 return StringRef(Negated ? AE.NegFeature : AE.Feature);
172 std::vector<StringRef> &Features) {
177 if ((
Extensions & AE.ID) == AE.ID && AE.Feature)
178 Features.push_back(AE.Feature);
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
static bool stripNegationPrefix(StringRef &Name)
static StringRef getName(Value *V)
static cl::opt< std::set< SPIRV::Extension::Extension >, false, SPIRVExtensionsParser > Extensions("spirv-ext", cl::desc("Specify list of enabled SPIR-V extensions"))
This file defines the SmallVector class.
This file implements the StringSwitch template, which mimics a switch() statement whose cases are str...
static Triple::ArchType parseArch(StringRef ArchName)
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
void push_back(const T &Elt)
StringRef - Represent a constant reference to a string, i.e.
A switch()-like statement whose cases are string literals.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
LLVM_ABI StringRef getFPUName(unsigned FPUKind)
LLVM_ABI StringRef getArchExtFeature(StringRef ArchExt)
LLVM_ABI bool getExtensionFeatures(uint64_t Extensions, std::vector< StringRef > &Features)
LLVM_ABI void fillValidCPUArchList(SmallVectorImpl< StringRef > &Values)
const ArchNames< CSKY::ArchKind > ARCHNames[]
LLVM_ABI bool getFPUFeatures(CSKYFPUKind Kind, std::vector< StringRef > &Features)
LLVM_ABI uint64_t parseArchExt(StringRef ArchExt)
const CpuNames< CSKY::ArchKind > CPUNames[]
LLVM_ABI FPUVersion getFPUVersion(unsigned FPUKind)
LLVM_ABI ArchKind parseCPUArch(StringRef CPU)
LLVM_ABI ArchKind parseArch(StringRef Arch)
LLVM_ABI StringRef getDefaultCPU(StringRef Arch)
static const FPUName FPUNames[]
const CSKY::ExtName CSKYARCHExtNames[]
LLVM_ABI StringRef getArchExtName(uint64_t ArchExtKind)
LLVM_ABI StringRef getArchName(ArchKind AK)
LLVM_ABI uint64_t getDefaultExtensions(StringRef CPU)
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.