LLVM 19.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
14namespace llvm {
15namespace AArch64 {
16
17enum 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 16 bits of a 18-bit unsigned PC-relative immediate. Used by
47 // pointer authentication, only within a function, so no relocation can be
48 // generated.
50
51 // The high 19 bits of a 21-bit pc-relative immediate. Same encoding as
52 // fixup_aarch64_pcrel_adrhi, except this is use by b.cc and generates
53 // relocations directly when necessary.
55
56 // The high 26 bits of a 28-bit pc-relative immediate.
58
59 // The high 26 bits of a 28-bit pc-relative immediate. Distinguished from
60 // branch26 only on ELF.
62
63 // Marker
66};
67
68} // end namespace AArch64
69} // end namespace llvm
70
71#endif
@ fixup_aarch64_ldst_imm12_scale16
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ FirstTargetFixupKind
Definition: MCFixup.h:45