aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanak@gmail.com>2011-08-11 21:05:37 +0000
committerAkira Hatanaka <ahatanak@gmail.com>2011-08-11 21:05:37 +0000
commit1f8d82202375bcc649379a5fd7b07fecf4934323 (patch)
tree93bf0c746dac260e3371066b2c7627288038a5eb
parent98985f959c57f2b8c0b6e4b5ee519252e71e9cd9 (diff)
downloadexternal_llvm-1f8d82202375bcc649379a5fd7b07fecf4934323.zip
external_llvm-1f8d82202375bcc649379a5fd7b07fecf4934323.tar.gz
external_llvm-1f8d82202375bcc649379a5fd7b07fecf4934323.tar.bz2
Add isIndirectBranch flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137351 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Mips/MipsInstrInfo.td3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsInstrInfo.td b/lib/Target/Mips/MipsInstrInfo.td
index 642b427..d43961e9 100644
--- a/lib/Target/Mips/MipsInstrInfo.td
+++ b/lib/Target/Mips/MipsInstrInfo.td
@@ -547,7 +547,8 @@ let mayStore = 1, Constraints = "$src = $dst" in
/// Jump and Branch Instructions
def J : JumpFJ<0x02, "j">;
-def JR : JumpFR<0x00, 0x08, "jr">;
+let isIndirectBranch = 1 in
+ def JR : JumpFR<0x00, 0x08, "jr">;
def JAL : JumpLink<0x03, "jal">;
def JALR : JumpLinkReg<0x00, 0x09, "jalr">;
def BEQ : CBranch<0x04, "beq", seteq>;