23#define PROC(ENUM, NAME, DEFAULT_MARCH) CK_##ENUM,
24#define TUNE_PROC(ENUM, NAME) CK_##ENUM,
25#include "llvm/TargetParser/RISCVTargetParserDef.inc"
35#define PROC(ENUM, NAME, DEFAULT_MARCH) \
36 {NAME, DEFAULT_MARCH},
37#include "llvm/TargetParser/RISCVTargetParserDef.inc"
52 return Info->is64Bit() == IsRV64;
56 std::optional<CPUKind> Kind =
58#define
TUNE_PROC(ENUM, NAME) .Case(NAME, CK_##ENUM)
59 #include "llvm/TargetParser/RISCVTargetParserDef.inc"
60 .Default(std::nullopt);
73 return Info->DefaultMarch;
78 if (IsRV64 ==
C.is64Bit())
85 if (IsRV64 ==
C.is64Bit())
88#define TUNE_PROC(ENUM, NAME) Values.emplace_back(StringRef(NAME));
89#include "llvm/TargetParser/RISCVTargetParserDef.inc"
Analysis containing CSE Info
#define TUNE_PROC(ENUM, NAME)
This file defines the SmallVector class.
This file implements the StringSwitch template, which mimics a switch() statement whose cases are str...
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
reference emplace_back(ArgTypes &&... Args)
A wrapper around a string literal that serves as a proxy for constructing global tables of StringRefs...
StringRef - Represent a constant reference to a string, i.e.
bool starts_with(StringRef Prefix) const
Check if this string starts with the given Prefix.
A switch()-like statement whose cases are string literals.
@ C
The default llvm calling convention, compatible with C.
void fillValidTuneCPUArchList(SmallVectorImpl< StringRef > &Values, bool IsRV64)
static const CPUInfo * getCPUInfoByName(StringRef CPU)
constexpr CPUInfo RISCVCPUInfo[]
StringRef getMArchFromMcpu(StringRef CPU)
bool parseCPU(StringRef CPU, bool IsRV64)
bool parseTuneCPU(StringRef CPU, bool IsRV64)
void fillValidCPUArchList(SmallVectorImpl< StringRef > &Values, bool IsRV64)
This is an optimization pass for GlobalISel generic memory operations.
StringLiteral DefaultMarch