diff options
| author | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-10-08 07:15:22 +0000 |
|---|---|---|
| committer | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-10-08 07:15:22 +0000 |
| commit | 2ea4c2880cfb79b96d96971a94f777f7b60ac7e1 (patch) | |
| tree | 577e745c0188ca192effe1be28096cd40f4dce09 /llvm/lib/Target/Sparc/SparcRelocations.h | |
| parent | a984729f8ac42d262b4a8f415dd91d9ed18c0b9d (diff) | |
| download | bcm5719-llvm-2ea4c2880cfb79b96d96971a94f777f7b60ac7e1.tar.gz bcm5719-llvm-2ea4c2880cfb79b96d96971a94f777f7b60ac7e1.zip | |
[Sparc] Implement JIT for SPARC.
No new testcases. However, this patch makes all supported JIT testcases in
test/ExecutionEngine pass on Sparc.
llvm-svn: 192176
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcRelocations.h')
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcRelocations.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/llvm/lib/Target/Sparc/SparcRelocations.h b/llvm/lib/Target/Sparc/SparcRelocations.h new file mode 100644 index 00000000000..388cfe75a5e --- /dev/null +++ b/llvm/lib/Target/Sparc/SparcRelocations.h @@ -0,0 +1,41 @@ +//===-- 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 SPARC_RELOCATIONS_H +#define SPARC_RELOCATIONS_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 + }; + } +} + +#endif |

