1 //===- MipsRelocations.h - Mips 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 Mips target-specific relocation types
11 // (for relocation-model=static).
13 //===---------------------------------------------------------------------===//
15 #ifndef MIPSRELOCATIONS_H_
16 #define MIPSRELOCATIONS_H_
18 #include "llvm/CodeGen/MachineRelocation.h"
23 // reloc_mips_pc16 - pc relative relocation for branches. The lower 18
24 // bits of the difference between the branch target and the branch
25 // instruction, shifted right by 2.
28 // reloc_mips_hi - upper 16 bits of the address (modified by +1 if the
29 // lower 16 bits of the address is negative).
32 // reloc_mips_lo - lower 16 bits of the address.
35 // reloc_mips_26 - lower 28 bits of the address, shifted right by 2.
41 #endif /* MIPSRELOCATIONS_H_ */