Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Target/X86/X86SelectionDAGInfo.h
Line
Count
Source
1
//===-- X86SelectionDAGInfo.h - X86 SelectionDAG Info -----------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// This file defines the X86 subclass for SelectionDAGTargetInfo.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
14
#define LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
15
16
#include "llvm/CodeGen/SelectionDAGTargetInfo.h"
17
#include "llvm/MC/MCRegisterInfo.h"
18
19
namespace llvm {
20
21
class X86TargetLowering;
22
class X86TargetMachine;
23
class X86Subtarget;
24
25
class X86SelectionDAGInfo : public SelectionDAGTargetInfo {
26
  /// 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<MCPhysReg> ClobberSet) const;
30
31
public:
32
15.2k
  explicit X86SelectionDAGInfo() = default;
33
34
  SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &dl,
35
                                  SDValue Chain, SDValue Dst, SDValue Src,
36
                                  SDValue Size, unsigned Align, bool isVolatile,
37
                                  MachinePointerInfo DstPtrInfo) const override;
38
39
  SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl,
40
                                  SDValue Chain, SDValue Dst, SDValue Src,
41
                                  SDValue Size, unsigned Align, bool isVolatile,
42
                                  bool AlwaysInline,
43
                                  MachinePointerInfo DstPtrInfo,
44
                                  MachinePointerInfo SrcPtrInfo) const override;
45
};
46
47
}
48
49
#endif