1 //===-- ARM64FixupKinds.h - ARM64 Specific Fixup Entries --------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_ARM64FIXUPKINDS_H
11 #define LLVM_ARM64FIXUPKINDS_H
13 #include "llvm/MC/MCFixup.h"
19 // fixup_arm64_pcrel_adr_imm21 - A 21-bit pc-relative immediate inserted into
20 // an ADR instruction.
21 fixup_arm64_pcrel_adr_imm21 = FirstTargetFixupKind,
23 // fixup_arm64_pcrel_adrp_imm21 - A 21-bit pc-relative immediate inserted into
24 // an ADRP instruction.
25 fixup_arm64_pcrel_adrp_imm21,
27 // fixup_arm64_imm12 - 12-bit fixup for add/sub instructions.
28 // No alignment adjustment. All value bits are encoded.
29 fixup_arm64_add_imm12,
31 // fixup_arm64_ldst_imm12_* - unsigned 12-bit fixups for load and
32 // store instructions.
33 fixup_arm64_ldst_imm12_scale1,
34 fixup_arm64_ldst_imm12_scale2,
35 fixup_arm64_ldst_imm12_scale4,
36 fixup_arm64_ldst_imm12_scale8,
37 fixup_arm64_ldst_imm12_scale16,
39 // fixup_arm64_ldr_pcrel_imm19 - The high 19 bits of a 21-bit pc-relative
40 // immediate. Same encoding as fixup_arm64_pcrel_adrhi, except this is used by
41 // pc-relative loads and generates relocations directly when necessary.
42 fixup_arm64_ldr_pcrel_imm19,
47 // fixup_arm64_pcrel_imm14 - The high 14 bits of a 21-bit pc-relative
49 fixup_arm64_pcrel_branch14,
51 // fixup_arm64_pcrel_branch19 - The high 19 bits of a 21-bit pc-relative
52 // immediate. Same encoding as fixup_arm64_pcrel_adrhi, except this is use by
53 // b.cc and generates relocations directly when necessary.
54 fixup_arm64_pcrel_branch19,
56 // fixup_arm64_pcrel_branch26 - The high 26 bits of a 28-bit pc-relative
58 fixup_arm64_pcrel_branch26,
60 // fixup_arm64_pcrel_call26 - The high 26 bits of a 28-bit pc-relative
61 // immediate. Distinguished from branch26 only on ELF.
62 fixup_arm64_pcrel_call26,
64 // fixup_arm64_tlsdesc_call - zero-space placeholder for the ELF
65 // R_AARCH64_TLSDESC_CALL relocation.
66 fixup_arm64_tlsdesc_call,
70 NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
73 } // end namespace ARM64
74 } // end namespace llvm