Evan Cheng | 148b6a4 | 2007-07-05 21:15:40 +0000 | [diff] [blame] | 1 | //===- ARMRelocations.h - ARM Code Relocations ------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 4ee451d | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Evan Cheng | 148b6a4 | 2007-07-05 21:15:40 +0000 | [diff] [blame] | 7 | // |
| 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 | |
| 19 | namespace llvm { |
| 20 | namespace ARM { |
| 21 | enum RelocationType { |
Evan Cheng | 0f28243 | 2008-10-29 23:55:43 +0000 | [diff] [blame] | 22 | // 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 Cheng | 0ff94f7 | 2007-08-07 01:37:15 +0000 | [diff] [blame] | 28 | reloc_arm_relative, |
Evan Cheng | 148b6a4 | 2007-07-05 21:15:40 +0000 | [diff] [blame] | 29 | |
Evan Cheng | 0f28243 | 2008-10-29 23:55:43 +0000 | [diff] [blame] | 30 | // 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 Cheng | 25e0478 | 2008-11-04 00:50:32 +0000 | [diff] [blame] | 34 | // reloc_arm_machine_cp_entry - Relocation of a ARM machine constantpool |
| 35 | // entry. |
| 36 | reloc_arm_machine_cp_entry, |
| 37 | |
Evan Cheng | 4df60f5 | 2008-11-07 09:06:08 +0000 | [diff] [blame^] | 38 | // reloc_arm_jt_base - PC relative relocation for jump tables whose |
| 39 | // addresses are kept locally in a map. |
| 40 | reloc_arm_jt_base, |
| 41 | |
| 42 | // reloc_arm_pic_jt - PIC jump table entry relocation: dest bb - jt base. |
| 43 | reloc_arm_pic_jt, |
| 44 | |
Evan Cheng | 0f28243 | 2008-10-29 23:55:43 +0000 | [diff] [blame] | 45 | // reloc_arm_branch - Branch address relocation. |
Evan Cheng | 0ff94f7 | 2007-08-07 01:37:15 +0000 | [diff] [blame] | 46 | reloc_arm_branch |
Evan Cheng | 148b6a4 | 2007-07-05 21:15:40 +0000 | [diff] [blame] | 47 | }; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | #endif |
| 52 | |