xref: /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/BPFSelectionDAGInfo.h (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
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 
13 #ifndef LLVM_LIB_TARGET_BPF_BPFSELECTIONDAGINFO_H
14 #define LLVM_LIB_TARGET_BPF_BPFSELECTIONDAGINFO_H
15 
16 #include "llvm/CodeGen/SelectionDAGTargetInfo.h"
17 
18 namespace llvm {
19 
20 class BPFSelectionDAGInfo : public SelectionDAGTargetInfo {
21 public:
22   SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl,
23                                   SDValue Chain, SDValue Dst, SDValue Src,
24                                   SDValue Size, Align Alignment,
25                                   bool isVolatile, bool AlwaysInline,
26                                   MachinePointerInfo DstPtrInfo,
27                                   MachinePointerInfo SrcPtrInfo) const override;
28 
29   unsigned getCommonMaxStoresPerMemFunc() const { return 128; }
30 
31 };
32 
33 }
34 
35 #endif
36