blob: 961bd8c8d5ef15d63c24c75f977d9abfd2e0998a [file] [log] [blame]
Dan Gohman9becddd2010-04-16 23:04:22 +00001//===-- X86SelectionDAGInfo.h - X86 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 X86 subclass for TargetSelectionDAGInfo.
11//
12//===----------------------------------------------------------------------===//
13
Benjamin Kramera7c40ef2014-08-13 16:26:38 +000014#ifndef LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
15#define LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
Dan Gohman9becddd2010-04-16 23:04:22 +000016
17#include "llvm/Target/TargetSelectionDAGInfo.h"
18
19namespace llvm {
20
Dan Gohmanbb919df2010-05-11 17:31:57 +000021class X86TargetLowering;
22class X86TargetMachine;
23class X86Subtarget;
24
Dan Gohman9becddd2010-04-16 23:04:22 +000025class X86SelectionDAGInfo : public TargetSelectionDAGInfo {
Reid Klecknerab99e242014-08-29 20:50:31 +000026 /// Returns true if it is possible for the base register to conflict with the
27 /// given set of clobbers for a memory intrinsic.
28 bool isBaseRegConflictPossible(SelectionDAG &DAG,
29 ArrayRef<unsigned> ClobberSet) const;
30
Dan Gohman9becddd2010-04-16 23:04:22 +000031public:
Mehdi Amini157e5a62015-07-09 02:10:08 +000032 explicit X86SelectionDAGInfo() = default;
Dan Gohmanbb919df2010-05-11 17:31:57 +000033
Andrew Trickef9de2a2013-05-25 02:42:55 +000034 SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, SDLoc dl,
Dan Gohmanbb919df2010-05-11 17:31:57 +000035 SDValue Chain,
36 SDValue Dst, SDValue Src,
37 SDValue Size, unsigned Align,
38 bool isVolatile,
Craig Topper2d9361e2014-03-09 07:44:38 +000039 MachinePointerInfo DstPtrInfo) const override;
Dan Gohmanbb919df2010-05-11 17:31:57 +000040
Andrew Trickef9de2a2013-05-25 02:42:55 +000041 SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, SDLoc dl,
Dan Gohmanbb919df2010-05-11 17:31:57 +000042 SDValue Chain,
43 SDValue Dst, SDValue Src,
44 SDValue Size, unsigned Align,
45 bool isVolatile, bool AlwaysInline,
Chris Lattner2510de22010-09-21 05:40:29 +000046 MachinePointerInfo DstPtrInfo,
Craig Topper2d9361e2014-03-09 07:44:38 +000047 MachinePointerInfo SrcPtrInfo) const override;
Dan Gohman9becddd2010-04-16 23:04:22 +000048};
49
Alexander Kornienkof00654e2015-06-23 09:49:53 +000050}
Dan Gohman9becddd2010-04-16 23:04:22 +000051
52#endif