diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/CMakeLists.txt | 1 | ||||
-rw-r--r-- | llvm/lib/CodeGen/MachineCodeEmitter.cpp | 14 | ||||
-rw-r--r-- | llvm/lib/Target/ARM/ARMRelocations.h | 62 | ||||
-rw-r--r-- | llvm/lib/Target/Mips/MipsRelocations.h | 41 | ||||
-rw-r--r-- | llvm/lib/Target/Sparc/SparcRelocations.h | 56 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86Relocations.h | 52 |
6 files changed, 0 insertions, 226 deletions
diff --git a/llvm/lib/CodeGen/CMakeLists.txt b/llvm/lib/CodeGen/CMakeLists.txt index 0e06ed03740..461ac55ac3e 100644 --- a/llvm/lib/CodeGen/CMakeLists.txt +++ b/llvm/lib/CodeGen/CMakeLists.txt @@ -47,7 +47,6 @@ add_llvm_library(LLVMCodeGen MachineBlockPlacement.cpp MachineBranchProbabilityInfo.cpp MachineCSE.cpp - MachineCodeEmitter.cpp MachineCombiner.cpp MachineCopyPropagation.cpp MachineDominators.cpp diff --git a/llvm/lib/CodeGen/MachineCodeEmitter.cpp b/llvm/lib/CodeGen/MachineCodeEmitter.cpp deleted file mode 100644 index 81b49784c05..00000000000 --- a/llvm/lib/CodeGen/MachineCodeEmitter.cpp +++ /dev/null @@ -1,14 +0,0 @@ -//===-- llvm/CodeGen/MachineCodeEmitter.cpp - Code emission -----*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include "llvm/CodeGen/MachineCodeEmitter.h" - -using namespace llvm; - -void MachineCodeEmitter::anchor() { } diff --git a/llvm/lib/Target/ARM/ARMRelocations.h b/llvm/lib/Target/ARM/ARMRelocations.h deleted file mode 100644 index 5ba8bf73815..00000000000 --- a/llvm/lib/Target/ARM/ARMRelocations.h +++ /dev/null @@ -1,62 +0,0 @@ -//===-- ARMRelocations.h - ARM Code Relocations -----------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file defines the ARM target-specific relocation types. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_LIB_TARGET_ARM_ARMRELOCATIONS_H -#define LLVM_LIB_TARGET_ARM_ARMRELOCATIONS_H - -#include "llvm/CodeGen/MachineRelocation.h" - -namespace llvm { - namespace ARM { - enum RelocationType { - // reloc_arm_absolute - Absolute relocation, just add the relocated value - // to the value already in memory. - reloc_arm_absolute, - - // reloc_arm_relative - PC relative relocation, add the relocated value to - // the value already in memory, after we adjust it for where the PC is. - reloc_arm_relative, - - // reloc_arm_cp_entry - PC relative relocation for constpool_entry's whose - // addresses are kept locally in a map. - reloc_arm_cp_entry, - - // reloc_arm_vfp_cp_entry - Same as reloc_arm_cp_entry except the offset - // should be divided by 4. - reloc_arm_vfp_cp_entry, - - // reloc_arm_machine_cp_entry - Relocation of a ARM machine constantpool - // entry. - reloc_arm_machine_cp_entry, - - // reloc_arm_jt_base - PC relative relocation for jump tables whose - // addresses are kept locally in a map. - reloc_arm_jt_base, - - // reloc_arm_pic_jt - PIC jump table entry relocation: dest bb - jt base. - reloc_arm_pic_jt, - - // reloc_arm_branch - Branch address relocation. - reloc_arm_branch, - - // reloc_arm_movt - MOVT immediate relocation. - reloc_arm_movt, - - // reloc_arm_movw - MOVW immediate relocation. - reloc_arm_movw - }; - } -} - -#endif - diff --git a/llvm/lib/Target/Mips/MipsRelocations.h b/llvm/lib/Target/Mips/MipsRelocations.h deleted file mode 100644 index 6cd92b5ead5..00000000000 --- a/llvm/lib/Target/Mips/MipsRelocations.h +++ /dev/null @@ -1,41 +0,0 @@ -//===-- MipsRelocations.h - Mips Code Relocations ---------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file defines the Mips target-specific relocation types -// (for relocation-model=static). -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_LIB_TARGET_MIPS_MIPSRELOCATIONS_H -#define LLVM_LIB_TARGET_MIPS_MIPSRELOCATIONS_H - -#include "llvm/CodeGen/MachineRelocation.h" - -namespace llvm { - namespace Mips{ - enum RelocationType { - // reloc_mips_pc16 - pc relative relocation for branches. The lower 18 - // bits of the difference between the branch target and the branch - // instruction, shifted right by 2. - reloc_mips_pc16 = 1, - - // reloc_mips_hi - upper 16 bits of the address (modified by +1 if the - // lower 16 bits of the address is negative). - reloc_mips_hi = 2, - - // reloc_mips_lo - lower 16 bits of the address. - reloc_mips_lo = 3, - - // reloc_mips_26 - lower 28 bits of the address, shifted right by 2. - reloc_mips_26 = 4 - }; - } -} - -#endif /* MIPSRELOCATIONS_H_ */ diff --git a/llvm/lib/Target/Sparc/SparcRelocations.h b/llvm/lib/Target/Sparc/SparcRelocations.h deleted file mode 100644 index 4a5b9b94ce4..00000000000 --- a/llvm/lib/Target/Sparc/SparcRelocations.h +++ /dev/null @@ -1,56 +0,0 @@ -//===-- SparcRelocations.h - Sparc Code Relocations -------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file defines the Sparc target-specific relocation types -// (for relocation-model=static). -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_LIB_TARGET_SPARC_SPARCRELOCATIONS_H -#define LLVM_LIB_TARGET_SPARC_SPARCRELOCATIONS_H - -#include "llvm/CodeGen/MachineRelocation.h" - -namespace llvm { - namespace SP { - enum RelocationType { - // reloc_sparc_hi - upper 22 bits - reloc_sparc_hi = 1, - - // reloc_sparc_lo - lower 10 bits - reloc_sparc_lo = 2, - - // reloc_sparc_pc30 - pc rel. 30 bits for call - reloc_sparc_pc30 = 3, - - // reloc_sparc_pc22 - pc rel. 22 bits for branch - reloc_sparc_pc22 = 4, - - // reloc_sparc_pc22 - pc rel. 19 bits for branch with icc/xcc - reloc_sparc_pc19 = 5, - - // reloc_sparc_h44 - 43-22 bits - reloc_sparc_h44 = 6, - - // reloc_sparc_m44 - 21-12 bits - reloc_sparc_m44 = 7, - - // reloc_sparc_l44 - lower 12 bits - reloc_sparc_l44 = 8, - - // reloc_sparc_hh - 63-42 bits - reloc_sparc_hh = 9, - - // reloc_sparc_hm - 41-32 bits - reloc_sparc_hm = 10 - }; - } -} - -#endif diff --git a/llvm/lib/Target/X86/X86Relocations.h b/llvm/lib/Target/X86/X86Relocations.h deleted file mode 100644 index dde2a114f44..00000000000 --- a/llvm/lib/Target/X86/X86Relocations.h +++ /dev/null @@ -1,52 +0,0 @@ -//===-- X86Relocations.h - X86 Code Relocations -----------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file defines the X86 target-specific relocation types. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_LIB_TARGET_X86_X86RELOCATIONS_H -#define LLVM_LIB_TARGET_X86_X86RELOCATIONS_H - -#include "llvm/CodeGen/MachineRelocation.h" - -namespace llvm { - namespace X86 { - /// RelocationType - An enum for the x86 relocation codes. Note that - /// the terminology here doesn't follow x86 convention - word means - /// 32-bit and dword means 64-bit. The relocations will be treated - /// by JIT or ObjectCode emitters, this is transparent to the x86 code - /// emitter but JIT and ObjectCode will treat them differently - enum RelocationType { - /// reloc_pcrel_word - PC relative relocation, add the relocated value to - /// the value already in memory, after we adjust it for where the PC is. - reloc_pcrel_word = 0, - - /// reloc_picrel_word - PIC base relative relocation, add the relocated - /// value to the value already in memory, after we adjust it for where the - /// PIC base is. - reloc_picrel_word = 1, - - /// reloc_absolute_word - absolute relocation, just add the relocated - /// value to the value already in memory. - reloc_absolute_word = 2, - - /// reloc_absolute_word_sext - absolute relocation, just add the relocated - /// value to the value already in memory. In object files, it represents a - /// value which must be sign-extended when resolving the relocation. - reloc_absolute_word_sext = 3, - - /// reloc_absolute_dword - absolute relocation, just add the relocated - /// value to the value already in memory. - reloc_absolute_dword = 4 - }; - } -} - -#endif |