diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-07-21 16:28:51 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-07-21 16:28:51 +0000 |
commit | dca6cdd6a14195c3ebbbb5d2c668445be119aaec (patch) | |
tree | b22804cb217e4c8bee070eeb823dc5ed9c6fc265 /lib/Target/Mips/MipsRelocations.h | |
parent | 4b5e207bf24ea9799547a0634acaf7398b32897c (diff) |
Added the infrastructute necessary for MIPS JIT support. Patch by Vladimir
Stefanovic. I removed the part that actually emits the instructions cause
I want that to get in better shape first and in incremental steps. This
also makes it easier to review the upcoming parts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsRelocations.h')
-rw-r--r-- | lib/Target/Mips/MipsRelocations.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsRelocations.h b/lib/Target/Mips/MipsRelocations.h new file mode 100644 index 0000000000..0df21be3f1 --- /dev/null +++ b/lib/Target/Mips/MipsRelocations.h @@ -0,0 +1,32 @@ +//===- 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 MIPSRELOCATIONS_H_ +#define MIPSRELOCATIONS_H_ + +#include "llvm/CodeGen/MachineRelocation.h" + +namespace llvm { + namespace Mips{ + enum RelocationType { + reloc_mips_pcrel = 1, + reloc_mips_hi = 3, + reloc_mips_lo = 4, + reloc_mips_j_jal = 5 + }; + } +} + +#endif /* MIPSRELOCATIONS_H_ */ + |