blob: 2da0619955c5006a25a1ae46f616cc1b02a4d41d [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 {
18 // fixup_arm_pcrel_12 - 12-bit PC relative relocation for symbol addresses
19 fixup_arm_pcrel_12 = FirstTargetFixupKind,
20 // fixup_arm_vfp_pcrel_12 - 12-bit PC relative relocation for symbol addresses
21 // used in VFP instructions where the lower 2 bits are not encoded (so it's
22 // encoded as an 8-bit immediate).
Jim Grosbachc466b932010-11-11 18:04:49 +000023 fixup_arm_vfp_pcrel_12,
24 // fixup_arm_brnach - 24-bit PC relative relocation for direct branch
25 // instructions.
26 fixup_arm_branch,
27
Jason W Kim837caa92010-11-18 23:37:15 +000028 // The next two are for the movt/movw pair
29 // the 16bit imm field are split into imm{15-12} and imm{11-0}
30 // Fixme: We need new ones for Thumb.
31 fixup_arm_movt_hi16, // :upper16:
32 fixup_arm_movw_lo16, // :lower16:
33
Jim Grosbachc466b932010-11-11 18:04:49 +000034 // Marker
35 LastTargetFixupKind,
36 NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
Jim Grosbach70933262010-11-04 01:12:30 +000037};
38}
39}
40
41#endif