1 //===-- X86SelectionDAGInfo.h - X86 SelectionDAG Info -----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the X86 subclass for TargetSelectionDAGInfo.
12 //===----------------------------------------------------------------------===//
14 #ifndef X86SELECTIONDAGINFO_H
15 #define X86SELECTIONDAGINFO_H
17 #include "llvm/Target/TargetSelectionDAGInfo.h"
21 class X86TargetLowering;
22 class X86TargetMachine;
25 class X86SelectionDAGInfo : public TargetSelectionDAGInfo {
26 /// Subtarget - Keep a pointer to the X86Subtarget around so that we can
27 /// make the right decision when generating code for different targets.
28 const X86Subtarget *Subtarget;
30 const X86TargetLowering &TLI;
33 explicit X86SelectionDAGInfo(const X86TargetMachine &TM);
34 ~X86SelectionDAGInfo();
36 SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, SDLoc dl,
38 SDValue Dst, SDValue Src,
39 SDValue Size, unsigned Align,
41 MachinePointerInfo DstPtrInfo) const override;
43 SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, SDLoc dl,
45 SDValue Dst, SDValue Src,
46 SDValue Size, unsigned Align,
47 bool isVolatile, bool AlwaysInline,
48 MachinePointerInfo DstPtrInfo,
49 MachinePointerInfo SrcPtrInfo) const override;