1 //===-- LanaiSelectionDAGInfo.cpp - Lanai SelectionDAG Info -------------===//
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 //===----------------------------------------------------------------------===//
9 // This file implements the LanaiSelectionDAGInfo class.
11 //===----------------------------------------------------------------------===//
13 #include "LanaiSelectionDAGInfo.h"
15 #include "LanaiTargetMachine.h"
17 #define DEBUG_TYPE "lanai-selectiondag-info"
21 SDValue LanaiSelectionDAGInfo::EmitTargetCodeForMemcpy(
22 SelectionDAG & /*DAG*/, const SDLoc & /*dl*/, SDValue /*Chain*/,
23 SDValue /*Dst*/, SDValue /*Src*/, SDValue Size, unsigned /*Align*/,
24 bool /*isVolatile*/, bool /*AlwaysInline*/,
25 MachinePointerInfo /*DstPtrInfo*/,
26 MachinePointerInfo /*SrcPtrInfo*/) const {
27 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);