1 //===-- SystemZSelectionDAGInfo.h - SystemZ SelectionDAG Info ---*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the SystemZ subclass for TargetSelectionDAGInfo.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZSELECTIONDAGINFO_H
15 #define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZSELECTIONDAGINFO_H
17 #include "llvm/Target/TargetSelectionDAGInfo.h"
21 class SystemZTargetMachine;
23 class SystemZSelectionDAGInfo : public TargetSelectionDAGInfo {
25 explicit SystemZSelectionDAGInfo(const DataLayout &DL);
26 ~SystemZSelectionDAGInfo();
28 SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
29 SDValue Dst, SDValue Src,
30 SDValue Size, unsigned Align,
31 bool IsVolatile, bool AlwaysInline,
32 MachinePointerInfo DstPtrInfo,
33 MachinePointerInfo SrcPtrInfo) const override;
35 SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, SDLoc DL,
36 SDValue Chain, SDValue Dst, SDValue Byte,
37 SDValue Size, unsigned Align, bool IsVolatile,
38 MachinePointerInfo DstPtrInfo) const override;
40 std::pair<SDValue, SDValue>
41 EmitTargetCodeForMemcmp(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
42 SDValue Src1, SDValue Src2, SDValue Size,
43 MachinePointerInfo Op1PtrInfo,
44 MachinePointerInfo Op2PtrInfo) const override;
46 std::pair<SDValue, SDValue>
47 EmitTargetCodeForMemchr(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
48 SDValue Src, SDValue Char, SDValue Length,
49 MachinePointerInfo SrcPtrInfo) const override;
51 std::pair<SDValue, SDValue>
52 EmitTargetCodeForStrcpy(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
53 SDValue Dest, SDValue Src,
54 MachinePointerInfo DestPtrInfo,
55 MachinePointerInfo SrcPtrInfo,
56 bool isStpcpy) const override;
58 std::pair<SDValue, SDValue>
59 EmitTargetCodeForStrcmp(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
60 SDValue Src1, SDValue Src2,
61 MachinePointerInfo Op1PtrInfo,
62 MachinePointerInfo Op2PtrInfo) const override;
64 std::pair<SDValue, SDValue>
65 EmitTargetCodeForStrlen(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
67 MachinePointerInfo SrcPtrInfo) const override;
69 std::pair<SDValue, SDValue>
70 EmitTargetCodeForStrnlen(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
71 SDValue Src, SDValue MaxLength,
72 MachinePointerInfo SrcPtrInfo) const override;
75 } // end namespace llvm