2013-07-08 17:35:23 +08:00
|
|
|
//===-- SystemZSelectionDAGInfo.h - SystemZ SelectionDAG Info ---*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2016-01-28 00:32:26 +08:00
|
|
|
// This file defines the SystemZ subclass for SelectionDAGTargetInfo.
|
2013-07-08 17:35:23 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZSELECTIONDAGINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZSELECTIONDAGINFO_H
|
2013-07-08 17:35:23 +08:00
|
|
|
|
2016-01-28 00:32:26 +08:00
|
|
|
#include "llvm/CodeGen/SelectionDAGTargetInfo.h"
|
2013-07-08 17:35:23 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class SystemZTargetMachine;
|
|
|
|
|
2016-01-28 00:32:26 +08:00
|
|
|
class SystemZSelectionDAGInfo : public SelectionDAGTargetInfo {
|
2013-07-08 17:35:23 +08:00
|
|
|
public:
|
2015-07-09 10:10:08 +08:00
|
|
|
explicit SystemZSelectionDAGInfo() = default;
|
2013-07-08 17:35:23 +08:00
|
|
|
|
|
|
|
SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
|
|
|
|
SDValue Dst, SDValue Src,
|
|
|
|
SDValue Size, unsigned Align,
|
|
|
|
bool IsVolatile, bool AlwaysInline,
|
|
|
|
MachinePointerInfo DstPtrInfo,
|
2014-03-02 17:09:27 +08:00
|
|
|
MachinePointerInfo SrcPtrInfo) const override;
|
2013-07-09 17:32:42 +08:00
|
|
|
|
2014-03-06 20:03:36 +08:00
|
|
|
SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, SDLoc DL,
|
|
|
|
SDValue Chain, SDValue Dst, SDValue Byte,
|
|
|
|
SDValue Size, unsigned Align, bool IsVolatile,
|
|
|
|
MachinePointerInfo DstPtrInfo) const override;
|
2013-08-12 18:28:10 +08:00
|
|
|
|
2014-03-06 20:03:36 +08:00
|
|
|
std::pair<SDValue, SDValue>
|
2013-08-12 18:28:10 +08:00
|
|
|
EmitTargetCodeForMemcmp(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
|
|
|
|
SDValue Src1, SDValue Src2, SDValue Size,
|
|
|
|
MachinePointerInfo Op1PtrInfo,
|
2014-03-02 17:09:27 +08:00
|
|
|
MachinePointerInfo Op2PtrInfo) const override;
|
2013-08-16 19:21:54 +08:00
|
|
|
|
2014-03-06 20:03:36 +08:00
|
|
|
std::pair<SDValue, SDValue>
|
2013-08-20 17:38:48 +08:00
|
|
|
EmitTargetCodeForMemchr(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
|
|
|
|
SDValue Src, SDValue Char, SDValue Length,
|
2014-03-02 17:09:27 +08:00
|
|
|
MachinePointerInfo SrcPtrInfo) const override;
|
2013-08-20 17:38:48 +08:00
|
|
|
|
2014-03-06 20:03:36 +08:00
|
|
|
std::pair<SDValue, SDValue>
|
2013-08-16 19:29:37 +08:00
|
|
|
EmitTargetCodeForStrcpy(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
|
|
|
|
SDValue Dest, SDValue Src,
|
|
|
|
MachinePointerInfo DestPtrInfo,
|
|
|
|
MachinePointerInfo SrcPtrInfo,
|
2014-03-02 17:09:27 +08:00
|
|
|
bool isStpcpy) const override;
|
2013-08-16 19:29:37 +08:00
|
|
|
|
2014-03-06 20:03:36 +08:00
|
|
|
std::pair<SDValue, SDValue>
|
2013-08-16 19:21:54 +08:00
|
|
|
EmitTargetCodeForStrcmp(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
|
|
|
|
SDValue Src1, SDValue Src2,
|
|
|
|
MachinePointerInfo Op1PtrInfo,
|
2014-03-02 17:09:27 +08:00
|
|
|
MachinePointerInfo Op2PtrInfo) const override;
|
2013-08-16 19:41:43 +08:00
|
|
|
|
2014-03-06 20:03:36 +08:00
|
|
|
std::pair<SDValue, SDValue>
|
2013-08-16 19:41:43 +08:00
|
|
|
EmitTargetCodeForStrlen(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
|
2014-03-02 17:09:27 +08:00
|
|
|
SDValue Src,
|
|
|
|
MachinePointerInfo SrcPtrInfo) const override;
|
2013-08-16 19:41:43 +08:00
|
|
|
|
2014-03-06 20:03:36 +08:00
|
|
|
std::pair<SDValue, SDValue>
|
2013-08-16 19:41:43 +08:00
|
|
|
EmitTargetCodeForStrnlen(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
|
|
|
|
SDValue Src, SDValue MaxLength,
|
2014-03-02 17:09:27 +08:00
|
|
|
MachinePointerInfo SrcPtrInfo) const override;
|
2013-07-08 17:35:23 +08:00
|
|
|
};
|
|
|
|
|
2014-03-06 18:38:30 +08:00
|
|
|
} // end namespace llvm
|
2013-07-08 17:35:23 +08:00
|
|
|
|
|
|
|
#endif
|