LLVM
10.0.0
lib
Target
BPF
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
namespace
llvm
{
13
14
class
BPFCoreSharedInfo
{
15
public
:
16
enum
OffsetRelocKind
:
uint32_t
{
17
FIELD_BYTE_OFFSET
= 0,
18
FIELD_BYTE_SIZE
,
19
FIELD_EXISTENCE
,
20
FIELD_SIGNEDNESS
,
21
FIELD_LSHIFT_U64
,
22
FIELD_RSHIFT_U64
,
23
24
MAX_FIELD_RELOC_KIND
,
25
};
26
/// The attribute attached to globals representing a field access
27
static
const
std::string
AmaAttr
;
28
};
29
30
}
// namespace llvm
31
32
#endif
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:23
llvm::BPFCoreSharedInfo::FIELD_LSHIFT_U64
Definition:
BPFCORE.h:21
llvm::BPFCoreSharedInfo::FIELD_EXISTENCE
Definition:
BPFCORE.h:19
llvm::BPFCoreSharedInfo::MAX_FIELD_RELOC_KIND
Definition:
BPFCORE.h:24
llvm::BPFCoreSharedInfo::FIELD_BYTE_OFFSET
Definition:
BPFCORE.h:17
llvm::BPFCoreSharedInfo::FIELD_RSHIFT_U64
Definition:
BPFCORE.h:22
uint32_t
llvm::BPFCoreSharedInfo
Definition:
BPFCORE.h:14
llvm::BPFCoreSharedInfo::AmaAttr
static const std::string AmaAttr
The attribute attached to globals representing a field access.
Definition:
BPFCORE.h:27
llvm::BPFCoreSharedInfo::FIELD_SIGNEDNESS
Definition:
BPFCORE.h:20
llvm::BPFCoreSharedInfo::FIELD_BYTE_SIZE
Definition:
BPFCORE.h:18
llvm::BPFCoreSharedInfo::OffsetRelocKind
OffsetRelocKind
Definition:
BPFCORE.h:16
Generated on Tue Mar 24 2020 13:11:59 for LLVM by
1.8.13