blob: d8e580618f36f1bb1dd5a0dc5f185ac6d8736954 [file] [log] [blame]
Richard Sandifordd131ff82013-07-08 09:35:23 +00001//===-- SystemZSelectionDAGInfo.h - SystemZ SelectionDAG Info ---*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines the SystemZ subclass for TargetSelectionDAGInfo.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef SYSTEMZSELECTIONDAGINFO_H
15#define SYSTEMZSELECTIONDAGINFO_H
16
17#include "llvm/Target/TargetSelectionDAGInfo.h"
18
19namespace llvm {
20
21class SystemZTargetMachine;
22
23class SystemZSelectionDAGInfo : public TargetSelectionDAGInfo {
24public:
25 explicit SystemZSelectionDAGInfo(const SystemZTargetMachine &TM);
26 ~SystemZSelectionDAGInfo();
27
28 virtual
29 SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
30 SDValue Dst, SDValue Src,
31 SDValue Size, unsigned Align,
32 bool IsVolatile, bool AlwaysInline,
33 MachinePointerInfo DstPtrInfo,
Craig Topper73156022014-03-02 09:09:27 +000034 MachinePointerInfo SrcPtrInfo) const override;
Richard Sandiford47660c12013-07-09 09:32:42 +000035
36 virtual SDValue
37 EmitTargetCodeForMemset(SelectionDAG &DAG, SDLoc DL,
38 SDValue Chain, SDValue Dst, SDValue Byte,
39 SDValue Size, unsigned Align, bool IsVolatile,
Craig Topper73156022014-03-02 09:09:27 +000040 MachinePointerInfo DstPtrInfo) const override;
Richard Sandiford564681c2013-08-12 10:28:10 +000041
42 virtual std::pair<SDValue, SDValue>
43 EmitTargetCodeForMemcmp(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
44 SDValue Src1, SDValue Src2, SDValue Size,
45 MachinePointerInfo Op1PtrInfo,
Craig Topper73156022014-03-02 09:09:27 +000046 MachinePointerInfo Op2PtrInfo) const override;
Richard Sandifordca232712013-08-16 11:21:54 +000047
48 virtual std::pair<SDValue, SDValue>
Richard Sandiford6f6d5512013-08-20 09:38:48 +000049 EmitTargetCodeForMemchr(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
50 SDValue Src, SDValue Char, SDValue Length,
Craig Topper73156022014-03-02 09:09:27 +000051 MachinePointerInfo SrcPtrInfo) const override;
Richard Sandiford6f6d5512013-08-20 09:38:48 +000052
53 virtual std::pair<SDValue, SDValue>
Richard Sandifordbb83a502013-08-16 11:29:37 +000054 EmitTargetCodeForStrcpy(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
55 SDValue Dest, SDValue Src,
56 MachinePointerInfo DestPtrInfo,
57 MachinePointerInfo SrcPtrInfo,
Craig Topper73156022014-03-02 09:09:27 +000058 bool isStpcpy) const override;
Richard Sandifordbb83a502013-08-16 11:29:37 +000059
60 virtual std::pair<SDValue, SDValue>
Richard Sandifordca232712013-08-16 11:21:54 +000061 EmitTargetCodeForStrcmp(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
62 SDValue Src1, SDValue Src2,
63 MachinePointerInfo Op1PtrInfo,
Craig Topper73156022014-03-02 09:09:27 +000064 MachinePointerInfo Op2PtrInfo) const override;
Richard Sandiford0dec06a2013-08-16 11:41:43 +000065
66 virtual std::pair<SDValue, SDValue>
67 EmitTargetCodeForStrlen(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
Craig Topper73156022014-03-02 09:09:27 +000068 SDValue Src,
69 MachinePointerInfo SrcPtrInfo) const override;
Richard Sandiford0dec06a2013-08-16 11:41:43 +000070
71 virtual std::pair<SDValue, SDValue>
72 EmitTargetCodeForStrnlen(SelectionDAG &DAG, SDLoc DL, SDValue Chain,
73 SDValue Src, SDValue MaxLength,
Craig Topper73156022014-03-02 09:09:27 +000074 MachinePointerInfo SrcPtrInfo) const override;
Richard Sandifordd131ff82013-07-08 09:35:23 +000075};
76
77}
78
79#endif