23 #include "AArch64GenSystemOperands.inc" 31 #include "AArch64GenSystemOperands.inc" 38 #include "AArch64GenSystemOperands.inc" 45 #include "AArch64GenSystemOperands.inc" 50 namespace AArch64ISB {
52 #include "AArch64GenSystemOperands.inc" 57 namespace AArch64TSB {
59 #include "AArch64GenSystemOperands.inc" 64 namespace AArch64PRCTX {
65 #define GET_PRCTX_IMPL 66 #include "AArch64GenSystemOperands.inc" 71 namespace AArch64PRFM {
73 #include "AArch64GenSystemOperands.inc" 78 namespace AArch64SVEPRFM {
79 #define GET_SVEPRFM_IMPL 80 #include "AArch64GenSystemOperands.inc" 85 namespace AArch64SVEPredPattern {
86 #define GET_SVEPREDPAT_IMPL 87 #include "AArch64GenSystemOperands.inc" 92 namespace AArch64ExactFPImm {
93 #define GET_EXACTFPIMM_IMPL 94 #include "AArch64GenSystemOperands.inc" 99 namespace AArch64PState {
100 #define GET_PSTATE_IMPL 101 #include "AArch64GenSystemOperands.inc" 106 namespace AArch64PSBHint {
108 #include "AArch64GenSystemOperands.inc" 113 namespace AArch64BTIHint {
115 #include "AArch64GenSystemOperands.inc" 120 namespace AArch64SysReg {
121 #define GET_SYSREG_IMPL 122 #include "AArch64GenSystemOperands.inc" 128 static const Regex GenericRegPattern(
"^S([0-3])_([0-7])_C([0-9]|1[0-5])_C([0-9]|1[0-5])_([0-7])$");
130 std::string UpperName = Name.
upper();
132 if (!GenericRegPattern.
match(UpperName, &Ops))
135 uint32_t Op0 = 0, Op1 = 0, CRn = 0, CRm = 0, Op2 = 0;
137 Ops[1].getAsInteger(10, Op0);
138 Ops[2].getAsInteger(10, Op1);
139 Ops[3].getAsInteger(10, CRn);
140 Ops[4].getAsInteger(10, CRm);
141 Ops[5].getAsInteger(10, Op2);
142 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2;
160 namespace AArch64TLBI {
161 #define GET_TLBI_IMPL 162 #include "AArch64GenSystemOperands.inc" This class represents lattice values for constants.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
bool match(StringRef String, SmallVectorImpl< StringRef > *Matches=nullptr, std::string *Error=nullptr) const
matches - Match the regex against a given String.
LLVM_NODISCARD std::string upper() const
Convert the given ASCII string to uppercase.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
std::string utostr(uint64_t X, bool isNeg=false)
std::string genericRegisterString(uint32_t Bits)
uint32_t parseGenericRegister(StringRef Name)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.