Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 1 | //=- WebAssemblySelectionDAGInfo.h - WebAssembly SelectionDAG Info -*- 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 | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | /// |
| 9 | /// \file |
Adrian Prantl | 5f8f34e4 | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 10 | /// This file defines the WebAssembly subclass for |
Benjamin Kramer | f9172fd4 | 2016-01-27 16:32:26 +0000 | [diff] [blame] | 11 | /// SelectionDAGTargetInfo. |
Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 12 | /// |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYSELECTIONDAGINFO_H |
| 16 | #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYSELECTIONDAGINFO_H |
| 17 | |
Benjamin Kramer | f9172fd4 | 2016-01-27 16:32:26 +0000 | [diff] [blame] | 18 | #include "llvm/CodeGen/SelectionDAGTargetInfo.h" |
Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 19 | |
| 20 | namespace llvm { |
| 21 | |
Benjamin Kramer | f9172fd4 | 2016-01-27 16:32:26 +0000 | [diff] [blame] | 22 | class WebAssemblySelectionDAGInfo final : public SelectionDAGTargetInfo { |
Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 23 | public: |
Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 24 | ~WebAssemblySelectionDAGInfo() override; |
Thomas Lively | d99af23 | 2019-02-05 00:49:55 +0000 | [diff] [blame] | 25 | SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl, |
| 26 | SDValue Chain, SDValue Op1, SDValue Op2, |
| 27 | SDValue Op3, unsigned Align, bool isVolatile, |
| 28 | bool AlwaysInline, |
| 29 | MachinePointerInfo DstPtrInfo, |
| 30 | MachinePointerInfo SrcPtrInfo) const override; |
Thomas Lively | 3150566 | 2019-02-05 20:57:40 +0000 | [diff] [blame] | 31 | SDValue EmitTargetCodeForMemmove(SelectionDAG &DAG, const SDLoc &dl, |
| 32 | SDValue Chain, SDValue Op1, SDValue Op2, |
| 33 | SDValue Op3, unsigned Align, bool isVolatile, |
| 34 | MachinePointerInfo DstPtrInfo, |
| 35 | MachinePointerInfo SrcPtrInfo) const override; |
Thomas Lively | bba3f06 | 2019-02-13 22:25:18 +0000 | [diff] [blame^] | 36 | SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &DL, |
| 37 | SDValue Chain, SDValue Op1, SDValue Op2, |
| 38 | SDValue Op3, unsigned Align, bool IsVolatile, |
| 39 | MachinePointerInfo DstPtrInfo) const override; |
Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | } // end namespace llvm |
| 43 | |
| 44 | #endif |