2010-04-17 01:04:22 +02:00
|
|
|
//===-- X86SelectionDAGInfo.h - X86 SelectionDAG Info -----------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 09:50:56 +01:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2010-04-17 01:04:22 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2016-01-27 17:32:26 +01:00
|
|
|
// This file defines the X86 subclass for SelectionDAGTargetInfo.
|
2010-04-17 01:04:22 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 18:26:38 +02:00
|
|
|
#ifndef LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
|
2010-04-17 01:04:22 +02:00
|
|
|
|
2016-01-27 17:32:26 +01:00
|
|
|
#include "llvm/CodeGen/SelectionDAGTargetInfo.h"
|
2010-04-17 01:04:22 +02:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2016-01-27 17:32:26 +01:00
|
|
|
class X86SelectionDAGInfo : public SelectionDAGTargetInfo {
|
2014-08-29 22:50:31 +02: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 05:42:31 +01:00
|
|
|
ArrayRef<MCPhysReg> ClobberSet) const;
|
2014-08-29 22:50:31 +02:00
|
|
|
|
2010-04-17 01:04:22 +02:00
|
|
|
public:
|
2015-07-09 04:10:08 +02:00
|
|
|
explicit X86SelectionDAGInfo() = default;
|
2010-05-11 19:31:57 +02:00
|
|
|
|
2016-06-12 17:39:02 +02:00
|
|
|
SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &dl,
|
|
|
|
SDValue Chain, SDValue Dst, SDValue Src,
|
2020-06-30 14:46:05 +02:00
|
|
|
SDValue Size, Align Alignment,
|
|
|
|
bool isVolatile,
|
2014-03-09 08:44:38 +01:00
|
|
|
MachinePointerInfo DstPtrInfo) const override;
|
2010-05-11 19:31:57 +02:00
|
|
|
|
2016-06-12 17:39:02 +02:00
|
|
|
SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl,
|
|
|
|
SDValue Chain, SDValue Dst, SDValue Src,
|
2020-06-30 15:12:31 +02:00
|
|
|
SDValue Size, Align Alignment,
|
|
|
|
bool isVolatile, bool AlwaysInline,
|
2010-09-21 07:40:29 +02:00
|
|
|
MachinePointerInfo DstPtrInfo,
|
2014-03-09 08:44:38 +01:00
|
|
|
MachinePointerInfo SrcPtrInfo) const override;
|
2010-04-17 01:04:22 +02:00
|
|
|
};
|
|
|
|
|
2015-06-23 11:49:53 +02:00
|
|
|
}
|
2010-04-17 01:04:22 +02:00
|
|
|
|
|
|
|
#endif
|