clang 20.0.0git
SemaMIPS.h
Go to the documentation of this file.
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/DeclBase.h"
17#include "clang/AST/Expr.h"
19#include "clang/Sema/SemaBase.h"
20
21namespace clang {
22class ParsedAttr;
23
24class SemaMIPS : public SemaBase {
25public:
26 SemaMIPS(Sema &S);
27
28 bool CheckMipsBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID,
29 CallExpr *TheCall);
30 bool CheckMipsBuiltinCpu(const TargetInfo &TI, unsigned BuiltinID,
31 CallExpr *TheCall);
32 bool CheckMipsBuiltinArgument(unsigned BuiltinID, CallExpr *TheCall);
33 void handleInterruptAttr(Decl *D, const ParsedAttr &AL);
34};
35} // namespace clang
36
37#endif // LLVM_CLANG_SEMA_SEMAMIPS_H
const Decl * D
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
Definition: Expr.h:2830
Decl - This represents one declaration (or definition), e.g.
Definition: DeclBase.h:86
ParsedAttr - Represents a syntactic attribute.
Definition: ParsedAttr.h:129
bool CheckMipsBuiltinCpu(const TargetInfo &TI, unsigned BuiltinID, CallExpr *TheCall)
Definition: SemaMIPS.cpp:31
bool CheckMipsBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID, CallExpr *TheCall)
Definition: SemaMIPS.cpp:24
bool CheckMipsBuiltinArgument(unsigned BuiltinID, CallExpr *TheCall)
Definition: SemaMIPS.cpp:65
void handleInterruptAttr(Decl *D, const ParsedAttr &AL)
Definition: SemaMIPS.cpp:242
Sema - This implements semantic analysis and AST building for C.
Definition: Sema.h:535
Exposes information about the current target.
Definition: TargetInfo.h:218
Defines the clang::TargetInfo interface.
The JSON file list parser is used to communicate input to InstallAPI.