LLVM  11.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 
14 namespace llvm {
15 
17 public:
27 
29  };
30 
34 
36  };
37 
38  /// The attribute attached to globals representing a field access
39  static constexpr StringRef AmaAttr = "btf_ama";
40  /// The attribute attached to globals representing a type id
41  static constexpr StringRef TypeIdAttr = "btf_type_id";
42 };
43 
44 } // namespace llvm
45 
46 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:23
static constexpr StringRef TypeIdAttr
The attribute attached to globals representing a type id.
Definition: BPFCORE.h:41
static constexpr StringRef AmaAttr
The attribute attached to globals representing a field access.
Definition: BPFCORE.h:39
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:57