1 //===-- SparcRelocations.h - Sparc Code Relocations -------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the Sparc target-specific relocation types
11 // (for relocation-model=static).
13 //===----------------------------------------------------------------------===//
15 #ifndef SPARC_RELOCATIONS_H
16 #define SPARC_RELOCATIONS_H
18 #include "llvm/CodeGen/MachineRelocation.h"
23 // reloc_sparc_hi - upper 22 bits
26 // reloc_sparc_lo - lower 10 bits
29 // reloc_sparc_pc30 - pc rel. 30 bits for call
32 // reloc_sparc_pc22 - pc rel. 22 bits for branch
35 // reloc_sparc_pc22 - pc rel. 19 bits for branch with icc/xcc
38 // reloc_sparc_h44 - 43-22 bits
41 // reloc_sparc_m44 - 21-12 bits
44 // reloc_sparc_l44 - lower 12 bits
47 // reloc_sparc_hh - 63-42 bits
50 // reloc_sparc_hm - 41-32 bits