LLVM  14.0.0git
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 
18 namespace llvm {
19 
21  /// Returns true if it is possible for the base register to conflict with the
22  /// given set of clobbers for a memory intrinsic.
23  bool isBaseRegConflictPossible(SelectionDAG &DAG,
24  ArrayRef<MCPhysReg> ClobberSet) const;
25 
26 public:
27  explicit X86SelectionDAGInfo() = default;
28 
30  SDValue Chain, SDValue Dst, SDValue Src,
31  SDValue Size, Align Alignment,
32  bool isVolatile,
33  MachinePointerInfo DstPtrInfo) const override;
34 
36  SDValue Chain, SDValue Dst, SDValue Src,
37  SDValue Size, Align Alignment,
38  bool isVolatile, bool AlwaysInline,
39  MachinePointerInfo DstPtrInfo,
40  MachinePointerInfo SrcPtrInfo) const override;
41 };
42 
43 }
44 
45 #endif
llvm::Check::Size
@ Size
Definition: FileCheck.h:73
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
llvm::SDLoc
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
Definition: SelectionDAGNodes.h:1085
llvm::SelectionDAG
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
Definition: SelectionDAG.h:216
llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset
SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, SDValue Size, Align Alignment, bool isVolatile, MachinePointerInfo DstPtrInfo) const override
Emit target-specific code that performs a memset.
Definition: X86SelectionDAGInfo.cpp:47
llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy
SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, SDValue Size, Align Alignment, bool isVolatile, bool AlwaysInline, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) const override
Emit target-specific code that performs a memcpy.
Definition: X86SelectionDAGInfo.cpp:292
llvm::SelectionDAGTargetInfo
Targets can subclass this to parameterize the SelectionDAG lowering and instruction selection process...
Definition: SelectionDAGTargetInfo.h:31
llvm::Align
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition: Alignment.h:39
llvm::MachinePointerInfo
This class contains a discriminated union of information about pointers in memory operands,...
Definition: MachineMemOperand.h:38
llvm::ArrayRef
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: APInt.h:32
llvm::X86SelectionDAGInfo::X86SelectionDAGInfo
X86SelectionDAGInfo()=default
llvm::SDValue
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation.
Definition: SelectionDAGNodes.h:137
SelectionDAGTargetInfo.h
llvm::X86SelectionDAGInfo
Definition: X86SelectionDAGInfo.h:20