Dan Gohman | 53c5e42 | 2010-04-16 23:04:22 +0000 | [diff] [blame] | 1 | //===-- ARMSelectionDAGInfo.h - ARM 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 ARM subclass for TargetSelectionDAGInfo. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef ARMSELECTIONDAGINFO_H |
| 15 | #define ARMSELECTIONDAGINFO_H |
| 16 | |
| 17 | #include "llvm/Target/TargetSelectionDAGInfo.h" |
| 18 | |
| 19 | namespace llvm { |
| 20 | |
| 21 | class ARMSelectionDAGInfo : public TargetSelectionDAGInfo { |
Dan Gohman | ff7a562 | 2010-05-11 17:31:57 +0000 | [diff] [blame] | 22 | /// Subtarget - Keep a pointer to the ARMSubtarget around so that we can |
| 23 | /// make the right decision when generating code for different targets. |
| 24 | const ARMSubtarget *Subtarget; |
| 25 | |
Dan Gohman | 53c5e42 | 2010-04-16 23:04:22 +0000 | [diff] [blame] | 26 | public: |
Dan Gohman | ff7a562 | 2010-05-11 17:31:57 +0000 | [diff] [blame] | 27 | explicit ARMSelectionDAGInfo(const TargetMachine &TM); |
Dan Gohman | 53c5e42 | 2010-04-16 23:04:22 +0000 | [diff] [blame] | 28 | ~ARMSelectionDAGInfo(); |
Dan Gohman | ff7a562 | 2010-05-11 17:31:57 +0000 | [diff] [blame] | 29 | |
| 30 | virtual |
| 31 | SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, DebugLoc dl, |
| 32 | SDValue Chain, |
| 33 | SDValue Dst, SDValue Src, |
| 34 | SDValue Size, unsigned Align, |
| 35 | bool isVolatile, bool AlwaysInline, |
Chris Lattner | e72f202 | 2010-09-21 05:40:29 +0000 | [diff] [blame] | 36 | MachinePointerInfo DstPtrInfo, |
| 37 | MachinePointerInfo SrcPtrInfo) const; |
Dan Gohman | 53c5e42 | 2010-04-16 23:04:22 +0000 | [diff] [blame] | 38 | }; |
| 39 | |
| 40 | } |
| 41 | |
| 42 | #endif |