LLVM 22.0.0git
LoongArchFixupKinds.h
Go to the documentation of this file.
1//===- LoongArchFixupKinds.h - LoongArch 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_LOONGARCH_MCTARGETDESC_LOONGARCHFIXUPKINDS_H
10#define LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHFIXUPKINDS_H
11
12#include "llvm/MC/MCFixup.h"
13
14namespace llvm {
15namespace LoongArch {
16//
17// This table *must* be in the same order of
18// MCFixupKindInfo Infos[LoongArch::NumTargetFixupKinds] in
19// LoongArchAsmBackend.cpp.
20//
21enum Fixups {
22 // Define fixups can be handled by LoongArchAsmBackend::applyFixup.
23 // 16-bit fixup corresponding to %b16(foo) for instructions like bne.
25 // 21-bit fixup corresponding to %b21(foo) for instructions like bnez.
27 // 26-bit fixup corresponding to %b26(foo)/%plt(foo) for instructions b/bl.
29 // 20-bit fixup corresponding to %abs_hi20(foo) for instruction lu12i.w.
31 // 12-bit fixup corresponding to %abs_lo12(foo) for instruction ori.
33 // 20-bit fixup corresponding to %abs64_lo20(foo) for instruction lu32i.d.
35 // 12-bit fixup corresponding to %abs_hi12(foo) for instruction lu52i.d.
37
38 // Used as a sentinel, must be the last of the fixup which can be handled by
39 // LoongArchAsmBackend::applyFixup.
42};
43} // end namespace LoongArch
44} // end namespace llvm
45
46#endif
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ FirstTargetFixupKind
Definition: MCFixup.h:44