diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-22 00:40:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-22 00:40:51 +0000 |
commit | 5fd738f0a6f0ff03632bc1dec992178b9994f157 (patch) | |
tree | f0b942f4ae8e15d79452691beb7f22370c1a1bc0 /lib | |
parent | 6d0e614d5e4f56229d1686d51f107cdb95c0b03b (diff) | |
download | external_llvm-5fd738f0a6f0ff03632bc1dec992178b9994f157.zip external_llvm-5fd738f0a6f0ff03632bc1dec992178b9994f157.tar.gz external_llvm-5fd738f0a6f0ff03632bc1dec992178b9994f157.tar.bz2 |
Initial checkin of the V9 relocation types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/SparcV9/SparcV9Relocations.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/Target/SparcV9/SparcV9Relocations.h b/lib/Target/SparcV9/SparcV9Relocations.h new file mode 100644 index 0000000..895bbed --- /dev/null +++ b/lib/Target/SparcV9/SparcV9Relocations.h @@ -0,0 +1,42 @@ +//===- SparcV9Relocations.h - SparcV9 Code Relocations ----------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file was developed by the LLVM research group and is distributed under +// the University of Illinois Open Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the SparcV9 target-specific relocation types. +// +//===----------------------------------------------------------------------===// + +#ifndef SPARCV9RELOCATIONS_H +#define SPARCV9RELOCATIONS_H + +#include "llvm/CodeGen/MachineRelocation.h" + +namespace llvm { + namespace V9 { + enum RelocationType { + // reloc_pcrel_call - PC relative relocation, shifted right by two bits, + // inserted into a 30 bit field. This is used to relocate direct call + // instructions. + reloc_pcrel_call = 0, + + // reloc_sethi_hh - Absolute relocation, for 'sethi %hh(G),reg' operation. + reloc_sethi_hh = 1, + + // reloc_sethi_lm - Absolute relocation, for 'sethi %lm(G),reg' operation. + reloc_sethi_lm = 2, + + // reloc_or_hm - Absolute relocation, for 'or reg,%hm(G),reg' operation. + reloc_or_hm = 3, + + // reloc_or_lo - Absolute relocation, for 'or reg,%lo(G),reg' operation. + reloc_or_lo = 4, + }; + } +} + +#endif |