blob: d7d00c23f270b8eabc99e6a0715592254dfe8c81 [file] [log] [blame]
Dan Gohman53c5e422010-04-16 23:04:22 +00001//===-- 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
19namespace llvm {
20
21class ARMSelectionDAGInfo : public TargetSelectionDAGInfo {
Dan Gohmanff7a5622010-05-11 17:31:57 +000022 /// 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 Gohman53c5e422010-04-16 23:04:22 +000026public:
Dan Gohmanff7a5622010-05-11 17:31:57 +000027 explicit ARMSelectionDAGInfo(const TargetMachine &TM);
Dan Gohman53c5e422010-04-16 23:04:22 +000028 ~ARMSelectionDAGInfo();
Dan Gohmanff7a5622010-05-11 17:31:57 +000029
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,
36 const Value *DstSV,
37 uint64_t DstSVOff,
38 const Value *SrcSV,
39 uint64_t SrcSVOff) const;
Dan Gohman53c5e422010-04-16 23:04:22 +000040};
41
42}
43
44#endif