diff options
Diffstat (limited to 'contrib/llvm/lib/Target/WebAssembly/WebAssemblyUtilities.h')
-rw-r--r-- | contrib/llvm/lib/Target/WebAssembly/WebAssemblyUtilities.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/llvm/lib/Target/WebAssembly/WebAssemblyUtilities.h b/contrib/llvm/lib/Target/WebAssembly/WebAssemblyUtilities.h index eb11440..595491f 100644 --- a/contrib/llvm/lib/Target/WebAssembly/WebAssemblyUtilities.h +++ b/contrib/llvm/lib/Target/WebAssembly/WebAssemblyUtilities.h @@ -18,7 +18,9 @@ namespace llvm { +class MachineBasicBlock; class MachineInstr; +class MachineLoop; class WebAssemblyFunctionInfo; namespace WebAssembly { @@ -27,8 +29,15 @@ bool isArgument(const MachineInstr &MI); bool isCopy(const MachineInstr &MI); bool isTee(const MachineInstr &MI); bool isChild(const MachineInstr &MI, const WebAssemblyFunctionInfo &MFI); +bool isCallIndirect(const MachineInstr &MI); } // end namespace WebAssembly + +/// Return the "bottom" block of a loop. This differs from +/// MachineLoop::getBottomBlock in that it works even if the loop is +/// discontiguous. +MachineBasicBlock *LoopBottom(const MachineLoop *Loop); + } // end namespace llvm #endif |