clang: clang::SemaWasm Class Reference (original) (raw)
#include "[clang/Sema/SemaWasm.h](SemaWasm%5F8h%5Fsource.html)"
Public Member Functions | |
---|---|
SemaWasm (Sema &S) | |
bool | CheckWebAssemblyBuiltinFunctionCall (const TargetInfo &TI, unsigned BuiltinID, CallExpr *TheCall) |
bool | BuiltinWasmRefNullExtern (CallExpr *TheCall) |
bool | BuiltinWasmRefNullFunc (CallExpr *TheCall) |
bool | BuiltinWasmTableGet (CallExpr *TheCall) |
Check that the first argument is a WebAssembly table, and the second is an index to use as index into the table. | |
bool | BuiltinWasmTableSet (CallExpr *TheCall) |
Check that the first argumnet is a WebAssembly table, the second is an index to use as index into the table and the third is the reference type to set into the table. | |
bool | BuiltinWasmTableSize (CallExpr *TheCall) |
Check that the argument is a WebAssembly table. | |
bool | BuiltinWasmTableGrow (CallExpr *TheCall) |
Check that the first argument is a WebAssembly table, the second is the value to use for new elements (of a type matching the table type), the third value is an integer. | |
bool | BuiltinWasmTableFill (CallExpr *TheCall) |
Check that the first argument is a WebAssembly table, the second is an integer, the third is the value to use to fill the table (of a type matching the table type), and the fourth is an integer. | |
bool | BuiltinWasmTableCopy (CallExpr *TheCall) |
Check that the first argument is a WebAssembly table, the second is also a WebAssembly table (of the same element type), and the third to fifth arguments are integers. | |
WebAssemblyImportNameAttr * | mergeImportNameAttr (Decl *D, const WebAssemblyImportNameAttr &AL) |
WebAssemblyImportModuleAttr * | mergeImportModuleAttr (Decl *D, const WebAssemblyImportModuleAttr &AL) |
void | handleWebAssemblyExportNameAttr (Decl *D, const ParsedAttr &AL) |
void | handleWebAssemblyImportModuleAttr (Decl *D, const ParsedAttr &AL) |
void | handleWebAssemblyImportNameAttr (Decl *D, const ParsedAttr &AL) |
![]() |
|
SemaBase (Sema &S) | |
ASTContext & | getASTContext () const |
DiagnosticsEngine & | getDiagnostics () const |
const LangOptions & | getLangOpts () const |
SemaDiagnosticBuilder | Diag (SourceLocation Loc, unsigned DiagID, bool DeferHint=false) |
Emit a diagnostic. | |
SemaDiagnosticBuilder | Diag (SourceLocation Loc, const PartialDiagnostic &PD, bool DeferHint=false) |
Emit a partial diagnostic. | |
PartialDiagnostic | PDiag (unsigned DiagID=0) |
Build a partial diagnostic. | |
Definition at line 23 of file SemaWasm.h.
clang::SemaWasm::SemaWasm | ( | Sema & | S | ) |
---|
◆ BuiltinWasmRefNullExtern()
bool clang::SemaWasm::BuiltinWasmRefNullExtern | ( | CallExpr * | TheCall | ) |
---|
◆ BuiltinWasmRefNullFunc()
bool clang::SemaWasm::BuiltinWasmRefNullFunc | ( | CallExpr * | TheCall | ) |
---|
◆ BuiltinWasmTableCopy()
bool clang::SemaWasm::BuiltinWasmTableCopy | ( | CallExpr * | TheCall | ) |
---|
Check that the first argument is a WebAssembly table, the second is also a WebAssembly table (of the same element type), and the third to fifth arguments are integers.
Definition at line 192 of file SemaWasm.cpp.
References clang::Sema::checkArgCount(), clang::CheckWasmBuiltinArgIsInteger(), clang::CheckWasmBuiltinArgIsTable(), clang::SemaBase::Diag(), clang::CallExpr::getArg(), clang::SemaBase::getASTContext(), clang::Stmt::getBeginLoc(), clang::Stmt::getSourceRange(), and clang::SemaBase::SemaRef.
Referenced by CheckWebAssemblyBuiltinFunctionCall().
◆ BuiltinWasmTableFill()
bool clang::SemaWasm::BuiltinWasmTableFill | ( | CallExpr * | TheCall | ) |
---|
Check that the first argument is a WebAssembly table, the second is an integer, the third is the value to use to fill the table (of a type matching the table type), and the fourth is an integer.
Definition at line 165 of file SemaWasm.cpp.
References clang::Sema::checkArgCount(), clang::CheckWasmBuiltinArgIsInteger(), clang::CheckWasmBuiltinArgIsTable(), clang::SemaBase::Diag(), clang::CallExpr::getArg(), clang::SemaBase::getASTContext(), clang::Stmt::getBeginLoc(), clang::Stmt::getSourceRange(), clang::Expr::getType(), and clang::SemaBase::SemaRef.
Referenced by CheckWebAssemblyBuiltinFunctionCall().
◆ BuiltinWasmTableGet()
bool clang::SemaWasm::BuiltinWasmTableGet | ( | CallExpr * | TheCall | ) |
---|
◆ BuiltinWasmTableGrow()
bool clang::SemaWasm::BuiltinWasmTableGrow | ( | CallExpr * | TheCall | ) |
---|
Check that the first argument is a WebAssembly table, the second is the value to use for new elements (of a type matching the table type), the third value is an integer.
Definition at line 141 of file SemaWasm.cpp.
References clang::Sema::checkArgCount(), clang::CheckWasmBuiltinArgIsInteger(), clang::CheckWasmBuiltinArgIsTable(), clang::SemaBase::Diag(), clang::CallExpr::getArg(), clang::SemaBase::getASTContext(), clang::Stmt::getBeginLoc(), clang::Stmt::getSourceRange(), clang::Expr::getType(), and clang::SemaBase::SemaRef.
Referenced by CheckWebAssemblyBuiltinFunctionCall().
◆ BuiltinWasmTableSet()
bool clang::SemaWasm::BuiltinWasmTableSet | ( | CallExpr * | TheCall | ) |
---|
◆ BuiltinWasmTableSize()
bool clang::SemaWasm::BuiltinWasmTableSize | ( | CallExpr * | TheCall | ) |
---|
◆ CheckWebAssemblyBuiltinFunctionCall()
◆ handleWebAssemblyExportNameAttr()
void clang::SemaWasm::handleWebAssemblyExportNameAttr | ( | Decl * | D, |
---|---|---|---|
const ParsedAttr & | AL | ||
) |
◆ handleWebAssemblyImportModuleAttr()
void clang::SemaWasm::handleWebAssemblyImportModuleAttr | ( | Decl * | D, |
---|---|---|---|
const ParsedAttr & | AL | ||
) |
◆ handleWebAssemblyImportNameAttr()
void clang::SemaWasm::handleWebAssemblyImportNameAttr | ( | Decl * | D, |
---|---|---|---|
const ParsedAttr & | AL | ||
) |
◆ mergeImportModuleAttr()
WebAssemblyImportModuleAttr * clang::SemaWasm::mergeImportModuleAttr | ( | Decl * | D, |
---|---|---|---|
const WebAssemblyImportModuleAttr & | AL | ||
) |
◆ mergeImportNameAttr()
WebAssemblyImportNameAttr * clang::SemaWasm::mergeImportNameAttr | ( | Decl * | D, |
---|---|---|---|
const WebAssemblyImportNameAttr & | AL | ||
) |
The documentation for this class was generated from the following files:
- include/clang/Sema/SemaWasm.h
- lib/Sema/SemaWasm.cpp