clang  20.0.0git
SemaBPF.h
Go to the documentation of this file.
1 //===----- SemaBPF.h ------- BPF target-specific routines -----*- 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 /// \file
9 /// This file declares semantic analysis functions specific to BPF.
10 ///
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_CLANG_SEMA_SEMABPF_H
14 #define LLVM_CLANG_SEMA_SEMABPF_H
15 
16 #include "clang/AST/ASTFwd.h"
17 #include "clang/Sema/SemaBase.h"
18 
19 namespace clang {
20 class ParsedAttr;
21 
22 class SemaBPF : public SemaBase {
23 public:
24  SemaBPF(Sema &S);
25 
26  bool CheckBPFBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall);
27 
30 };
31 } // namespace clang
32 
33 #endif // LLVM_CLANG_SEMA_SEMABPF_H
Forward declaration of all AST node types.
const Decl * D
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
Definition: Expr.h:2882
Decl - This represents one declaration (or definition), e.g.
Definition: DeclBase.h:86
ParsedAttr - Represents a syntactic attribute.
Definition: ParsedAttr.h:129
Represents a struct/union/class.
Definition: Decl.h:4146
void handlePreserveAIRecord(RecordDecl *RD)
Definition: SemaBPF.cpp:175
SemaBPF(Sema &S)
Definition: SemaBPF.cpp:25
void handlePreserveAccessIndexAttr(Decl *D, const ParsedAttr &AL)
Definition: SemaBPF.cpp:187
bool CheckBPFBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall)
Definition: SemaBPF.cpp:111
Sema - This implements semantic analysis and AST building for C.
Definition: Sema.h:493
The JSON file list parser is used to communicate input to InstallAPI.