LLVM 20.0.0git
|
#include "Target/BPF/BPFCORE.h"
Public Types | |
enum | BTFTypeIdFlag : uint32_t { BTF_TYPE_ID_LOCAL_RELOC = 0 , BTF_TYPE_ID_REMOTE_RELOC , MAX_BTF_TYPE_ID_FLAG } |
enum | PreserveTypeInfo : uint32_t { PRESERVE_TYPE_INFO_EXISTENCE = 0 , PRESERVE_TYPE_INFO_SIZE , PRESERVE_TYPE_INFO_MATCH , MAX_PRESERVE_TYPE_INFO_FLAG } |
enum | PreserveEnumValue : uint32_t { PRESERVE_ENUM_VALUE_EXISTENCE = 0 , PRESERVE_ENUM_VALUE , MAX_PRESERVE_ENUM_VALUE_FLAG } |
Static Public Member Functions | |
static Instruction * | insertPassThrough (Module *M, BasicBlock *BB, Instruction *Input, Instruction *Before) |
Insert a bpf passthrough builtin function. | |
static void | removeArrayAccessCall (CallInst *Call) |
static void | removeStructAccessCall (CallInst *Call) |
static void | removeUnionAccessCall (CallInst *Call) |
Static Public Attributes | |
static constexpr StringRef | AmaAttr = "btf_ama" |
The attribute attached to globals representing a field access. | |
static constexpr StringRef | TypeIdAttr = "btf_type_id" |
The attribute attached to globals representing a type id. | |
static uint32_t | SeqNum |
llvm.bpf.passthrough builtin seq number | |
|
static |
Insert a bpf passthrough builtin function.
Definition at line 103 of file BPFAbstractMemberAccess.cpp.
References Before, llvm::CallInst::Create(), llvm::BasicBlock::getContext(), llvm::Type::getInt32Ty(), llvm::Intrinsic::getOrInsertDeclaration(), llvm::Value::getType(), llvm::Instruction::insertBefore(), and SeqNum.
|
static |
Definition at line 429 of file BPFAbstractMemberAccess.cpp.
References replaceWithGEP().
Referenced by removePAICalls().
|
static |
Definition at line 433 of file BPFAbstractMemberAccess.cpp.
References replaceWithGEP().
Referenced by removePAICalls().
|
static |
Definition at line 437 of file BPFAbstractMemberAccess.cpp.
Referenced by removePAICalls().
|
staticconstexpr |
The attribute attached to globals representing a field access.
Definition at line 46 of file BPFCORE.h.
Referenced by llvm::BTFDebug::InstLower().
|
static |
llvm.bpf.passthrough builtin seq number
Definition at line 51 of file BPFCORE.h.
Referenced by insertPassThrough().
|
staticconstexpr |
The attribute attached to globals representing a type id.
Definition at line 48 of file BPFCORE.h.
Referenced by llvm::BTFDebug::InstLower().