1//===--- ARMEHABI.h - ARM Exception Handling ABI ----------------*- C++ -*-===//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//===----------------------------------------------------------------------===//
9// This file defines the constants for the ARM unwind opcodes and exception
10// handling table entry kinds.
12// The enumerations and constants in this file reflect the ARM EHABI
13// Specification as published by ARM.
15// Exception Handling ABI for the ARM Architecture r2.09 - November 30, 2012
17// http://infocenter.arm.com/help/topic/com.arm.doc.ihi0038a/IHI0038A_ehabi.pdf
19//===----------------------------------------------------------------------===//
21#ifndef LLVM_SUPPORT_ARMEHABI_H
22#define LLVM_SUPPORT_ARMEHABI_H
27 /// ARM exception handling table entry kinds
34 /// Special entry for the function never unwind
38 /// ARM-defined frame unwinding opcodes
41 // Purpose: vsp = vsp + ((x << 2) + 4)
45 // Purpose: vsp = vsp - ((x << 2) + 4)
48 // Format: 10000000 00000000
49 // Purpose: refuse to unwind
52 // Format: 1000xxxx xxxxxxxx
53 // Purpose: pop r[15:12], r[11:4]
58 // Purpose: vsp = r[x]
59 // Constraint: x != 13 && x != 15
63 // Purpose: pop r[(4+x):4]
67 // Purpose: pop r14, r[(4+x):4]
75 // Purpose: Pop Return Address Authetication Code
78 // Format: 10110001 0000xxxx
79 // Purpose: pop r[3:0]
83 // Format: 10110010 x(uleb128)
84 // Purpose: vsp = vsp + ((x << 2) + 0x204)
87 // Format: 10110011 xxxxyyyy
88 // Purpose: pop d[(x+y):x]
92 // Purpose: pop d[(8+x):8]
96 // Purpose: pop wR[(10+x):10]
99 // Format: 11000110 xxxxyyyy
100 // Purpose: pop wR[(x+y):x]
103 // Format: 11000111 0000xxxx
104 // Purpose: pop wCGR[3:0]
105 // Constraint: x != 0
108 // Format: 11001000 xxxxyyyy
109 // Purpose: pop d[(16+x+y):(16+x)]
112 // Format: 11001001 xxxxyyyy
113 // Purpose: pop d[(x+y):x]
117 // Purpose: pop d[(8+x):8]
121 /// ARM-defined Personality Routine Index
123 // To make the exception handling table become more compact, ARM defined
124 // several personality routines in EHABI. There are 3 different
125 // personality routines in ARM EHABI currently. It is possible to have 16
126 // pre-defined personality routines at most.
UnwindOpcodes
ARM-defined frame unwinding opcodes.
@ UNWIND_OPCODE_POP_REG_RANGE_R4
@ UNWIND_OPCODE_POP_VFP_REG_RANGE_FSTMFDX_D8
@ UNWIND_OPCODE_POP_WIRELESS_MMX_REG_MASK
@ UNWIND_OPCODE_POP_WIRELESS_MMX_REG_RANGE
@ UNWIND_OPCODE_POP_VFP_REG_RANGE_FSTMFDD_D8
@ UNWIND_OPCODE_POP_WIRELESS_MMX_REG_RANGE_WR10
@ UNWIND_OPCODE_POP_VFP_REG_RANGE_FSTMFDD_D16
@ UNWIND_OPCODE_POP_REG_MASK
@ UNWIND_OPCODE_INC_VSP_ULEB128
@ UNWIND_OPCODE_POP_VFP_REG_RANGE_FSTMFDX
@ UNWIND_OPCODE_POP_REG_RANGE_R4_R14
@ UNWIND_OPCODE_POP_RA_AUTH_CODE
@ UNWIND_OPCODE_POP_VFP_REG_RANGE_FSTMFDD
@ UNWIND_OPCODE_POP_REG_MASK_R4
PersonalityRoutineIndex
ARM-defined Personality Routine Index.
@ EXIDX_CANTUNWIND
Special entry for the function never unwind.
EHTEntryKind
ARM exception handling table entry kinds.
This is an optimization pass for GlobalISel generic memory operations.