clang 24.0.0git
SemaX86.h
Go to the documentation of this file.
1//===----- SemaX86.h ------- X86 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 X86.
10///
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_CLANG_SEMA_SEMAX86_H
14#define LLVM_CLANG_SEMA_SEMAX86_H
15
16#include "clang/AST/ASTFwd.h"
17#include "clang/Basic/LLVM.h"
18#include "clang/Sema/SemaBase.h"
19
20namespace clang {
21class ParsedAttr;
22class TargetInfo;
23
24class SemaX86 : public SemaBase {
25public:
26 SemaX86(Sema &S);
27
28 bool CheckBuiltinRoundingOrSAE(unsigned BuiltinID, CallExpr *TheCall);
29 bool CheckBuiltinVUnpackBImm(CallExpr *TheCall);
30 bool CheckBuiltinGatherScatterScale(unsigned BuiltinID, CallExpr *TheCall);
31 bool CheckBuiltinTileArguments(unsigned BuiltinID, CallExpr *TheCall);
33 bool CheckBuiltinTileDuplicate(CallExpr *TheCall, ArrayRef<int> ArgNums);
35 ArrayRef<int> ArgNums);
36 bool CheckBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID,
37 CallExpr *TheCall);
38
39 void handleAnyInterruptAttr(Decl *D, const ParsedAttr &AL);
41
45 SourceLocation AttrLoc);
46};
47} // namespace clang
48
49#endif // LLVM_CLANG_SEMA_SEMAX86_H
Forward declaration of all AST node types.
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
Definition Expr.h:2987
Decl - This represents one declaration (or definition), e.g.
Definition DeclBase.h:86
ParsedAttr - Represents a syntactic attribute.
Definition ParsedAttr.h:119
SemaBase(Sema &S)
Definition SemaBase.cpp:7
bool CheckBuiltinTileArgumentsRange(CallExpr *TheCall, ArrayRef< int > ArgNums)
Definition SemaX86.cpp:481
void handleForceAlignArgPointerAttr(Decl *D, const ParsedAttr &AL)
Definition SemaX86.cpp:1076
bool CheckBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID, CallExpr *TheCall)
Definition SemaX86.cpp:574
bool CheckBuiltinVUnpackBImm(CallExpr *TheCall)
Definition SemaX86.cpp:346
bool CheckBuiltinRoundingOrSAE(unsigned BuiltinID, CallExpr *TheCall)
Definition SemaX86.cpp:29
bool CheckBuiltinTileRangeAndDuplicate(CallExpr *TheCall, ArrayRef< int > ArgNums)
Definition SemaX86.cpp:516
bool CheckBuiltinGatherScatterScale(unsigned BuiltinID, CallExpr *TheCall)
Definition SemaX86.cpp:387
bool CheckBuiltinTileDuplicate(CallExpr *TheCall, ArrayRef< int > ArgNums)
Definition SemaX86.cpp:491
void handleAnyInterruptAttr(Decl *D, const ParsedAttr &AL)
Definition SemaX86.cpp:1007
SemaX86(Sema &S)
Definition SemaX86.cpp:26
bool CheckBuiltinTileArguments(unsigned BuiltinID, CallExpr *TheCall)
Definition SemaX86.cpp:522
bool checkTargetClonesAttr(const SmallVectorImpl< StringRef > &Params, const SmallVectorImpl< SourceLocation > &Locs, SmallVectorImpl< SmallString< 64 > > &NewParams, SourceLocation AttrLoc)
Definition SemaX86.cpp:1099
Sema - This implements semantic analysis and AST building for C.
Definition Sema.h:863
Encodes a location in the source.
Exposes information about the current target.
Definition TargetInfo.h:226
Top level wrappers for InstallAPI frontend operations.