LLVM  13.0.0git
AArch64FixupKinds.h
Go to the documentation of this file.
1 //===-- AArch64FixupKinds.h - AArch64 Specific Fixup Entries ----*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64FIXUPKINDS_H
10 #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64FIXUPKINDS_H
11 
12 #include "llvm/MC/MCFixup.h"
13 
14 namespace llvm {
15 namespace AArch64 {
16 
17 enum Fixups {
18  // A 21-bit pc-relative immediate inserted into an ADR instruction.
20 
21  // A 21-bit pc-relative immediate inserted into an ADRP instruction.
23 
24  // 12-bit fixup for add/sub instructions. No alignment adjustment. All value
25  // bits are encoded.
27 
28  // unsigned 12-bit fixups for load and store instructions.
34 
35  // The high 19 bits of a 21-bit pc-relative immediate. Same encoding as
36  // fixup_aarch64_pcrel_adrhi, except this is used by pc-relative loads and
37  // generates relocations directly when necessary.
39 
40  // FIXME: comment
42 
43  // The high 14 bits of a 21-bit pc-relative immediate.
45 
46  // The high 19 bits of a 21-bit pc-relative immediate. Same encoding as
47  // fixup_aarch64_pcrel_adrhi, except this is use by b.cc and generates
48  // relocations directly when necessary.
50 
51  // The high 26 bits of a 28-bit pc-relative immediate.
53 
54  // The high 26 bits of a 28-bit pc-relative immediate. Distinguished from
55  // branch26 only on ELF.
57 
58  // Marker
61 };
62 
63 } // end namespace AArch64
64 } // end namespace llvm
65 
66 #endif
llvm
Definition: AllocatorList.h:23
llvm::AArch64::fixup_aarch64_pcrel_branch26
@ fixup_aarch64_pcrel_branch26
Definition: AArch64FixupKinds.h:52
llvm::AArch64::fixup_aarch64_add_imm12
@ fixup_aarch64_add_imm12
Definition: AArch64FixupKinds.h:26
llvm::AArch64::fixup_aarch64_ldr_pcrel_imm19
@ fixup_aarch64_ldr_pcrel_imm19
Definition: AArch64FixupKinds.h:38
llvm::FirstTargetFixupKind
@ FirstTargetFixupKind
Definition: MCFixup.h:55
llvm::AArch64::fixup_aarch64_ldst_imm12_scale2
@ fixup_aarch64_ldst_imm12_scale2
Definition: AArch64FixupKinds.h:30
llvm::AArch64::NumTargetFixupKinds
@ NumTargetFixupKinds
Definition: AArch64FixupKinds.h:60
llvm::AArch64::Fixups
Fixups
Definition: AArch64FixupKinds.h:17
llvm::AArch64::fixup_aarch64_pcrel_branch19
@ fixup_aarch64_pcrel_branch19
Definition: AArch64FixupKinds.h:49
llvm::AArch64::fixup_aarch64_ldst_imm12_scale8
@ fixup_aarch64_ldst_imm12_scale8
Definition: AArch64FixupKinds.h:32
llvm::AArch64::fixup_aarch64_ldst_imm12_scale4
@ fixup_aarch64_ldst_imm12_scale4
Definition: AArch64FixupKinds.h:31
llvm::AArch64::fixup_aarch64_pcrel_call26
@ fixup_aarch64_pcrel_call26
Definition: AArch64FixupKinds.h:56
llvm::AArch64::fixup_aarch64_ldst_imm12_scale1
@ fixup_aarch64_ldst_imm12_scale1
Definition: AArch64FixupKinds.h:29
MCFixup.h
llvm::AArch64::fixup_aarch64_pcrel_branch14
@ fixup_aarch64_pcrel_branch14
Definition: AArch64FixupKinds.h:44
llvm::AArch64::fixup_aarch64_movw
@ fixup_aarch64_movw
Definition: AArch64FixupKinds.h:41
llvm::AArch64::LastTargetFixupKind
@ LastTargetFixupKind
Definition: AArch64FixupKinds.h:59
llvm::AArch64::fixup_aarch64_ldst_imm12_scale16
@ fixup_aarch64_ldst_imm12_scale16
Definition: AArch64FixupKinds.h:33
llvm::AArch64::fixup_aarch64_pcrel_adrp_imm21
@ fixup_aarch64_pcrel_adrp_imm21
Definition: AArch64FixupKinds.h:22
llvm::AArch64::fixup_aarch64_pcrel_adr_imm21
@ fixup_aarch64_pcrel_adr_imm21
Definition: AArch64FixupKinds.h:19