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,
42 // fixup_arm64_pcrel_imm14 - The high 14 bits of a 21-bit pc-relative
44 fixup_arm64_pcrel_branch14,
46 // fixup_arm64_pcrel_imm19 - The high 19 bits of a 21-bit pc-relative
47 // immediate. Same encoding as fixup_arm64_pcrel_adrhi, except this
48 // is not used as part of a lo/hi pair and thus generates relocations
49 // directly when necessary.
50 fixup_arm64_pcrel_imm19,
52 // fixup_arm64_pcrel_branch26 - The high 26 bits of a 28-bit pc-relative
54 fixup_arm64_pcrel_branch26,
56 // fixup_arm64_pcrel_call26 - The high 26 bits of a 28-bit pc-relative
57 // immediate. Distinguished from branch26 only on ELF.
58 fixup_arm64_pcrel_call26,
60 // fixup_arm64_tlsdesc_call - zero-space placeholder for the ELF
61 // R_AARCH64_TLSDESC_CALL relocation.
62 fixup_arm64_tlsdesc_call,
66 NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
69 } // end namespace ARM64
70 } // end namespace llvm