blob: 98b21803da245345c542c4a083dfe72500d1b521 [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
18#include "llvm/ADT/SmallVector.h"
19#include "llvm/CodeGen/RuntimeLibcalls.h"
20#include "MCTargetDesc/WebAssemblyMCTargetDesc.h"
21
22namespace llvm {
23
24class WebAssemblySubtarget;
25
26extern void GetSignature(const WebAssemblySubtarget &Subtarget,
27 RTLIB::Libcall LC,
28 SmallVectorImpl<unsigned> &Rets,
29 SmallVectorImpl<unsigned> &Params);
30
31extern void GetSignature(const WebAssemblySubtarget &Subtarget,
32 const char *Name,
33 SmallVectorImpl<unsigned> &Rets,
34 SmallVectorImpl<unsigned> &Params);
35
36} // end namespace llvm
37
38#endif