1 //===-- WebAssemblyUtilities - WebAssembly Utility Functions ---*- C++ -*-====//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief This file contains the declaration of the WebAssembly-specific
12 /// utility functions.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYUTILITIES_H
17 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYUTILITIES_H
22 class WebAssemblyFunctionInfo;
24 namespace WebAssembly {
26 bool isArgument(const MachineInstr &MI);
27 bool isCopy(const MachineInstr &MI);
28 bool isTee(const MachineInstr &MI);
29 bool isChild(const MachineInstr &MI, const WebAssemblyFunctionInfo &MFI);
31 } // end namespace WebAssembly
32 } // end namespace llvm