2010-04-17 07:04:22 +08:00
|
|
|
//===-- X86SelectionDAGInfo.h - X86 SelectionDAG Info -----------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines the X86 subclass for TargetSelectionDAGInfo.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
|
2010-04-17 07:04:22 +08:00
|
|
|
|
|
|
|
#include "llvm/Target/TargetSelectionDAGInfo.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2010-05-12 01:31:57 +08:00
|
|
|
class X86TargetLowering;
|
|
|
|
class X86TargetMachine;
|
|
|
|
class X86Subtarget;
|
|
|
|
|
2010-04-17 07:04:22 +08:00
|
|
|
class X86SelectionDAGInfo : public TargetSelectionDAGInfo {
|
2014-08-30 04:50:31 +08:00
|
|
|
/// Returns true if it is possible for the base register to conflict with the
|
|
|
|
/// given set of clobbers for a memory intrinsic.
|
|
|
|
bool isBaseRegConflictPossible(SelectionDAG &DAG,
|
|
|
|
ArrayRef<unsigned> ClobberSet) const;
|
|
|
|
|
2010-04-17 07:04:22 +08:00
|
|
|
public:
|
2014-06-07 07:26:43 +08:00
|
|
|
explicit X86SelectionDAGInfo(const DataLayout &DL);
|
2010-04-17 07:04:22 +08:00
|
|
|
~X86SelectionDAGInfo();
|
2010-05-12 01:31:57 +08:00
|
|
|
|
2013-05-25 10:42:55 +08:00
|
|
|
SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, SDLoc dl,
|
2010-05-12 01:31:57 +08:00
|
|
|
SDValue Chain,
|
|
|
|
SDValue Dst, SDValue Src,
|
|
|
|
SDValue Size, unsigned Align,
|
|
|
|
bool isVolatile,
|
2014-03-09 15:44:38 +08:00
|
|
|
MachinePointerInfo DstPtrInfo) const override;
|
2010-05-12 01:31:57 +08:00
|
|
|
|
2013-05-25 10:42:55 +08:00
|
|
|
SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, SDLoc dl,
|
2010-05-12 01:31:57 +08:00
|
|
|
SDValue Chain,
|
|
|
|
SDValue Dst, SDValue Src,
|
|
|
|
SDValue Size, unsigned Align,
|
|
|
|
bool isVolatile, bool AlwaysInline,
|
2010-09-21 13:40:29 +08:00
|
|
|
MachinePointerInfo DstPtrInfo,
|
2014-03-09 15:44:38 +08:00
|
|
|
MachinePointerInfo SrcPtrInfo) const override;
|
2010-04-17 07:04:22 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|