WebAssemblySelectionDAGInfo.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //=- WebAssemblySelectionDAGInfo.h - WebAssembly SelectionDAG Info -*- 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 defines the WebAssembly subclass for
  11. /// SelectionDAGTargetInfo.
  12. ///
  13. //===----------------------------------------------------------------------===//
  14. #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYSELECTIONDAGINFO_H
  15. #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYSELECTIONDAGINFO_H
  16. #include "llvm/CodeGen/SelectionDAGTargetInfo.h"
  17. namespace llvm {
  18. class WebAssemblySelectionDAGInfo final : public SelectionDAGTargetInfo {
  19. public:
  20. ~WebAssemblySelectionDAGInfo() override;
  21. SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl,
  22. SDValue Chain, SDValue Op1, SDValue Op2,
  23. SDValue Op3, Align Alignment, bool isVolatile,
  24. bool AlwaysInline,
  25. MachinePointerInfo DstPtrInfo,
  26. MachinePointerInfo SrcPtrInfo) const override;
  27. SDValue
  28. EmitTargetCodeForMemmove(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain,
  29. SDValue Op1, SDValue Op2, SDValue Op3,
  30. Align Alignment, bool isVolatile,
  31. MachinePointerInfo DstPtrInfo,
  32. MachinePointerInfo SrcPtrInfo) const override;
  33. SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &DL,
  34. SDValue Chain, SDValue Op1, SDValue Op2,
  35. SDValue Op3, Align Alignment, bool IsVolatile,
  36. bool AlwaysInline,
  37. MachinePointerInfo DstPtrInfo) const override;
  38. };
  39. } // end namespace llvm
  40. #endif