diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-31 08:52:30 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-31 08:52:30 +0000 |
commit | 905f7af59cb85ea71b6c011f1e79f24f8db16efc (patch) | |
tree | 5a52dddb39cd52a225a16258d8ed847f0804290c /include/llvm/Target | |
parent | 0f6eab32d0b8880cde65a755e33e2c3a0b7d4ff6 (diff) | |
download | external_llvm-905f7af59cb85ea71b6c011f1e79f24f8db16efc.zip external_llvm-905f7af59cb85ea71b6c011f1e79f24f8db16efc.tar.gz external_llvm-905f7af59cb85ea71b6c011f1e79f24f8db16efc.tar.bz2 |
Add declarations for insertGoto and reverseBranchCondition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15358 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 06142c7..90b7356 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -14,6 +14,7 @@ #ifndef LLVM_TARGET_TARGETINSTRINFO_H #define LLVM_TARGET_TARGETINSTRINFO_H +#include "llvm/CodeGen/MachineBasicBlock.h" #include "Support/DataTypes.h" #include <vector> #include <cassert> @@ -156,8 +157,21 @@ public: return false; } + // + // Insert a goto (unconditional branch) sequence to MBB, right + // before MBBI + virtual void insertGoto(const MachineBasicBlock& MBB, + const MachineBasicBlock::iterator MBBI) const { + assert(0 && "Target didn't implement insertGoto!"); + } - + // + // Reverses the branch condition of the MachineInstr pointed by + // MI. The instruction is replaced and the new MI is returned. + virtual MachineBasicBlock::iterator + reverseBranchCondition(const MachineBasicBlock::iterator MI) const { + assert(0 && "Target didn't implement reverseBranchCondition!"); + } //------------------------------------------------------------------------- // Code generation support for creating individual machine instructions |