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