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 
22 namespace llvm {
23 
24 class WebAssemblySubtarget;
25 
26 extern void GetSignature(const WebAssemblySubtarget &Subtarget,
27                          RTLIB::Libcall LC,
28                          SmallVectorImpl<unsigned> &Rets,
29                          SmallVectorImpl<unsigned> &Params);
30 
31 extern 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
39