clang 24.0.0git
SemaHexagon.h
Go to the documentation of this file.
1//===----- SemaHexagon.h -- Hexagon 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 Hexagon.
10///
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_CLANG_SEMA_SEMAHEXAGON_H
14#define LLVM_CLANG_SEMA_SEMAHEXAGON_H
15
16#include "clang/AST/ASTFwd.h"
17#include "clang/Sema/SemaBase.h"
18
19namespace clang {
20class ParsedAttr;
21
22class SemaHexagon : public SemaBase {
23public:
24 SemaHexagon(Sema &S);
25
27
28 bool CheckHexagonBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall);
29 bool CheckHexagonBuiltinArgument(unsigned BuiltinID, CallExpr *TheCall);
30
31 /// Returns true if \p T is an HLX vector or vector pair type, or an array
32 /// of them, and HLX is enabled.
33 bool isHLXVectorType(QualType T) const;
34};
35} // namespace clang
36
37#endif // LLVM_CLANG_SEMA_SEMAHEXAGON_H
Forward declaration of all AST node types.
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
Definition Expr.h:3012
Decl - This represents one declaration (or definition), e.g.
Definition DeclBase.h:86
ParsedAttr - Represents a syntactic attribute.
Definition ParsedAttr.h:119
A (possibly-)qualified type.
Definition TypeBase.h:938
SemaBase(Sema &S)
Definition SemaBase.cpp:7
bool isHLXVectorType(QualType T) const
Returns true if T is an HLX vector or vector pair type, or an array of them, and HLX is enabled.
void handleHLXVectorStackLimitAttr(Decl *D, const ParsedAttr &AL)
bool CheckHexagonBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall)
bool CheckHexagonBuiltinArgument(unsigned BuiltinID, CallExpr *TheCall)
Sema - This implements semantic analysis and AST building for C.
Definition Sema.h:863
Top level wrappers for InstallAPI frontend operations.
const FunctionProtoType * T