Rename CB/CBZ specific fixup accordingly.
[oota-llvm.git] / lib / Target / ARM / ARMFixupKinds.h
1 //===-- ARM/ARMFixupKinds.h - ARM 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_ARM_ARMFIXUPKINDS_H
11 #define LLVM_ARM_ARMFIXUPKINDS_H
12
13 #include "llvm/MC/MCFixup.h"
14
15 namespace llvm {
16 namespace ARM {
17 enum Fixups {
18   // fixup_arm_ldst_pcrel_12 - 12-bit PC relative relocation for symbol
19   // addresses
20   fixup_arm_ldst_pcrel_12 = FirstTargetFixupKind,
21   
22   // fixup_t2_ldst_pcrel_12 - Equivalent to fixup_arm_ldst_pcrel_12, with
23   // the 16-bit halfwords reordered.
24   fixup_t2_ldst_pcrel_12,
25   
26   // fixup_arm_pcrel_10 - 10-bit PC relative relocation for symbol addresses
27   // used in VFP instructions where the lower 2 bits are not encoded
28   // (so it's encoded as an 8-bit immediate).
29   fixup_arm_pcrel_10,
30   // fixup_t2_pcrel_10 - Equivalent to fixup_arm_pcrel_10, accounting for
31   // the short-swapped encoding of Thumb2 instructions.
32   fixup_t2_pcrel_10,
33   // fixup_arm_adr_pcrel_12 - 12-bit PC relative relocation for the ADR
34   // instruction.
35   fixup_arm_adr_pcrel_12,
36   // fixup_arm_branch - 24-bit PC relative relocation for direct branch
37   // instructions.
38   fixup_arm_branch,
39   // fixup_t2_branch - 20-bit PC relative relocation for Thumb2 direct branch
40   // instructions.
41   fixup_t2_branch,
42
43   // fixup_arm_thumb_blx - Fixup for Thumb BL instructions.
44   fixup_arm_thumb_bl,
45
46   // fixup_arm_thumb_blx - Fixup for Thumb BLX instructions.
47   fixup_arm_thumb_blx,
48
49   // fixup_arm_thumb_cb - Fixup for Thumb branch instructions.
50   fixup_arm_thumb_cb,
51
52   // fixup_arm_thumb_cp - Fixup for Thumb load/store from constant pool instrs.
53   fixup_arm_thumb_cp,
54
55   // The next two are for the movt/movw pair
56   // the 16bit imm field are split into imm{15-12} and imm{11-0}
57   // Fixme: We need new ones for Thumb.
58   fixup_arm_movt_hi16, // :upper16:
59   fixup_arm_movw_lo16, // :lower16:
60
61   // Marker
62   LastTargetFixupKind,
63   NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
64 };
65 }
66 }
67
68 #endif