llvm.org GIT mirror llvm / 36004b9
Fixup enumerations. Patch by Jack Carter at Mips. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141934 91177308-0d34-0410-b5e6-96231b3b80d8 Akira Hatanaka 8 years ago
1 changed file(s) with 90 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 #ifndef LLVM_Mips_MipsFIXUPKINDS_H
1 #define LLVM_Mips_MipsFIXUPKINDS_H
2
3 //===-- Mips/MipsFixupKinds.h - Mips Specific Fixup Entries --------*- C++ -*-===//
4 //
5 // The LLVM Compiler Infrastructure
6 //
7 // This file is distributed under the University of Illinois Open Source
8 // License. See LICENSE.TXT for details.
9 //
10 //===----------------------------------------------------------------------===//
11
12
13 #include "llvm/MC/MCFixup.h"
14
15 namespace llvm {
16 namespace Mips {
17 enum Fixups {
18 // fixup_Mips_xxx - R_MIPS_NONE
19 fixup_Mips_NONE = FirstTargetFixupKind,
20
21 // fixup_Mips_xxx - R_MIPS_16.
22 fixup_Mips_16,
23
24 // fixup_Mips_xxx - R_MIPS_32.
25 fixup_Mips_32,
26
27 // fixup_Mips_xxx - R_MIPS_REL32.
28 fixup_Mips_REL32,
29
30 // fixup_Mips_xxx - R_MIPS_26.
31 fixup_Mips_26,
32
33 // fixup_Mips_xxx - R_MIPS_HI16.
34 fixup_Mips_HI16,
35
36 // fixup_Mips_xxx - R_MIPS_LO16.
37 fixup_Mips_LO16,
38
39 // fixup_Mips_xxx - R_MIPS_GPREL16.
40 fixup_Mips_GPREL16,
41
42 // fixup_Mips_xxx - R_MIPS_LITERAL.
43 fixup_Mips_LITERAL,
44
45 // fixup_Mips_xxx - R_MIPS_GOT16.
46 fixup_Mips_GOT16,
47
48 // fixup_Mips_xxx - R_MIPS_PC16.
49 fixup_Mips_PC16,
50
51 // fixup_Mips_xxx - R_MIPS_CALL16.
52 fixup_Mips_CALL16,
53
54 // fixup_Mips_xxx - R_MIPS_GPREL32.
55 fixup_Mips_GPREL32,
56
57 // fixup_Mips_xxx - R_MIPS_SHIFT5.
58 fixup_Mips_SHIFT5,
59
60 // fixup_Mips_xxx - R_MIPS_SHIFT6.
61 fixup_Mips_SHIFT6,
62
63 // fixup_Mips_xxx - R_MIPS_64.
64 fixup_Mips_64,
65
66 // fixup_Mips_xxx - R_MIPS_TLS_GD.
67 fixup_Mips_TLSGD,
68
69 // fixup_Mips_xxx - R_MIPS_TLS_GOTTPREL.
70 fixup_Mips_GOTTPREL,
71
72 // fixup_Mips_xxx - R_MIPS_TLS_TPREL_HI16.
73 fixup_Mips_TPREL_HI,
74
75 // fixup_Mips_xxx - R_MIPS_TLS_TPREL_LO16.
76 fixup_Mips_TPREL_LO,
77
78 // fixup_Mips_xxx - yyy. // This should become R_MIPS_PC16
79 fixup_Mips_Branch_PCRel,
80
81 // Marker
82 LastTargetFixupKind,
83 NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
84 };
85 } // namespace llvm
86 } // namespace Mips
87
88
89 #endif /* LLVM_Mips_MipsFIXUPKINDS_H */