LLVM  10.0.0svn
X86SelectionDAGInfo.h
Go to the documentation of this file.
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 
17 #include "llvm/MC/MCRegisterInfo.h"
18 
19 namespace llvm {
20 
21 class X86TargetLowering;
22 class X86TargetMachine;
23 class X86Subtarget;
24 
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  explicit X86SelectionDAGInfo() = default;
33 
35  SDValue Chain, SDValue Dst, SDValue Src,
36  SDValue Size, unsigned Align, bool isVolatile,
37  MachinePointerInfo DstPtrInfo) const override;
38 
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
This class represents lattice values for constants.
Definition: AllocatorList.h:23
SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, SDValue Size, unsigned Align, bool isVolatile, bool AlwaysInline, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) const override
Emit target-specific code that performs a memcpy.
Targets can subclass this to parameterize the SelectionDAG lowering and instruction selection process...
This class contains a discriminated union of information about pointers in memory operands...
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition: Alignment.h:40
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
Definition: SelectionDAG.h:221
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
uint32_t Size
Definition: Profile.cpp:46
SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, SDValue Size, unsigned Align, bool isVolatile, MachinePointerInfo DstPtrInfo) const override
Emit target-specific code that performs a memset.
static bool isVolatile(Instruction *Inst)
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation...