blob: 2cc295085b8b52bae70006820293ace18c095208 [file] [log] [blame]
Evan Cheng148b6a42007-07-05 21:15:40 +00001//===- ARMRelocations.h - ARM Code Relocations ------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Evan Cheng148b6a42007-07-05 21:15:40 +00007//
8//===----------------------------------------------------------------------===//
9//
10// This file defines the ARM target-specific relocation types.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef ARMRELOCATIONS_H
15#define ARMRELOCATIONS_H
16
17#include "llvm/CodeGen/MachineRelocation.h"
18
19namespace llvm {
20 namespace ARM {
21 enum RelocationType {
Evan Cheng0f282432008-10-29 23:55:43 +000022 // reloc_arm_absolute - Absolute relocation, just add the relocated value
23 // to the value already in memory.
24 reloc_arm_absolute,
25
26 // reloc_arm_relative - PC relative relocation, add the relocated value to
27 // the value already in memory, after we adjust it for where the PC is.
Evan Cheng0ff94f72007-08-07 01:37:15 +000028 reloc_arm_relative,
Evan Cheng148b6a42007-07-05 21:15:40 +000029
Evan Cheng0f282432008-10-29 23:55:43 +000030 // reloc_arm_cp_entry - PC relative relocation for constpool_entry's whose
31 // addresses are kept locally in a map.
32 reloc_arm_cp_entry,
33
Evan Cheng580c0df2008-11-12 01:02:24 +000034 // reloc_arm_vfp_cp_entry - Same as reloc_arm_cp_entry except the offset
35 // should be divided by 4.
36 reloc_arm_vfp_cp_entry,
37
Evan Cheng25e04782008-11-04 00:50:32 +000038 // reloc_arm_machine_cp_entry - Relocation of a ARM machine constantpool
39 // entry.
40 reloc_arm_machine_cp_entry,
41
Evan Cheng4df60f52008-11-07 09:06:08 +000042 // reloc_arm_jt_base - PC relative relocation for jump tables whose
43 // addresses are kept locally in a map.
44 reloc_arm_jt_base,
45
46 // reloc_arm_pic_jt - PIC jump table entry relocation: dest bb - jt base.
47 reloc_arm_pic_jt,
48
Evan Cheng0f282432008-10-29 23:55:43 +000049 // reloc_arm_branch - Branch address relocation.
Evan Cheng0ff94f72007-08-07 01:37:15 +000050 reloc_arm_branch
Evan Cheng148b6a42007-07-05 21:15:40 +000051 };
52 }
53}
54
55#endif
56