1 //===----- SemaNVPTX.h ----- NVPTX 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 NVPTX. 10 /// 11 //===----------------------------------------------------------------------===// 12 13 #ifndef LLVM_CLANG_SEMA_SEMANVPTX_H 14 #define LLVM_CLANG_SEMA_SEMANVPTX_H 15 16 #include "clang/AST/Expr.h" 17 #include "clang/Basic/TargetInfo.h" 18 #include "clang/Sema/SemaBase.h" 19 20 namespace clang { 21 class SemaNVPTX : public SemaBase { 22 public: 23 SemaNVPTX(Sema &S); 24 25 bool CheckNVPTXBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID, 26 CallExpr *TheCall); 27 }; 28 } // namespace clang 29 30 #endif // LLVM_CLANG_SEMA_SEMANVPTX_H 31