clang  19.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/Expr.h"
17 #include "clang/Basic/LLVM.h"
18 #include "clang/Basic/TargetInfo.h"
19 #include "clang/Sema/SemaBase.h"
20 
21 namespace clang {
22 class SemaX86 : public SemaBase {
23 public:
24  SemaX86(Sema &S);
25 
26  bool CheckBuiltinRoundingOrSAE(unsigned BuiltinID, CallExpr *TheCall);
27  bool CheckBuiltinGatherScatterScale(unsigned BuiltinID, CallExpr *TheCall);
28  bool CheckBuiltinTileArguments(unsigned BuiltinID, CallExpr *TheCall);
30  bool CheckBuiltinTileDuplicate(CallExpr *TheCall, ArrayRef<int> ArgNums);
32  ArrayRef<int> ArgNums);
33  bool CheckBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID,
34  CallExpr *TheCall);
35 };
36 } // namespace clang
37 
38 #endif // LLVM_CLANG_SEMA_SEMAX86_H
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:2872
bool CheckBuiltinTileArgumentsRange(CallExpr *TheCall, ArrayRef< int > ArgNums)
Definition: SemaX86.cpp:405
bool CheckBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID, CallExpr *TheCall)
Definition: SemaX86.cpp:477
bool CheckBuiltinRoundingOrSAE(unsigned BuiltinID, CallExpr *TheCall)
Definition: SemaX86.cpp:26
bool CheckBuiltinTileRangeAndDuplicate(CallExpr *TheCall, ArrayRef< int > ArgNums)
Definition: SemaX86.cpp:440
bool CheckBuiltinGatherScatterScale(unsigned BuiltinID, CallExpr *TheCall)
Definition: SemaX86.cpp:311
bool CheckBuiltinTileDuplicate(CallExpr *TheCall, ArrayRef< int > ArgNums)
Definition: SemaX86.cpp:415
SemaX86(Sema &S)
Definition: SemaX86.cpp:23
bool CheckBuiltinTileArguments(unsigned BuiltinID, CallExpr *TheCall)
Definition: SemaX86.cpp:446
Sema - This implements semantic analysis and AST building for C.
Definition: Sema.h:462
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.