20#define LOONGARCH_FEATURE(NAME, KIND) {NAME, KIND},
21#include "llvm/TargetParser/LoongArchTargetParser.def"
25#define LOONGARCH_ARCH(NAME, KIND, FEATURES) \
26 {NAME, LoongArch::ArchKind::KIND, FEATURES},
27#include "llvm/TargetParser/LoongArchTargetParser.def"
38 std::vector<StringRef> &Features) {
42 if ((
A.Features &
F.Kind) ==
F.Kind)
43 Features.push_back(
F.Name);
48 if (Arch ==
"la64v1.0" || Arch ==
"la64v1.1") {
49 Features.push_back(
"+64bit");
50 Features.push_back(
"+d");
51 Features.push_back(
"+lsx");
52 Features.push_back(
"+ual");
53 if (Arch ==
"la64v1.1")
54 Features.push_back(
"+frecipe");
70 return Is64Bit ?
"loongarch64" :
"";
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
const FeatureInfo AllFeatures[]
const ArchInfo AllArchs[]
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
reference emplace_back(ArgTypes &&... Args)
StringRef - Represent a constant reference to a string, i.e.
StringRef getDefaultArch(bool Is64Bit)
bool getArchFeatures(StringRef Arch, std::vector< StringRef > &Features)
bool isValidCPUName(StringRef TuneCPU)
bool isValidArchName(StringRef Arch)
void fillValidCPUList(SmallVectorImpl< StringRef > &Values)
This is an optimization pass for GlobalISel generic memory operations.