LLVM API Documentation

ARMRelocations.h
Go to the documentation of this file.
00001 //===-- ARMRelocations.h - ARM 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 ARM target-specific relocation types.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef LLVM_LIB_TARGET_ARM_ARMRELOCATIONS_H
00015 #define LLVM_LIB_TARGET_ARM_ARMRELOCATIONS_H
00016 
00017 #include "llvm/CodeGen/MachineRelocation.h"
00018 
00019 namespace llvm {
00020   namespace ARM {
00021     enum RelocationType {
00022       // reloc_arm_absolute - Absolute relocation, just add the relocated value
00023       // to the value already in memory.
00024       reloc_arm_absolute,
00025 
00026       // reloc_arm_relative - PC relative relocation, add the relocated value to
00027       // the value already in memory, after we adjust it for where the PC is.
00028       reloc_arm_relative,
00029 
00030       // reloc_arm_cp_entry - PC relative relocation for constpool_entry's whose
00031       // addresses are kept locally in a map.
00032       reloc_arm_cp_entry,
00033 
00034       // reloc_arm_vfp_cp_entry - Same as reloc_arm_cp_entry except the offset
00035       // should be divided by 4.
00036       reloc_arm_vfp_cp_entry,
00037 
00038       // reloc_arm_machine_cp_entry - Relocation of a ARM machine constantpool
00039       // entry.
00040       reloc_arm_machine_cp_entry,
00041 
00042       // reloc_arm_jt_base - PC relative relocation for jump tables whose
00043       // addresses are kept locally in a map.
00044       reloc_arm_jt_base,
00045 
00046       // reloc_arm_pic_jt - PIC jump table entry relocation: dest bb - jt base.
00047       reloc_arm_pic_jt,
00048 
00049       // reloc_arm_branch - Branch address relocation.
00050       reloc_arm_branch,
00051 
00052       // reloc_arm_movt  - MOVT immediate relocation.
00053       reloc_arm_movt,
00054 
00055       // reloc_arm_movw  - MOVW immediate relocation.
00056       reloc_arm_movw
00057     };
00058   }
00059 }
00060 
00061 #endif
00062