LLVM  3.7.0
X86SelectionDAGInfo.h
Go to the documentation of this file.
1 //===-- X86SelectionDAGInfo.h - X86 SelectionDAG Info -----------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines the X86 subclass for TargetSelectionDAGInfo.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
15 #define LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
16 
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<unsigned> ClobberSet) const;
30 
31 public:
32  explicit X86SelectionDAGInfo() = default;
33 
35  SDValue Chain,
36  SDValue Dst, SDValue Src,
37  SDValue Size, unsigned Align,
38  bool isVolatile,
39  MachinePointerInfo DstPtrInfo) const override;
40 
42  SDValue Chain,
43  SDValue Dst, SDValue Src,
44  SDValue Size, unsigned Align,
45  bool isVolatile, bool AlwaysInline,
46  MachinePointerInfo DstPtrInfo,
47  MachinePointerInfo SrcPtrInfo) const override;
48 };
49 
50 }
51 
52 #endif
SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, SDLoc dl, SDValue Chain, SDValue Dst, SDValue Src, SDValue Size, unsigned Align, bool isVolatile, bool AlwaysInline, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) const override
EmitTargetCodeForMemcpy - Emit target-specific code that performs a memcpy.
TargetSelectionDAGInfo - Targets can subclass this to parameterize the SelectionDAG lowering and inst...
MachinePointerInfo - This class contains a discriminated union of information about pointers in memor...
SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, SDLoc dl, SDValue Chain, SDValue Dst, SDValue Src, SDValue Size, unsigned Align, bool isVolatile, MachinePointerInfo DstPtrInfo) const override
EmitTargetCodeForMemset - Emit target-specific code that performs a memset.
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
Definition: SelectionDAG.h:179
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
static cl::opt< AlignMode > Align(cl::desc("Load/store alignment support"), cl::Hidden, cl::init(NoStrictAlign), cl::values(clEnumValN(StrictAlign,"aarch64-strict-align","Disallow all unaligned memory accesses"), clEnumValN(NoStrictAlign,"aarch64-no-strict-align","Allow unaligned memory accesses"), clEnumValEnd))
static bool isVolatile(Instruction *Inst)
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation...