WebAssemblyTargetInfo.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. //===-- WebAssemblyTargetInfo.h - WebAssembly Target Impl -------*- 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 registers the WebAssembly target.
  11. ///
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_TARGETINFO_WEBASSEMBLYTARGETINFO_H
  14. #define LLVM_LIB_TARGET_WEBASSEMBLY_TARGETINFO_WEBASSEMBLYTARGETINFO_H
  15. namespace llvm {
  16. class Target;
  17. Target &getTheWebAssemblyTarget32();
  18. Target &getTheWebAssemblyTarget64();
  19. namespace WebAssembly {
  20. int getStackOpcode(unsigned short Opcode);
  21. int getRegisterOpcode(unsigned short Opcode);
  22. int getWasm64Opcode(unsigned short Opcode);
  23. } // namespace WebAssembly
  24. } // namespace llvm
  25. #endif // LLVM_LIB_TARGET_WEBASSEMBLY_TARGETINFO_WEBASSEMBLYTARGETINFO_H