16 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYUTILITIES_H
17 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYUTILITIES_H
21 class MachineBasicBlock;
24 class WebAssemblyFunctionInfo;
26 namespace WebAssembly {
30 bool isTee(
const MachineInstr &
MI);
31 bool isChild(
const MachineInstr &
MI,
const WebAssemblyFunctionInfo &MFI);
39 MachineBasicBlock *
LoopBottom(
const MachineLoop *Loop);
MachineBasicBlock * LoopBottom(const MachineLoop *Loop)
Return the "bottom" block of a loop.
bool isCopy(const MachineInstr &MI)
bool isTee(const MachineInstr &MI)
bool isArgument(const MachineInstr &MI)
bool isCallIndirect(const MachineInstr &MI)
bool isChild(const MachineInstr &MI, const WebAssemblyFunctionInfo &MFI)
Test whether MI is a child of some other node in an expression tree.