Dan Gohman | 38b42b4 | 2017-02-22 18:34:16 +0000 | [diff] [blame] | 1 | // CodeGen/RuntimeLibcallSignatures.h - R.T. Lib. Call Signatures -*- C++ -*--// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame^] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Dan Gohman | 38b42b4 | 2017-02-22 18:34:16 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | /// |
| 9 | /// \file |
Adrian Prantl | 5f8f34e4 | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 10 | /// This file provides signature information for runtime libcalls. |
Dan Gohman | 38b42b4 | 2017-02-22 18:34:16 +0000 | [diff] [blame] | 11 | /// |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_RUNTIME_LIBCALL_SIGNATURES_H |
| 15 | #define LLVM_LIB_TARGET_WEBASSEMBLY_RUNTIME_LIBCALL_SIGNATURES_H |
| 16 | |
Dan Gohman | d37dc2f | 2017-02-27 22:41:39 +0000 | [diff] [blame] | 17 | #include "MCTargetDesc/WebAssemblyMCTargetDesc.h" |
Dan Gohman | 38b42b4 | 2017-02-22 18:34:16 +0000 | [diff] [blame] | 18 | #include "llvm/ADT/SmallVector.h" |
| 19 | #include "llvm/CodeGen/RuntimeLibcalls.h" |
Dan Gohman | 38b42b4 | 2017-02-22 18:34:16 +0000 | [diff] [blame] | 20 | |
| 21 | namespace llvm { |
| 22 | |
| 23 | class WebAssemblySubtarget; |
| 24 | |
Derek Schuff | 70ce1af | 2018-09-27 22:20:33 +0000 | [diff] [blame] | 25 | extern void GetLibcallSignature(const WebAssemblySubtarget &Subtarget, |
| 26 | RTLIB::Libcall LC, |
| 27 | SmallVectorImpl<wasm::ValType> &Rets, |
| 28 | SmallVectorImpl<wasm::ValType> &Params); |
Dan Gohman | 38b42b4 | 2017-02-22 18:34:16 +0000 | [diff] [blame] | 29 | |
Derek Schuff | 70ce1af | 2018-09-27 22:20:33 +0000 | [diff] [blame] | 30 | extern void GetLibcallSignature(const WebAssemblySubtarget &Subtarget, |
| 31 | const char *Name, |
| 32 | SmallVectorImpl<wasm::ValType> &Rets, |
| 33 | SmallVectorImpl<wasm::ValType> &Params); |
Dan Gohman | 38b42b4 | 2017-02-22 18:34:16 +0000 | [diff] [blame] | 34 | |
| 35 | } // end namespace llvm |
| 36 | |
| 37 | #endif |