1 //===----- SemaMIPS.h ------ MIPS 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 MIPS. 10 /// 11 //===----------------------------------------------------------------------===// 12 13 #ifndef LLVM_CLANG_SEMA_SEMAMIPS_H 14 #define LLVM_CLANG_SEMA_SEMAMIPS_H 15 16 #include "clang/AST/ASTFwd.h" 17 #include "clang/Sema/SemaBase.h" 18 19 namespace clang { 20 class ParsedAttr; 21 class TargetInfo; 22 23 class SemaMIPS : public SemaBase { 24 public: 25 SemaMIPS(Sema &S); 26 27 bool CheckMipsBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID, 28 CallExpr *TheCall); 29 bool CheckMipsBuiltinCpu(const TargetInfo &TI, unsigned BuiltinID, 30 CallExpr *TheCall); 31 bool CheckMipsBuiltinArgument(unsigned BuiltinID, CallExpr *TheCall); 32 void handleInterruptAttr(Decl *D, const ParsedAttr &AL); 33 }; 34 } // namespace clang 35 36 #endif // LLVM_CLANG_SEMA_SEMAMIPS_H 37