diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-05-29 11:58:52 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-05-29 11:58:52 +0000 |
commit | 2d664abbfca8b9fa3d99e8a2f74bd52faf007f12 (patch) | |
tree | ef3e64c5251a4118e32a0393799793277d7259f4 /lib/Target/SystemZ/SystemZInstrInfo.h | |
parent | b8303eb654c1ba1833cfd048ed1f01309b19afe2 (diff) | |
download | llvm-2d664abbfca8b9fa3d99e8a2f74bd52faf007f12.tar.gz llvm-2d664abbfca8b9fa3d99e8a2f74bd52faf007f12.tar.bz2 llvm-2d664abbfca8b9fa3d99e8a2f74bd52faf007f12.tar.xz |
[SystemZ] Immediate compare-and-branch support
This patch adds support for the CIJ and CGIJ instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrInfo.h')
-rw-r--r-- | lib/Target/SystemZ/SystemZInstrInfo.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.h b/lib/Target/SystemZ/SystemZInstrInfo.h index e4a984025f..d6980f7171 100644 --- a/lib/Target/SystemZ/SystemZInstrInfo.h +++ b/lib/Target/SystemZ/SystemZInstrInfo.h @@ -143,7 +143,9 @@ public: // If Opcode is a COMPARE opcode for which an associated COMPARE AND // BRANCH exists, return the opcode for the latter, otherwise return 0. - unsigned getCompareAndBranch(unsigned Opcode) const; + // MI, if nonnull, is the compare instruction. + unsigned getCompareAndBranch(unsigned Opcode, + const MachineInstr *MI = 0) const; // Emit code before MBBI in MI to move immediate value Value into // physical register Reg. |