Add isIndirectBranch flag.
authorAkira Hatanaka <ahatanak@gmail.com>
Thu, 11 Aug 2011 21:05:37 +0000 (21:05 +0000)
committerAkira Hatanaka <ahatanak@gmail.com>
Thu, 11 Aug 2011 21:05:37 +0000 (21:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137351 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsInstrInfo.td

index 642b4274ac0fc243b191e895fb6bfa55703919e4..d43961e9c71468b89bd0668e82bbcdb6fd8f3206 100644 (file)
@@ -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>;