• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===-- Nios2FixupKinds.h - Nios2 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_NIOS2_MCTARGETDESC_NIOS2FIXUPKINDS_H
11 #define LLVM_LIB_TARGET_NIOS2_MCTARGETDESC_NIOS2FIXUPKINDS_H
12 
13 #include "llvm/MC/MCFixup.h"
14 
15 namespace llvm {
16 namespace Nios2 {
17 // Although most of the current fixup types reflect a unique relocation
18 // one can have multiple fixup types for a given relocation and thus need
19 // to be uniquely named.
20 //
21 // This table *must* be in the save order of
22 // MCFixupKindInfo Infos[Nios2::NumTargetFixupKinds]
23 // in Nios2AsmBackend.cpp.
24 enum Fixups {
25   // Pure upper 32 bit fixup resulting in - R_NIOS2_32.
26   fixup_Nios2_32 = FirstTargetFixupKind,
27 
28   // Pure upper 16 bit fixup resulting in - R_NIOS2_HI16.
29   fixup_Nios2_HI16,
30 
31   // Pure lower 16 bit fixup resulting in - R_NIOS2_LO16.
32   fixup_Nios2_LO16,
33 
34   // Marker
35   LastTargetFixupKind,
36   NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
37 };
38 } // namespace Nios2
39 } // namespace llvm
40 
41 #endif // LLVM_NIOS2_NIOS2FIXUPKINDS_H
42