LLVM  4.0.0
AArch64FixupKinds.h
Go to the documentation of this file.
1 //===-- AArch64FixupKinds.h - AArch64 Specific Fixup Entries ----*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64FIXUPKINDS_H
11 #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64FIXUPKINDS_H
12 
13 #include "llvm/MC/MCFixup.h"
14 
15 namespace llvm {
16 namespace AArch64 {
17 
18 enum Fixups {
19  // fixup_aarch64_pcrel_adr_imm21 - A 21-bit pc-relative immediate inserted into
20  // an ADR instruction.
22 
23  // fixup_aarch64_pcrel_adrp_imm21 - A 21-bit pc-relative immediate inserted into
24  // an ADRP instruction.
26 
27  // fixup_aarch64_imm12 - 12-bit fixup for add/sub instructions.
28  // No alignment adjustment. All value bits are encoded.
30 
31  // fixup_aarch64_ldst_imm12_* - unsigned 12-bit fixups for load and
32  // store instructions.
38 
39  // fixup_aarch64_ldr_pcrel_imm19 - The high 19 bits of a 21-bit pc-relative
40  // immediate. Same encoding as fixup_aarch64_pcrel_adrhi, except this is used by
41  // pc-relative loads and generates relocations directly when necessary.
43 
44  // FIXME: comment
46 
47  // fixup_aarch64_pcrel_imm14 - The high 14 bits of a 21-bit pc-relative
48  // immediate.
50 
51  // fixup_aarch64_pcrel_branch19 - The high 19 bits of a 21-bit pc-relative
52  // immediate. Same encoding as fixup_aarch64_pcrel_adrhi, except this is use by
53  // b.cc and generates relocations directly when necessary.
55 
56  // fixup_aarch64_pcrel_branch26 - The high 26 bits of a 28-bit pc-relative
57  // immediate.
59 
60  // fixup_aarch64_pcrel_call26 - The high 26 bits of a 28-bit pc-relative
61  // immediate. Distinguished from branch26 only on ELF.
63 
64  // fixup_aarch64_tlsdesc_call - zero-space placeholder for the ELF
65  // R_AARCH64_TLSDESC_CALL relocation.
67 
68  // Marker
71 };
72 
73 } // end namespace AArch64
74 } // end namespace llvm
75 
76 #endif