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