16 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYUTILITIES_H 17 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYUTILITIES_H 23 class WebAssemblyFunctionInfo;
25 namespace WebAssembly {
29 bool isTee(
const MachineInstr &
MI);
30 bool isChild(
const MachineInstr &
MI,
const WebAssemblyFunctionInfo &MFI);
63 if (MBB->getNumber() > Bottom->
getNumber())
This class represents lattice values for constants.
bool mayThrow(const MachineInstr &MI)
const char *const CxaBeginCatchFn
const char *const StdTerminateFn
int getNumber() const
MachineBasicBlocks are uniquely numbered at the function level, unless they're not in a MachineFuncti...
bool isThrow(const MachineInstr &MI)
bool isCopy(const MachineInstr &MI)
bool isCallDirect(const MachineInstr &MI)
const char *const CxaRethrowFn
bool isRethrow(const MachineInstr &MI)
bool isTee(const MachineInstr &MI)
const char *const ClangCallTerminateFn
bool isArgument(const MachineInstr &MI)
bool isCatchTerminatePad(const MachineBasicBlock &MBB)
Returns if the given BB is a single BB terminate pad which starts with a 'catch' instruction.
const char *const PersonalityWrapperFn
unsigned getCalleeOpNo(const MachineInstr &MI)
Returns the operand number of a callee, assuming the argument is a call instruction.
bool isMarker(const MachineInstr &MI)
bool isCatch(const MachineInstr &MI)
MachineBasicBlock * getBottom(const T *Unit)
Return the "bottom" block of an entity, which can be either a MachineLoop or WebAssemblyException.
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.
bool isCatchAllTerminatePad(const MachineBasicBlock &MBB)
Returns if the given BB is a single BB terminate pad which starts with a 'catch_all' insrtruction...