diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-12-30 21:04:30 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-12-30 21:04:30 +0000 |
commit | 3aa035fa0c27d3ea2a834868f680bcbfe7eb0de7 (patch) | |
tree | f8d2f141065d40a9c1e1c685b9411e89e8be4e9d /lib/Target/Mips/MipsRelocations.h | |
parent | db186c4c83985d6dc9389fb747a52820357a98d3 (diff) | |
download | external_llvm-3aa035fa0c27d3ea2a834868f680bcbfe7eb0de7.zip external_llvm-3aa035fa0c27d3ea2a834868f680bcbfe7eb0de7.tar.gz external_llvm-3aa035fa0c27d3ea2a834868f680bcbfe7eb0de7.tar.bz2 |
Improve Mips JIT.
Implement encoder methods getJumpTargetOpValue and getBranchTargetOpValue
for jmptarget and brtarget Mips tablegen operand types in the code emitter
for old-style JIT. Rename the pc relative relocation for branches - new
name is Mips::reloc_mips_pc16.
Patch by Sasa Stankovic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsRelocations.h')
-rw-r--r-- | lib/Target/Mips/MipsRelocations.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsRelocations.h b/lib/Target/Mips/MipsRelocations.h index 66d1bfd..69f6dce 100644 --- a/lib/Target/Mips/MipsRelocations.h +++ b/lib/Target/Mips/MipsRelocations.h @@ -20,10 +20,10 @@ namespace llvm { namespace Mips{ enum RelocationType { - // reloc_mips_branch - pc relative relocation for branches. The lower 18 + // 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_branch = 1, + 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). |