LLVM API Documentation

MipsRelocations.h
Go to the documentation of this file.
00001 //===-- MipsRelocations.h - Mips Code Relocations ---------------*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file defines the Mips target-specific relocation types
00011 // (for relocation-model=static).
00012 //
00013 //===----------------------------------------------------------------------===//
00014 
00015 #ifndef LLVM_LIB_TARGET_MIPS_MIPSRELOCATIONS_H
00016 #define LLVM_LIB_TARGET_MIPS_MIPSRELOCATIONS_H
00017 
00018 #include "llvm/CodeGen/MachineRelocation.h"
00019 
00020 namespace llvm {
00021   namespace Mips{
00022     enum RelocationType {
00023       // reloc_mips_pc16 - pc relative relocation for branches. The lower 18
00024       // bits of the difference between the branch target and the branch
00025       // instruction, shifted right by 2.
00026       reloc_mips_pc16 = 1,
00027 
00028       // reloc_mips_hi - upper 16 bits of the address (modified by +1 if the
00029       // lower 16 bits of the address is negative).
00030       reloc_mips_hi = 2,
00031 
00032       // reloc_mips_lo - lower 16 bits of the address.
00033       reloc_mips_lo = 3,
00034 
00035       // reloc_mips_26 - lower 28 bits of the address, shifted right by 2.
00036       reloc_mips_26 = 4
00037     };
00038   }
00039 }
00040 
00041 #endif /* MIPSRELOCATIONS_H_ */