xref: /aosp_15_r20/external/llvm/lib/Target/X86/X86SelectionDAGInfo.h (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker //===-- X86SelectionDAGInfo.h - X86 SelectionDAG Info -----------*- C++ -*-===//
2*9880d681SAndroid Build Coastguard Worker //
3*9880d681SAndroid Build Coastguard Worker //                     The LLVM Compiler Infrastructure
4*9880d681SAndroid Build Coastguard Worker //
5*9880d681SAndroid Build Coastguard Worker // This file is distributed under the University of Illinois Open Source
6*9880d681SAndroid Build Coastguard Worker // License. See LICENSE.TXT for details.
7*9880d681SAndroid Build Coastguard Worker //
8*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
9*9880d681SAndroid Build Coastguard Worker //
10*9880d681SAndroid Build Coastguard Worker // This file defines the X86 subclass for SelectionDAGTargetInfo.
11*9880d681SAndroid Build Coastguard Worker //
12*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
13*9880d681SAndroid Build Coastguard Worker 
14*9880d681SAndroid Build Coastguard Worker #ifndef LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
15*9880d681SAndroid Build Coastguard Worker #define LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
16*9880d681SAndroid Build Coastguard Worker 
17*9880d681SAndroid Build Coastguard Worker #include "llvm/CodeGen/SelectionDAGTargetInfo.h"
18*9880d681SAndroid Build Coastguard Worker #include "llvm/MC/MCRegisterInfo.h"
19*9880d681SAndroid Build Coastguard Worker 
20*9880d681SAndroid Build Coastguard Worker namespace llvm {
21*9880d681SAndroid Build Coastguard Worker 
22*9880d681SAndroid Build Coastguard Worker class X86TargetLowering;
23*9880d681SAndroid Build Coastguard Worker class X86TargetMachine;
24*9880d681SAndroid Build Coastguard Worker class X86Subtarget;
25*9880d681SAndroid Build Coastguard Worker 
26*9880d681SAndroid Build Coastguard Worker class X86SelectionDAGInfo : public SelectionDAGTargetInfo {
27*9880d681SAndroid Build Coastguard Worker   /// Returns true if it is possible for the base register to conflict with the
28*9880d681SAndroid Build Coastguard Worker   /// given set of clobbers for a memory intrinsic.
29*9880d681SAndroid Build Coastguard Worker   bool isBaseRegConflictPossible(SelectionDAG &DAG,
30*9880d681SAndroid Build Coastguard Worker                                  ArrayRef<MCPhysReg> ClobberSet) const;
31*9880d681SAndroid Build Coastguard Worker 
32*9880d681SAndroid Build Coastguard Worker public:
33*9880d681SAndroid Build Coastguard Worker   explicit X86SelectionDAGInfo() = default;
34*9880d681SAndroid Build Coastguard Worker 
35*9880d681SAndroid Build Coastguard Worker   SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &dl,
36*9880d681SAndroid Build Coastguard Worker                                   SDValue Chain, SDValue Dst, SDValue Src,
37*9880d681SAndroid Build Coastguard Worker                                   SDValue Size, unsigned Align, bool isVolatile,
38*9880d681SAndroid Build Coastguard Worker                                   MachinePointerInfo DstPtrInfo) const override;
39*9880d681SAndroid Build Coastguard Worker 
40*9880d681SAndroid Build Coastguard Worker   SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl,
41*9880d681SAndroid Build Coastguard Worker                                   SDValue Chain, SDValue Dst, SDValue Src,
42*9880d681SAndroid Build Coastguard Worker                                   SDValue Size, unsigned Align, bool isVolatile,
43*9880d681SAndroid Build Coastguard Worker                                   bool AlwaysInline,
44*9880d681SAndroid Build Coastguard Worker                                   MachinePointerInfo DstPtrInfo,
45*9880d681SAndroid Build Coastguard Worker                                   MachinePointerInfo SrcPtrInfo) const override;
46*9880d681SAndroid Build Coastguard Worker };
47*9880d681SAndroid Build Coastguard Worker 
48*9880d681SAndroid Build Coastguard Worker }
49*9880d681SAndroid Build Coastguard Worker 
50*9880d681SAndroid Build Coastguard Worker #endif
51