X86FixupKinds.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //===-- X86FixupKinds.h - X86 Specific Fixup Entries ------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLVM_LIB_TARGET_X86_MCTARGETDESC_X86FIXUPKINDS_H
  9. #define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86FIXUPKINDS_H
  10. #include "llvm/MC/MCFixup.h"
  11. namespace llvm {
  12. namespace X86 {
  13. enum Fixups {
  14. reloc_riprel_4byte = FirstTargetFixupKind, // 32-bit rip-relative
  15. reloc_riprel_4byte_movq_load, // 32-bit rip-relative in movq
  16. reloc_riprel_4byte_relax, // 32-bit rip-relative in relaxable
  17. // instruction
  18. reloc_riprel_4byte_relax_rex, // 32-bit rip-relative in relaxable
  19. // instruction with rex prefix
  20. reloc_signed_4byte, // 32-bit signed. Unlike FK_Data_4
  21. // this will be sign extended at
  22. // runtime.
  23. reloc_signed_4byte_relax, // like reloc_signed_4byte, but
  24. // in a relaxable instruction.
  25. reloc_global_offset_table, // 32-bit, relative to the start
  26. // of the instruction. Used only
  27. // for _GLOBAL_OFFSET_TABLE_.
  28. reloc_global_offset_table8, // 64-bit variant.
  29. reloc_branch_4byte_pcrel, // 32-bit PC relative branch.
  30. // Marker
  31. LastTargetFixupKind,
  32. NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
  33. };
  34. }
  35. }
  36. #endif