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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2016-01-28 00:32:26 +08:00
|
|
|
// This file defines the X86 subclass for SelectionDAGTargetInfo.
|
2010-04-17 07:04:22 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
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
|
|
|
|
2016-01-28 00:32:26 +08:00
|
|
|
#include "llvm/CodeGen/SelectionDAGTargetInfo.h"
|
2016-03-04 18:49:30 +08:00
|
|
|
#include "llvm/MC/MCRegisterInfo.h"
|
2010-04-17 07:04:22 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2010-05-12 01:31:57 +08:00
|
|
|
class X86TargetLowering;
|
|
|
|
class X86TargetMachine;
|
|
|
|
class X86Subtarget;
|
|
|
|
|
2016-01-28 00:32:26 +08:00
|
|
|
class X86SelectionDAGInfo : public SelectionDAGTargetInfo {
|
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,
|
2016-03-02 12:42:31 +08:00
|
|
|
ArrayRef<MCPhysReg> ClobberSet) const;
|
2014-08-30 04:50:31 +08:00
|
|
|
|
2010-04-17 07:04:22 +08:00
|
|
|
public:
|
2015-07-09 10:10:08 +08:00
|
|
|
explicit X86SelectionDAGInfo() = default;
|
2010-05-12 01:31:57 +08:00
|
|
|
|
2016-06-12 23:39:02 +08:00
|
|
|
SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &dl,
|
|
|
|
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
|
|
|
|
2016-06-12 23:39:02 +08:00
|
|
|
SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl,
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2015-06-23 17:49:53 +08:00
|
|
|
}
|
2010-04-17 07:04:22 +08:00
|
|
|
|
|
|
|
#endif
|