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 | d1d9c78650428af54865e9b8dbd844e1918fa1b2 (patch) | |
| tree | 26e47a14bec35959180e2131ebcc45fea07bd054 /llvm/lib/Target/Mips/MipsRelocations.h | |
| parent | 2f5fc8c67d9c7220a3fe8940c00aa274cedbbaf0 (diff) | |
| download | bcm5719-llvm-d1d9c78650428af54865e9b8dbd844e1918fa1b2.tar.gz bcm5719-llvm-d1d9c78650428af54865e9b8dbd844e1918fa1b2.zip | |
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.
llvm-svn: 135678
Diffstat (limited to 'llvm/lib/Target/Mips/MipsRelocations.h')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsRelocations.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsRelocations.h b/llvm/lib/Target/Mips/MipsRelocations.h new file mode 100644 index 00000000000..0df21be3f13 --- /dev/null +++ b/llvm/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_ */ + |

