LLVM API Documentation

PPCFixupKinds.h
Go to the documentation of this file.
00001 //===-- PPCFixupKinds.h - PPC Specific Fixup Entries ------------*- 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 #ifndef LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCFIXUPKINDS_H
00011 #define LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCFIXUPKINDS_H
00012 
00013 #include "llvm/MC/MCFixup.h"
00014 
00015 #undef PPC
00016 
00017 namespace llvm {
00018 namespace PPC {
00019 enum Fixups {
00020   // fixup_ppc_br24 - 24-bit PC relative relocation for direct branches like 'b'
00021   // and 'bl'.
00022   fixup_ppc_br24 = FirstTargetFixupKind,
00023   
00024   /// fixup_ppc_brcond14 - 14-bit PC relative relocation for conditional
00025   /// branches.
00026   fixup_ppc_brcond14,
00027   
00028   /// fixup_ppc_br24abs - 24-bit absolute relocation for direct branches
00029   /// like 'ba' and 'bla'.
00030   fixup_ppc_br24abs,
00031 
00032   /// fixup_ppc_brcond14abs - 14-bit absolute relocation for conditional
00033   /// branches.
00034   fixup_ppc_brcond14abs,
00035 
00036   /// fixup_ppc_half16 - A 16-bit fixup corresponding to lo16(_foo)
00037   /// or ha16(_foo) for instrs like 'li' or 'addis'.
00038   fixup_ppc_half16,
00039   
00040   /// fixup_ppc_half16ds - A 14-bit fixup corresponding to lo16(_foo) with
00041   /// implied 2 zero bits for instrs like 'std'.
00042   fixup_ppc_half16ds,
00043 
00044   /// fixup_ppc_nofixup - Not a true fixup, but ties a symbol to a call
00045   /// to __tls_get_addr for the TLS general and local dynamic models,
00046   /// or inserts the thread-pointer register number.
00047   fixup_ppc_nofixup,
00048   
00049   // Marker
00050   LastTargetFixupKind,
00051   NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
00052 };
00053 }
00054 }
00055 
00056 #endif