WebAssemblyRuntimeLibcallSignatures.h revision 317029
1// CodeGen/RuntimeLibcallSignatures.h - R.T. Lib. Call Signatures -*- C++ -*--// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9/// 10/// \file 11/// \brief This file provides signature information for runtime libcalls. 12/// 13//===----------------------------------------------------------------------===// 14 15#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_RUNTIME_LIBCALL_SIGNATURES_H 16#define LLVM_LIB_TARGET_WEBASSEMBLY_RUNTIME_LIBCALL_SIGNATURES_H 17 18#include "MCTargetDesc/WebAssemblyMCTargetDesc.h" 19#include "llvm/ADT/SmallVector.h" 20#include "llvm/CodeGen/RuntimeLibcalls.h" 21 22namespace llvm { 23 24class WebAssemblySubtarget; 25 26extern void GetSignature(const WebAssemblySubtarget &Subtarget, 27 RTLIB::Libcall LC, 28 SmallVectorImpl<wasm::ValType> &Rets, 29 SmallVectorImpl<wasm::ValType> &Params); 30 31extern void GetSignature(const WebAssemblySubtarget &Subtarget, 32 const char *Name, SmallVectorImpl<wasm::ValType> &Rets, 33 SmallVectorImpl<wasm::ValType> &Params); 34 35} // end namespace llvm 36 37#endif 38