blob: 129067604784f813ac88438dcff3deb74e57611e [file] [log] [blame]
Dan Gohman38b42b42017-02-22 18:34:16 +00001// 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
Dan Gohmand37dc2f2017-02-27 22:41:39 +000018#include "MCTargetDesc/WebAssemblyMCTargetDesc.h"
Dan Gohman38b42b42017-02-22 18:34:16 +000019#include "llvm/ADT/SmallVector.h"
20#include "llvm/CodeGen/RuntimeLibcalls.h"
Dan Gohman38b42b42017-02-22 18:34:16 +000021
22namespace llvm {
23
24class WebAssemblySubtarget;
25
26extern void GetSignature(const WebAssemblySubtarget &Subtarget,
27 RTLIB::Libcall LC,
Derek Schuffe2688c42017-03-14 20:23:22 +000028 SmallVectorImpl<wasm::ValType> &Rets,
29 SmallVectorImpl<wasm::ValType> &Params);
Dan Gohman38b42b42017-02-22 18:34:16 +000030
31extern void GetSignature(const WebAssemblySubtarget &Subtarget,
Derek Schuffe2688c42017-03-14 20:23:22 +000032 const char *Name, SmallVectorImpl<wasm::ValType> &Rets,
33 SmallVectorImpl<wasm::ValType> &Params);
Dan Gohman38b42b42017-02-22 18:34:16 +000034
35} // end namespace llvm
36
37#endif