clang 22.0.0git
SemaNVPTX.cpp
Go to the documentation of this file.
1/===------ SemaNVPTX.cpp ------- NVPTX target-specific routines ----------===/
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/ This file implements semantic analysis functions specific to NVPTX.
10/
11/===----------------------------------------------------------------------===/
12
15#include "clang/Sema/Sema.h"
16
17namespace clang {
18
20
22 unsigned BuiltinID,
23 CallExpr *TheCall) {
24 switch (BuiltinID) {
25 case NVPTX::BI__nvvm_cp_async_ca_shared_global_4:
26 case NVPTX::BI__nvvm_cp_async_ca_shared_global_8:
27 case NVPTX::BI__nvvm_cp_async_ca_shared_global_16:
28 case NVPTX::BI__nvvm_cp_async_cg_shared_global_16:
29 return SemaRef.checkArgCountAtMost(TheCall, 3);
30 }
31
32 return false;
33}
34
35} / namespace clang
This file declares semantic analysis functions specific to NVPTX.
Enumerates target-specific builtins in their own namespaces within namespace clang.
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
Definition Expr.h:2943
SemaBase(Sema &S)
Definition SemaBase.cpp:7
Sema & SemaRef
Definition SemaBase.h:40
bool CheckNVPTXBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID, CallExpr *TheCall)
Definition SemaNVPTX.cpp:21
SemaNVPTX(Sema &S)
Definition SemaNVPTX.cpp:19
Sema - This implements semantic analysis and AST building for C.
Definition Sema.h:855
Exposes information about the current target.
Definition TargetInfo.h:226
The JSON file list parser is used to communicate input to InstallAPI.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant