WebAssemblyRuntimeLibcallSignatures.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // CodeGen/RuntimeLibcallSignatures.h - R.T. Lib. Call Signatures -*- C++ -*--//
  2. //
  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
  6. //
  7. //===----------------------------------------------------------------------===//
  8. ///
  9. /// \file
  10. /// This file provides signature information for runtime libcalls.
  11. ///
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_RUNTIME_LIBCALL_SIGNATURES_H
  14. #define LLVM_LIB_TARGET_WEBASSEMBLY_RUNTIME_LIBCALL_SIGNATURES_H
  15. #include "MCTargetDesc/WebAssemblyMCTargetDesc.h"
  16. #include "llvm/ADT/SmallVector.h"
  17. #include "llvm/CodeGen/RuntimeLibcalls.h"
  18. namespace llvm {
  19. class WebAssemblySubtarget;
  20. extern void getLibcallSignature(const WebAssemblySubtarget &Subtarget,
  21. RTLIB::Libcall LC,
  22. SmallVectorImpl<wasm::ValType> &Rets,
  23. SmallVectorImpl<wasm::ValType> &Params);
  24. extern void getLibcallSignature(const WebAssemblySubtarget &Subtarget,
  25. StringRef Name,
  26. SmallVectorImpl<wasm::ValType> &Rets,
  27. SmallVectorImpl<wasm::ValType> &Params);
  28. } // end namespace llvm
  29. #endif