Dan Gohman | 9becddd | 2010-04-16 23:04:22 +0000 | [diff] [blame] | 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 | |
Benjamin Kramer | a7c40ef | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 14 | #ifndef LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H |
| 15 | #define LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H |
Dan Gohman | 9becddd | 2010-04-16 23:04:22 +0000 | [diff] [blame] | 16 | |
| 17 | #include "llvm/Target/TargetSelectionDAGInfo.h" |
| 18 | |
| 19 | namespace llvm { |
| 20 | |
Dan Gohman | bb919df | 2010-05-11 17:31:57 +0000 | [diff] [blame] | 21 | class X86TargetLowering; |
| 22 | class X86TargetMachine; |
| 23 | class X86Subtarget; |
| 24 | |
Dan Gohman | 9becddd | 2010-04-16 23:04:22 +0000 | [diff] [blame] | 25 | class X86SelectionDAGInfo : public TargetSelectionDAGInfo { |
Reid Kleckner | ab99e24 | 2014-08-29 20:50:31 +0000 | [diff] [blame] | 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 | |
Dan Gohman | 9becddd | 2010-04-16 23:04:22 +0000 | [diff] [blame] | 31 | public: |
Mehdi Amini | 157e5a6 | 2015-07-09 02:10:08 +0000 | [diff] [blame] | 32 | explicit X86SelectionDAGInfo() = default; |
Dan Gohman | bb919df | 2010-05-11 17:31:57 +0000 | [diff] [blame] | 33 | |
Andrew Trick | ef9de2a | 2013-05-25 02:42:55 +0000 | [diff] [blame] | 34 | SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, SDLoc dl, |
Dan Gohman | bb919df | 2010-05-11 17:31:57 +0000 | [diff] [blame] | 35 | SDValue Chain, |
| 36 | SDValue Dst, SDValue Src, |
| 37 | SDValue Size, unsigned Align, |
| 38 | bool isVolatile, |
Craig Topper | 2d9361e | 2014-03-09 07:44:38 +0000 | [diff] [blame] | 39 | MachinePointerInfo DstPtrInfo) const override; |
Dan Gohman | bb919df | 2010-05-11 17:31:57 +0000 | [diff] [blame] | 40 | |
Andrew Trick | ef9de2a | 2013-05-25 02:42:55 +0000 | [diff] [blame] | 41 | SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, SDLoc dl, |
Dan Gohman | bb919df | 2010-05-11 17:31:57 +0000 | [diff] [blame] | 42 | SDValue Chain, |
| 43 | SDValue Dst, SDValue Src, |
| 44 | SDValue Size, unsigned Align, |
| 45 | bool isVolatile, bool AlwaysInline, |
Chris Lattner | 2510de2 | 2010-09-21 05:40:29 +0000 | [diff] [blame] | 46 | MachinePointerInfo DstPtrInfo, |
Craig Topper | 2d9361e | 2014-03-09 07:44:38 +0000 | [diff] [blame] | 47 | MachinePointerInfo SrcPtrInfo) const override; |
Dan Gohman | 9becddd | 2010-04-16 23:04:22 +0000 | [diff] [blame] | 48 | }; |
| 49 | |
Alexander Kornienko | f00654e | 2015-06-23 09:49:53 +0000 | [diff] [blame] | 50 | } |
Dan Gohman | 9becddd | 2010-04-16 23:04:22 +0000 | [diff] [blame] | 51 | |
| 52 | #endif |