Jia Liu | b22310f | 2012-02-18 12:03:15 +0000 | [diff] [blame] | 1 | //===-- X86FixupKinds.h - X86 Specific Fixup Entries ------------*- C++ -*-===// |
Daniel Dunbar | 2610a34 | 2010-02-13 09:27:52 +0000 | [diff] [blame] | 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 | |
Benjamin Kramer | a7c40ef | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 10 | #ifndef LLVM_LIB_TARGET_X86_MCTARGETDESC_X86FIXUPKINDS_H |
| 11 | #define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86FIXUPKINDS_H |
Daniel Dunbar | 2610a34 | 2010-02-13 09:27:52 +0000 | [diff] [blame] | 12 | |
| 13 | #include "llvm/MC/MCFixup.h" |
| 14 | |
| 15 | namespace llvm { |
| 16 | namespace X86 { |
| 17 | enum Fixups { |
Rafael Espindola | 8a3a792 | 2010-11-28 14:17:56 +0000 | [diff] [blame] | 18 | reloc_riprel_4byte = FirstTargetFixupKind, // 32-bit rip-relative |
Rafael Espindola | 70d6e0e | 2010-09-30 03:11:42 +0000 | [diff] [blame] | 19 | reloc_riprel_4byte_movq_load, // 32-bit rip-relative in movq |
Rafael Espindola | 52bd330 | 2016-05-28 15:51:38 +0000 | [diff] [blame] | 20 | reloc_riprel_4byte_relax, // 32-bit rip-relative in relaxable |
| 21 | // instruction |
| 22 | reloc_riprel_4byte_relax_rex, // 32-bit rip-relative in relaxable |
| 23 | // instruction with rex prefix |
Rafael Espindola | 800fd35 | 2010-10-24 17:35:42 +0000 | [diff] [blame] | 24 | reloc_signed_4byte, // 32-bit signed. Unlike FK_Data_4 |
Rafael Espindola | 70d6e0e | 2010-09-30 03:11:42 +0000 | [diff] [blame] | 25 | // this will be sign extended at |
| 26 | // runtime. |
Rafael Espindola | a29971f | 2016-07-06 21:19:11 +0000 | [diff] [blame] | 27 | reloc_signed_4byte_relax, // like reloc_signed_4byte, but |
| 28 | // in a relaxable instruction. |
Daniel Dunbar | 0c9d9fd | 2010-12-16 03:20:06 +0000 | [diff] [blame] | 29 | reloc_global_offset_table, // 32-bit, relative to the start |
Rafael Espindola | 800fd35 | 2010-10-24 17:35:42 +0000 | [diff] [blame] | 30 | // of the instruction. Used only |
| 31 | // for _GLOBAL_OFFSET_TABLE_. |
Rafael Espindola | 6c76d1d | 2014-04-21 21:15:45 +0000 | [diff] [blame] | 32 | reloc_global_offset_table8, // 64-bit variant. |
George Rimar | da4f43a4 | 2018-02-20 10:17:57 +0000 | [diff] [blame^] | 33 | reloc_branch_4byte_pcrel, // 32-bit PC relative branch. |
Daniel Dunbar | 0c9d9fd | 2010-12-16 03:20:06 +0000 | [diff] [blame] | 34 | // Marker |
| 35 | LastTargetFixupKind, |
| 36 | NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind |
Daniel Dunbar | 2610a34 | 2010-02-13 09:27:52 +0000 | [diff] [blame] | 37 | }; |
Alexander Kornienko | f00654e | 2015-06-23 09:49:53 +0000 | [diff] [blame] | 38 | } |
| 39 | } |
Daniel Dunbar | 2610a34 | 2010-02-13 09:27:52 +0000 | [diff] [blame] | 40 | |
| 41 | #endif |