2015-06-30 07:51:55 +08:00
|
|
|
//=- WebAssemblySelectionDAGInfo.h - WebAssembly SelectionDAG Info -*- C++ -*-//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-06-30 07:51:55 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
///
|
|
|
|
/// \file
|
2018-05-01 23:54:18 +08:00
|
|
|
/// This file defines the WebAssembly subclass for
|
2016-01-28 00:32:26 +08:00
|
|
|
/// SelectionDAGTargetInfo.
|
2015-06-30 07:51:55 +08:00
|
|
|
///
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYSELECTIONDAGINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYSELECTIONDAGINFO_H
|
|
|
|
|
2016-01-28 00:32:26 +08:00
|
|
|
#include "llvm/CodeGen/SelectionDAGTargetInfo.h"
|
2015-06-30 07:51:55 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2016-01-28 00:32:26 +08:00
|
|
|
class WebAssemblySelectionDAGInfo final : public SelectionDAGTargetInfo {
|
2015-06-30 07:51:55 +08:00
|
|
|
public:
|
|
|
|
~WebAssemblySelectionDAGInfo() override;
|
2019-02-05 08:49:55 +08:00
|
|
|
SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl,
|
|
|
|
SDValue Chain, SDValue Op1, SDValue Op2,
|
|
|
|
SDValue Op3, unsigned Align, bool isVolatile,
|
|
|
|
bool AlwaysInline,
|
|
|
|
MachinePointerInfo DstPtrInfo,
|
|
|
|
MachinePointerInfo SrcPtrInfo) const override;
|
2019-02-06 04:57:40 +08:00
|
|
|
SDValue EmitTargetCodeForMemmove(SelectionDAG &DAG, const SDLoc &dl,
|
|
|
|
SDValue Chain, SDValue Op1, SDValue Op2,
|
|
|
|
SDValue Op3, unsigned Align, bool isVolatile,
|
|
|
|
MachinePointerInfo DstPtrInfo,
|
|
|
|
MachinePointerInfo SrcPtrInfo) const override;
|
2019-02-14 06:25:18 +08:00
|
|
|
SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &DL,
|
|
|
|
SDValue Chain, SDValue Op1, SDValue Op2,
|
|
|
|
SDValue Op3, unsigned Align, bool IsVolatile,
|
|
|
|
MachinePointerInfo DstPtrInfo) const override;
|
2015-06-30 07:51:55 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|