LLVM  9.0.0svn
BPFSelectionDAGInfo.h
Go to the documentation of this file.
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 
17 
18 namespace llvm {
19 
21 public:
23  SDValue Chain, SDValue Dst, SDValue Src,
24  SDValue Size, unsigned Align, bool isVolatile,
25  bool AlwaysInline,
26  MachinePointerInfo DstPtrInfo,
27  MachinePointerInfo SrcPtrInfo) const override;
28 
29  unsigned getCommonMaxStoresPerMemFunc() const { return 128; }
30 
31 };
32 
33 }
34 
35 #endif
constexpr char Align[]
Key for Kernel::Arg::Metadata::mAlign.
This class represents lattice values for constants.
Definition: AllocatorList.h:23
unsigned getCommonMaxStoresPerMemFunc() const
Targets can subclass this to parameterize the SelectionDAG lowering and instruction selection process...
This class contains a discriminated union of information about pointers in memory operands...
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
Definition: SelectionDAG.h:221
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
uint32_t Size
Definition: Profile.cpp:46
SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, SDValue Size, unsigned Align, bool isVolatile, bool AlwaysInline, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) const override
Emit target-specific code that performs a memcpy.
static bool isVolatile(Instruction *Inst)
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation...