Richard Sandiford | d131ff8 | 2013-07-08 09:35:23 +0000 | [diff] [blame] | 1 | //===-- 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 | |
| 19 | namespace llvm { |
| 20 | |
| 21 | class SystemZTargetMachine; |
| 22 | |
| 23 | class SystemZSelectionDAGInfo : public TargetSelectionDAGInfo { |
| 24 | public: |
| 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, |
| 34 | MachinePointerInfo SrcPtrInfo) const |
| 35 | LLVM_OVERRIDE; |
Richard Sandiford | 47660c1 | 2013-07-09 09:32:42 +0000 | [diff] [blame] | 36 | |
| 37 | virtual SDValue |
| 38 | EmitTargetCodeForMemset(SelectionDAG &DAG, SDLoc DL, |
| 39 | SDValue Chain, SDValue Dst, SDValue Byte, |
| 40 | SDValue Size, unsigned Align, bool IsVolatile, |
Richard Sandiford | 564681c | 2013-08-12 10:28:10 +0000 | [diff] [blame] | 41 | MachinePointerInfo DstPtrInfo) const LLVM_OVERRIDE; |
| 42 | |
| 43 | virtual std::pair<SDValue, SDValue> |
| 44 | EmitTargetCodeForMemcmp(SelectionDAG &DAG, SDLoc DL, SDValue Chain, |
| 45 | SDValue Src1, SDValue Src2, SDValue Size, |
| 46 | MachinePointerInfo Op1PtrInfo, |
| 47 | MachinePointerInfo Op2PtrInfo) const LLVM_OVERRIDE; |
Richard Sandiford | ca23271 | 2013-08-16 11:21:54 +0000 | [diff] [blame] | 48 | |
| 49 | virtual std::pair<SDValue, SDValue> |
Richard Sandiford | bb83a50 | 2013-08-16 11:29:37 +0000 | [diff] [blame^] | 50 | EmitTargetCodeForStrcpy(SelectionDAG &DAG, SDLoc DL, SDValue Chain, |
| 51 | SDValue Dest, SDValue Src, |
| 52 | MachinePointerInfo DestPtrInfo, |
| 53 | MachinePointerInfo SrcPtrInfo, |
| 54 | bool isStpcpy) const LLVM_OVERRIDE; |
| 55 | |
| 56 | virtual std::pair<SDValue, SDValue> |
Richard Sandiford | ca23271 | 2013-08-16 11:21:54 +0000 | [diff] [blame] | 57 | EmitTargetCodeForStrcmp(SelectionDAG &DAG, SDLoc DL, SDValue Chain, |
| 58 | SDValue Src1, SDValue Src2, |
| 59 | MachinePointerInfo Op1PtrInfo, |
| 60 | MachinePointerInfo Op2PtrInfo) const LLVM_OVERRIDE; |
Richard Sandiford | d131ff8 | 2013-07-08 09:35:23 +0000 | [diff] [blame] | 61 | }; |
| 62 | |
| 63 | } |
| 64 | |
| 65 | #endif |