-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch moves `Sema` functions that are specific for x86 into the new `SemaX86` class. This continues previous efforts to split `Sema` up. Additional context can be found in #84184 and #92682.
- Loading branch information
Showing
6 changed files
with
960 additions
and
861 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
//===----- SemaX86.h ------- X86 target-specific routines -----*- C++ -*---===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
/// \file | ||
/// This file declares semantic analysis functions specific to X86. | ||
/// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_CLANG_SEMA_SEMAX86_H | ||
#define LLVM_CLANG_SEMA_SEMAX86_H | ||
|
||
#include "clang/AST/Expr.h" | ||
#include "clang/Basic/LLVM.h" | ||
#include "clang/Basic/TargetInfo.h" | ||
#include "clang/Sema/SemaBase.h" | ||
|
||
namespace clang { | ||
class SemaX86 : public SemaBase { | ||
public: | ||
SemaX86(Sema &S); | ||
|
||
bool CheckBuiltinRoundingOrSAE(unsigned BuiltinID, CallExpr *TheCall); | ||
bool CheckBuiltinGatherScatterScale(unsigned BuiltinID, CallExpr *TheCall); | ||
bool CheckBuiltinTileArguments(unsigned BuiltinID, CallExpr *TheCall); | ||
bool CheckBuiltinTileArgumentsRange(CallExpr *TheCall, ArrayRef<int> ArgNums); | ||
bool CheckBuiltinTileDuplicate(CallExpr *TheCall, ArrayRef<int> ArgNums); | ||
bool CheckBuiltinTileRangeAndDuplicate(CallExpr *TheCall, | ||
ArrayRef<int> ArgNums); | ||
bool CheckBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID, | ||
CallExpr *TheCall); | ||
}; | ||
} // namespace clang | ||
|
||
#endif // LLVM_CLANG_SEMA_SEMAX86_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.