diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-31 09:38:47 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-31 09:38:47 +0000 |
commit | 36f506eddb25d5198240a1e3fabcb0912111c7ee (patch) | |
tree | f4eaa025087176e241ba4aa2663994ba4e3d1a83 /lib/Target/X86/X86InstrInfo.h | |
parent | e4d32f6cf96566f8d37e50212e4f67330150ee20 (diff) | |
download | external_llvm-36f506eddb25d5198240a1e3fabcb0912111c7ee.zip external_llvm-36f506eddb25d5198240a1e3fabcb0912111c7ee.tar.gz external_llvm-36f506eddb25d5198240a1e3fabcb0912111c7ee.tar.bz2 |
Implement insertGoto and reverseBranchCondition for the X86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrInfo.h')
-rw-r--r-- | lib/Target/X86/X86InstrInfo.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrInfo.h b/lib/Target/X86/X86InstrInfo.h index 5b3ddd0..eb920d6 100644 --- a/lib/Target/X86/X86InstrInfo.h +++ b/lib/Target/X86/X86InstrInfo.h @@ -203,6 +203,16 @@ public: unsigned& sourceReg, unsigned& destReg) const; + /// Insert a goto (unconditional branch) sequence to TMBB, at the + /// end of MBB + virtual void insertGoto(MachineBasicBlock& MBB, + MachineBasicBlock& TMBB) const; + + /// Reverses the branch condition of the MachineInstr pointed by + /// MI. The instruction is replaced and the new MI is returned. + virtual MachineBasicBlock::iterator + reverseBranchCondition(MachineBasicBlock::iterator MI) const; + // getBaseOpcodeFor - This function returns the "base" X86 opcode for the // specified opcode number. // |