blob: c905611906fac430ff885a510c0bbed3a9daa091 [file] [log] [blame]
Jim Grosbach70933262010-11-04 01:12:30 +00001//===-- 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
15namespace llvm {
16namespace ARM {
17enum Fixups {
Jim Grosbachdff84b02010-12-02 00:28:45 +000018 // fixup_arm_ldst_pcrel_12 - 12-bit PC relative relocation for symbol
19 // addresses
20 fixup_arm_ldst_pcrel_12 = FirstTargetFixupKind,
Owen Anderson9d63d902010-12-01 19:18:46 +000021 // fixup_arm_pcrel_10 - 10-bit PC relative relocation for symbol addresses
22 // used in VFP and Thumb2 instructions where the lower 2 bits are not encoded
23 // (so it's encoded as an 8-bit immediate).
24 fixup_arm_pcrel_10,
Jim Grosbachdff84b02010-12-02 00:28:45 +000025 // fixup_arm_adr_pcrel_12 - 12-bit PC relative relocation for the ADR
26 // instruction.
27 fixup_arm_adr_pcrel_12,
Jim Grosbach662a8162010-12-06 23:57:07 +000028 // fixup_arm_branch - 24-bit PC relative relocation for direct branch
Jim Grosbachc466b932010-11-11 18:04:49 +000029 // instructions.
30 fixup_arm_branch,
Jim Grosbach662a8162010-12-06 23:57:07 +000031 // fixup_arm_thumb_bl - Fixup for Thumb BL/BLX instructions.
32 fixup_arm_thumb_bl,
Jim Grosbachc466b932010-11-11 18:04:49 +000033
Jason W Kim837caa92010-11-18 23:37:15 +000034 // The next two are for the movt/movw pair
35 // the 16bit imm field are split into imm{15-12} and imm{11-0}
36 // Fixme: We need new ones for Thumb.
37 fixup_arm_movt_hi16, // :upper16:
38 fixup_arm_movw_lo16, // :lower16:
39
Jim Grosbachc466b932010-11-11 18:04:49 +000040 // Marker
41 LastTargetFixupKind,
42 NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
Jim Grosbach70933262010-11-04 01:12:30 +000043};
44}
45}
46
47#endif