BPFSelectionDAGInfo.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //===-- BPFSelectionDAGInfo.h - BPF 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 BPF subclass for SelectionDAGTargetInfo.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef LLVM_LIB_TARGET_BPF_BPFSELECTIONDAGINFO_H
  13. #define LLVM_LIB_TARGET_BPF_BPFSELECTIONDAGINFO_H
  14. #include "llvm/CodeGen/SelectionDAGTargetInfo.h"
  15. namespace llvm {
  16. class BPFSelectionDAGInfo : public SelectionDAGTargetInfo {
  17. public:
  18. SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl,
  19. SDValue Chain, SDValue Dst, SDValue Src,
  20. SDValue Size, Align Alignment,
  21. bool isVolatile, bool AlwaysInline,
  22. MachinePointerInfo DstPtrInfo,
  23. MachinePointerInfo SrcPtrInfo) const override;
  24. unsigned getCommonMaxStoresPerMemFunc() const { return 128; }
  25. };
  26. }
  27. #endif