LLVM  9.0.0svn
RISCVFixupKinds.h
Go to the documentation of this file.
1 //===-- RISCVFixupKinds.h - RISCV 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_RISCV_MCTARGETDESC_RISCVFIXUPKINDS_H
10 #define LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVFIXUPKINDS_H
11 
12 #include "llvm/MC/MCFixup.h"
13 
14 #undef RISCV
15 
16 namespace llvm {
17 namespace RISCV {
18 enum Fixups {
19  // fixup_riscv_hi20 - 20-bit fixup corresponding to hi(foo) for
20  // instructions like lui
22  // fixup_riscv_lo12_i - 12-bit fixup corresponding to lo(foo) for
23  // instructions like addi
25  // fixup_riscv_lo12_s - 12-bit fixup corresponding to lo(foo) for
26  // the S-type store instructions
28  // fixup_riscv_pcrel_hi20 - 20-bit fixup corresponding to pcrel_hi(foo) for
29  // instructions like auipc
31  // fixup_riscv_pcrel_lo12_i - 12-bit fixup corresponding to pcrel_lo(foo) for
32  // instructions like addi
34  // fixup_riscv_pcrel_lo12_s - 12-bit fixup corresponding to pcrel_lo(foo) for
35  // the S-type store instructions
37  // fixup_riscv_got_hi20 - 20-bit fixup corresponding to got_pcrel_hi(foo) for
38  // instructions like auipc
40  // fixup_riscv_jal - 20-bit fixup for symbol references in the jal
41  // instruction
43  // fixup_riscv_branch - 12-bit fixup for symbol references in the branch
44  // instructions
46  // fixup_riscv_rvc_jump - 11-bit fixup for symbol references in the
47  // compressed jump instruction
49  // fixup_riscv_rvc_branch - 8-bit fixup for symbol references in the
50  // compressed branch instruction
52  // fixup_riscv_call - A fixup representing a call attached to the auipc
53  // instruction in a pair composed of adjacent auipc+jalr instructions.
55  // fixup_riscv_relax - Used to generate an R_RISCV_RELAX relocation type,
56  // which indicates the linker may relax the instruction pair.
58  // fixup_riscv_align - Used to generate an R_RISCV_ALIGN relocation type,
59  // which indicates the linker should fixup the alignment after linker
60  // relaxation.
62 
63  // fixup_riscv_invalid - used as a sentinel and a marker, must be last fixup
66 };
67 } // end namespace RISCV
68 } // end namespace llvm
69 
70 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:23