22#include "AArch64GenSystemOperands.inc"
28 namespace AArch64DBnXS {
30#include "AArch64GenSystemOperands.inc"
37#include "AArch64GenSystemOperands.inc"
44#include "AArch64GenSystemOperands.inc"
51#include "AArch64GenSystemOperands.inc"
56 namespace AArch64ISB {
58#include "AArch64GenSystemOperands.inc"
63 namespace AArch64TSB {
65#include "AArch64GenSystemOperands.inc"
70 namespace AArch64PRCTX {
72#include "AArch64GenSystemOperands.inc"
77 namespace AArch64PRFM {
79#include "AArch64GenSystemOperands.inc"
84 namespace AArch64SVEPRFM {
85#define GET_SVEPRFM_IMPL
86#include "AArch64GenSystemOperands.inc"
91 namespace AArch64RPRFM {
93#include "AArch64GenSystemOperands.inc"
98 namespace AArch64SVEPredPattern {
99#define GET_SVEPREDPAT_IMPL
100#include "AArch64GenSystemOperands.inc"
105namespace AArch64SVEVecLenSpecifier {
106#define GET_SVEVECLENSPECIFIER_IMPL
107#include "AArch64GenSystemOperands.inc"
112 namespace AArch64ExactFPImm {
113#define GET_EXACTFPIMM_IMPL
114#include "AArch64GenSystemOperands.inc"
119 namespace AArch64PState {
120#define GET_PSTATEIMM0_15_IMPL
121#include "AArch64GenSystemOperands.inc"
122#define GET_PSTATEIMM0_1_IMPL
123#include "AArch64GenSystemOperands.inc"
128 namespace AArch64PSBHint {
130#include "AArch64GenSystemOperands.inc"
135namespace AArch64PHint {
136#define GET_PHINT_IMPL
137#include "AArch64GenSystemOperands.inc"
142 namespace AArch64BTIHint {
144#include "AArch64GenSystemOperands.inc"
149 namespace AArch64SysReg {
150#define GET_SYSREG_IMPL
151#include "AArch64GenSystemOperands.inc"
157 static const Regex GenericRegPattern(
"^S([0-3])_([0-7])_C([0-9]|1[0-5])_C([0-9]|1[0-5])_([0-7])$");
159 std::string UpperName =
Name.upper();
161 if (!GenericRegPattern.
match(UpperName, &Ops))
164 uint32_t Op0 = 0, Op1 = 0, CRn = 0, CRm = 0, Op2 = 0;
166 Ops[1].getAsInteger(10, Op0);
167 Ops[2].getAsInteger(10, Op1);
168 Ops[3].getAsInteger(10, CRn);
169 Ops[4].getAsInteger(10, CRm);
170 Ops[5].getAsInteger(10, Op2);
171 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2;
184 return "S" + utostr(Op0) +
"_" + utostr(Op1) +
"_C" + utostr(CRn) +
"_C" +
185 utostr(CRm) +
"_" + utostr(Op2);
189 namespace AArch64TLBI {
190#define GET_TLBITable_IMPL
191#include "AArch64GenSystemOperands.inc"
196 namespace AArch64SVCR {
198#include "AArch64GenSystemOperands.inc"
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This file defines the SmallVector class.
bool match(StringRef String, SmallVectorImpl< StringRef > *Matches=nullptr, std::string *Error=nullptr) const
matches - Match the regex against a given String.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
StringRef - Represent a constant reference to a string, i.e.
uint32_t parseGenericRegister(StringRef Name)
std::string genericRegisterString(uint32_t Bits)
This is an optimization pass for GlobalISel generic memory operations.