X86SelectionDAGInfo.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #ifndef LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
  13. #define LLVM_LIB_TARGET_X86_X86SELECTIONDAGINFO_H
  14. #include "llvm/CodeGen/SelectionDAGTargetInfo.h"
  15. namespace llvm {
  16. class X86SelectionDAGInfo : public SelectionDAGTargetInfo {
  17. /// Returns true if it is possible for the base register to conflict with the
  18. /// given set of clobbers for a memory intrinsic.
  19. bool isBaseRegConflictPossible(SelectionDAG &DAG,
  20. ArrayRef<MCPhysReg> ClobberSet) const;
  21. public:
  22. explicit X86SelectionDAGInfo() = default;
  23. SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &dl,
  24. SDValue Chain, SDValue Dst, SDValue Src,
  25. SDValue Size, Align Alignment,
  26. bool isVolatile,
  27. MachinePointerInfo DstPtrInfo) const override;
  28. SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl,
  29. SDValue Chain, SDValue Dst, SDValue Src,
  30. SDValue Size, Align Alignment,
  31. bool isVolatile, bool AlwaysInline,
  32. MachinePointerInfo DstPtrInfo,
  33. MachinePointerInfo SrcPtrInfo) const override;
  34. };
  35. }
  36. #endif