2013-07-08 09:35:23 +00: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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines the SystemZ subclass for TargetSelectionDAGInfo.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef SYSTEMZSELECTIONDAGINFO_H
|
|
|
|
#define SYSTEMZSELECTIONDAGINFO_H
|
|
|
|
|
|
|
|
#include "llvm/Target/TargetSelectionDAGInfo.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class SystemZTargetMachine;
|
|
|
|
|
|
|
|
class SystemZSelectionDAGInfo : public TargetSelectionDAGInfo {
|
|
|
|
public:
|
|
|
|
explicit SystemZSelectionDAGInfo(const SystemZTargetMachine &TM);
|
|
|
|
~SystemZSelectionDAGInfo();
|
|
|
|
|
|
|
|
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 09:09:27 +00:00
|
|
|
MachinePointerInfo SrcPtrInfo) const override;
|
2013-07-09 09:32:42 +00:00
|
|
|
|
2014-03-06 12:03:36 +00: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 10:28:10 +00:00
|
|
|
|
2014-03-06 12:03:36 +00:00
|
|
|
std::pair<SDValue, SDValue>
|
2013-08-12 10:28:10 +00:00
|
|
|
EmitTargetCodeForMemcmp(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
|
|
|
|
SDValue Src1, SDValue Src2, SDValue Size,
|
|
|
|
MachinePointerInfo Op1PtrInfo,
|
2014-03-02 09:09:27 +00:00
|
|
|
MachinePointerInfo Op2PtrInfo) const override;
|
2013-08-16 11:21:54 +00:00
|
|
|
|
2014-03-06 12:03:36 +00:00
|
|
|
std::pair<SDValue, SDValue>
|
2013-08-20 09:38:48 +00:00
|
|
|
EmitTargetCodeForMemchr(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
|
|
|
|
SDValue Src, SDValue Char, SDValue Length,
|
2014-03-02 09:09:27 +00:00
|
|
|
MachinePointerInfo SrcPtrInfo) const override;
|
2013-08-20 09:38:48 +00:00
|
|
|
|
2014-03-06 12:03:36 +00:00
|
|
|
std::pair<SDValue, SDValue>
|
2013-08-16 11:29:37 +00:00
|
|
|
EmitTargetCodeForStrcpy(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
|
|
|
|
SDValue Dest, SDValue Src,
|
|
|
|
MachinePointerInfo DestPtrInfo,
|
|
|
|
MachinePointerInfo SrcPtrInfo,
|
2014-03-02 09:09:27 +00:00
|
|
|
bool isStpcpy) const override;
|
2013-08-16 11:29:37 +00:00
|
|
|
|
2014-03-06 12:03:36 +00:00
|
|
|
std::pair<SDValue, SDValue>
|
2013-08-16 11:21:54 +00:00
|
|
|
EmitTargetCodeForStrcmp(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
|
|
|
|
SDValue Src1, SDValue Src2,
|
|
|
|
MachinePointerInfo Op1PtrInfo,
|
2014-03-02 09:09:27 +00:00
|
|
|
MachinePointerInfo Op2PtrInfo) const override;
|
2013-08-16 11:41:43 +00:00
|
|
|
|
2014-03-06 12:03:36 +00:00
|
|
|
std::pair<SDValue, SDValue>
|
2013-08-16 11:41:43 +00:00
|
|
|
EmitTargetCodeForStrlen(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
|
2014-03-02 09:09:27 +00:00
|
|
|
SDValue Src,
|
|
|
|
MachinePointerInfo SrcPtrInfo) const override;
|
2013-08-16 11:41:43 +00:00
|
|
|
|
2014-03-06 12:03:36 +00:00
|
|
|
std::pair<SDValue, SDValue>
|
2013-08-16 11:41:43 +00:00
|
|
|
EmitTargetCodeForStrnlen(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
|
|
|
|
SDValue Src, SDValue MaxLength,
|
2014-03-02 09:09:27 +00:00
|
|
|
MachinePointerInfo SrcPtrInfo) const override;
|
2013-07-08 09:35:23 +00:00
|
|
|
};
|
|
|
|
|
2014-03-06 10:38:30 +00:00
|
|
|
} // end namespace llvm
|
2013-07-08 09:35:23 +00:00
|
|
|
|
|
|
|
#endif
|