diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-05 23:48:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-05 23:48:51 +0000 |
commit | 65e9f3969bec427f14d41f0aaef12ed689ca85b5 (patch) | |
tree | 21b8fdf27b69edf760fd61efa20e218e02afca72 | |
parent | 6cc3f0a77427b66378f5a57aff2cd4310b91a670 (diff) |
add a hook to insert a noop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26560 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 29ec213c93..36f4b5559a 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -273,6 +273,13 @@ public: return MI; } + /// insertNoop - Insert a noop into the instruction stream at the specified + /// point. + virtual void insertNoop(MachineBasicBlock &MBB, + MachineBasicBlock::iterator MI) const { + assert(0 && "Target didn't implement insertNoop!"); + abort(); + } //------------------------------------------------------------------------- // Code generation support for creating individual machine instructions |