LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MipsRelocations.h
Go to the documentation of this 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 
15 #ifndef MIPSRELOCATIONS_H_
16 #define MIPSRELOCATIONS_H_
17 
19 
20 namespace llvm {
21  namespace Mips{
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.
27 
28  // reloc_mips_hi - upper 16 bits of the address (modified by +1 if the
29  // lower 16 bits of the address is negative).
31 
32  // reloc_mips_lo - lower 16 bits of the address.
34 
35  // reloc_mips_26 - lower 28 bits of the address, shifted right by 2.
37  };
38  }
39 }
40 
41 #endif /* MIPSRELOCATIONS_H_ */