10 #ifndef LLVM_SUPPORT_ARMWINEH_H 11 #define LLVM_SUPPORT_ARMWINEH_H 107 : BeginAddress(Data[0]), UnwindData(Data[1]) {}
111 : BeginAddress(BeginAddress), UnwindData(UnwindData) {}
119 "unpacked form required for this operation");
120 return (UnwindData & ~0x3);
126 "packed form required for this operation");
127 return (UnwindData & ~0x3);
132 "packed form required for this operation");
133 return (((UnwindData & 0x00001ffc) >> 2) << 1);
138 "packed form required for this operation");
139 assert(((UnwindData & 0x00006000) || L()) &&
"L must be set to 1");
140 return ReturnType((UnwindData & 0x00006000) >> 13);
145 "packed form required for this operation");
146 return ((UnwindData & 0x00008000) >> 15);
151 "packed form required for this operation");
152 return ((UnwindData & 0x00070000) >> 16);
157 "packed form required for this operation");
158 return ((UnwindData & 0x00080000) >> 19);
163 "packed form required for this operation");
164 return ((UnwindData & 0x00100000) >> 20);
169 "packed form required for this operation");
170 assert(((~UnwindData & 0x00200000) || L()) &&
171 "L flag must be set, chaining requires r11 and LR");
172 assert(((~UnwindData & 0x00200000) || (
Reg() < 7) || R()) &&
173 "r11 must not be included in Reg; C implies r11");
174 return ((UnwindData & 0x00200000) >> 21);
179 "packed form required for this operation");
180 return ((UnwindData & 0xffc00000) >> 22);
199 if (Adjustment >= 0x3f4)
200 return (Adjustment & 0x3) ? ((Adjustment & 0x3) << 2) - 1 : 0;
297 return (ES & 0x0003ffff);
300 return ((ES & 0x000c0000) >> 18);
303 return ((ES & 0x00f00000) >> 20);
306 return ((ES & 0xff000000) >> 24);
319 return (Data[0] & 0x0003ffff);
323 return (Data[0] & 0x000C0000) >> 18;
327 return ((Data[0] & 0x00100000) >> 20);
331 return ((Data[0] & 0x00200000) >> 21);
335 return ((Data[0] & 0x00400000) >> 22);
340 return (Data[0] & 0x0f800000) >> 23;
341 return Data[1] & 0x0000ffff;
346 return (Data[0] & 0xf0000000) >> 28;
347 return (Data[1] & 0x00ff0000) >> 16;
351 assert(
E() == 0 &&
"epilogue scopes are only present when the E bit is 0");
358 + (
E() ? 0 : EpilogueCount());
359 const uint8_t *ByteCode =
360 reinterpret_cast<const uint8_t *
>(&Data[
Offset]);
365 assert(
X() &&
"Exception Handler RVA is only valid if the X bit is set");
366 return Data[
HeaderWords(*
this) + EpilogueCount() + CodeWords()];
370 assert(
X() &&
"Exception Handler RVA is only valid if the X bit is set");
371 return Data[
HeaderWords(*
this) + EpilogueCount() + CodeWords() + 1];
376 return (XR.
Data[0] & 0xff800000) ? 1 : 2;
uint8_t EpilogueCount() const
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
uint8_t CodeWords() const
ExceptionDataRecord(const support::ulittle32_t *Data)
Compute iterated dominance frontiers using a linear time algorithm.
const support::ulittle32_t ES
RuntimeFunctionFlag Flag() const
uint32_t ExceptionHandlerParameter() const
uint32_t ExceptionHandlerRVA() const
uint32_t FunctionLength() const
bool EpilogueFolding(const RuntimeFunction &RF)
Epilogue - pseudo-flag derived from Stack Adjust indicating that the epilogue has stack adjustment co...
ArrayRef< T > makeArrayRef(const T &OneElt)
Construct an ArrayRef from a single element.
ExceptionDataRecord - An entry in the table of exception data (.xdata)
uint8_t EpilogueStartIndex() const
uint16_t StackAdjustment(const RuntimeFunction &RF)
StackAdjustment - calculated stack adjustment in words.
bool PrologueFolding(const RuntimeFunction &RF)
PrologueFolding - pseudo-flag derived from Stack Adjust indicating that the prologue has stack adjust...
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
RuntimeFunction(const support::ulittle32_t *Data)
const support::ulittle32_t * Data
RuntimeFunction(const support::ulittle32_t BeginAddress, const support::ulittle32_t UnwindData)
uint8_t Condition() const
Flag
These should be considered private to the implementation of the MCInstrDesc class.
uint32_t ExceptionInformationRVA() const
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
packed entry representing a fragment
RuntimeFunction - An entry in the table of procedure data (.pdata)
uint32_t FunctionLength() const
size_t HeaderWords(const ExceptionDataRecord &XR)
const support::ulittle32_t BeginAddress
uint32_t EpilogueStartOffset() const
ArrayRef< uint8_t > UnwindByteCode() const
EpilogueScope(const support::ulittle32_t Data)
const support::ulittle32_t UnwindData
return via pop {pc} (L flag must be set)
ArrayRef< support::ulittle32_t > EpilogueScopes() const
std::pair< uint16_t, uint32_t > SavedRegisterMask(const RuntimeFunction &RF)
SavedRegisterMask - Utility function to calculate the set of saved general purpose (r0-r15) and VFP (...
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
uint16_t StackAdjust() const
uint32_t PackedUnwindData() const