/3rd_party/llvm/lib/Target/Mips/MipsRelocations.h

https://code.google.com/p/softart/ · C++ Header · 41 lines · 14 code · 7 blank · 20 comment · 0 complexity · c2ff3ba23ac9a48e592846305ca390bd MD5 · raw file

  1. //===-- MipsRelocations.h - Mips Code Relocations ---------------*- 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. // This file defines the Mips target-specific relocation types
  11. // (for relocation-model=static).
  12. //
  13. //===----------------------------------------------------------------------===//
  14. #ifndef MIPSRELOCATIONS_H_
  15. #define MIPSRELOCATIONS_H_
  16. #include "llvm/CodeGen/MachineRelocation.h"
  17. namespace llvm {
  18. namespace Mips{
  19. enum RelocationType {
  20. // reloc_mips_pc16 - pc relative relocation for branches. The lower 18
  21. // bits of the difference between the branch target and the branch
  22. // instruction, shifted right by 2.
  23. reloc_mips_pc16 = 1,
  24. // reloc_mips_hi - upper 16 bits of the address (modified by +1 if the
  25. // lower 16 bits of the address is negative).
  26. reloc_mips_hi = 2,
  27. // reloc_mips_lo - lower 16 bits of the address.
  28. reloc_mips_lo = 3,
  29. // reloc_mips_26 - lower 28 bits of the address, shifted right by 2.
  30. reloc_mips_26 = 4
  31. };
  32. }
  33. }
  34. #endif /* MIPSRELOCATIONS_H_ */