diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-17 18:52:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-17 18:52:56 +0000 |
commit | 0a3f39985b3827a02a7ce1ca5e310b68820fd26d (patch) | |
tree | 8a9f5394d28bf4c396fa5c2ab76b06599260e131 /include/llvm/CodeGen/AsmPrinter.h | |
parent | 7180f10fc78a0b8cdf93cc6293de977b6899f686 (diff) | |
download | llvm-0a3f39985b3827a02a7ce1ca5e310b68820fd26d.tar.gz llvm-0a3f39985b3827a02a7ce1ca5e310b68820fd26d.tar.bz2 llvm-0a3f39985b3827a02a7ce1ca5e310b68820fd26d.tar.xz |
move isOnlyReachableByFallthrough out of MachineBasicBlock into AsmPrinter,
and add a sparc implementation that knows about delay slots. Patch by
Nathan Keynes!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 28a1a3e7f3..d4e8887288 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -356,6 +356,11 @@ namespace llvm { /// printOffset - This is just convenient handler for printing offsets. void printOffset(int64_t Offset) const; + /// isBlockOnlyReachableByFallthough - Return true if the basic block has + /// exactly one predecessor and the control transfer mechanism between + /// the predecessor and this block is a fall-through. + virtual bool isBlockOnlyReachableByFallthrough(const MachineBasicBlock *MBB) const; + private: /// processDebugLoc - Processes the debug information of each machine |