AArch64SelectionDAGInfo.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //===-- AArch64SelectionDAGInfo.h - AArch64 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 AArch64 subclass for SelectionDAGTargetInfo.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64SELECTIONDAGINFO_H
  13. #define LLVM_LIB_TARGET_AARCH64_AARCH64SELECTIONDAGINFO_H
  14. #include "llvm/CodeGen/SelectionDAGTargetInfo.h"
  15. namespace llvm {
  16. class AArch64SelectionDAGInfo : public SelectionDAGTargetInfo {
  17. public:
  18. SDValue EmitMOPS(AArch64ISD::NodeType SDOpcode, SelectionDAG &DAG,
  19. const SDLoc &DL, SDValue Chain, SDValue Dst,
  20. SDValue SrcOrValue, SDValue Size, Align Alignment,
  21. bool isVolatile, MachinePointerInfo DstPtrInfo,
  22. MachinePointerInfo SrcPtrInfo) const;
  23. SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl,
  24. SDValue Chain, SDValue Dst, SDValue Src,
  25. SDValue Size, Align Alignment,
  26. bool isVolatile, bool AlwaysInline,
  27. MachinePointerInfo DstPtrInfo,
  28. MachinePointerInfo SrcPtrInfo) const override;
  29. SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &dl,
  30. SDValue Chain, SDValue Dst, SDValue Src,
  31. SDValue Size, Align Alignment,
  32. bool isVolatile, bool AlwaysInline,
  33. MachinePointerInfo DstPtrInfo) const override;
  34. SDValue
  35. EmitTargetCodeForMemmove(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain,
  36. SDValue Dst, SDValue Src, SDValue Size,
  37. Align Alignment, bool isVolatile,
  38. MachinePointerInfo DstPtrInfo,
  39. MachinePointerInfo SrcPtrInfo) const override;
  40. SDValue EmitTargetCodeForSetTag(SelectionDAG &DAG, const SDLoc &dl,
  41. SDValue Chain, SDValue Op1, SDValue Op2,
  42. MachinePointerInfo DstPtrInfo,
  43. bool ZeroData) const override;
  44. };
  45. }
  46. #endif