LLVM 17.0.0git
BPFCORE.h
Go to the documentation of this file.
1//===- BPFCORE.h - Common info for Compile-Once Run-EveryWhere -*- 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#ifndef LLVM_LIB_TARGET_BPF_BPFCORE_H
10#define LLVM_LIB_TARGET_BPF_BPFCORE_H
11
12#include "llvm/ADT/StringRef.h"
13
14namespace llvm {
15
16class BasicBlock;
17class Instruction;
18class Module;
19
21public:
36
38 };
39
43
45 };
46
51
53 };
54
58
60 };
61
62 /// The attribute attached to globals representing a field access
63 static constexpr StringRef AmaAttr = "btf_ama";
64 /// The attribute attached to globals representing a type id
65 static constexpr StringRef TypeIdAttr = "btf_type_id";
66
67 /// llvm.bpf.passthrough builtin seq number
69
70 /// Insert a bpf passthrough builtin function.
72 Instruction *Input,
73 Instruction *Before);
74};
75
76} // namespace llvm
77
78#endif
Machine Check Debug Module
static uint32_t SeqNum
llvm.bpf.passthrough builtin seq number
Definition: BPFCORE.h:68
static constexpr StringRef TypeIdAttr
The attribute attached to globals representing a type id.
Definition: BPFCORE.h:65
static Instruction * insertPassThrough(Module *M, BasicBlock *BB, Instruction *Input, Instruction *Before)
Insert a bpf passthrough builtin function.
static constexpr StringRef AmaAttr
The attribute attached to globals representing a field access.
Definition: BPFCORE.h:63
LLVM Basic Block Representation.
Definition: BasicBlock.h:56
A Module instance is used to store all the information related to an LLVM module.
Definition: Module.h:65
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
@ BasicBlock
Various leaf nodes.
Definition: ISDOpcodes.h:71
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18