Skip to content

Commit 298f8f7

Browse files
authored
[clang][NFC] Remove "Sema" prefix from Sema-related functions (#87914)
@AaronBallman once noted that this prefix is a historical accident, and shouldn't be there. I agree.
1 parent 7a4e897 commit 298f8f7

File tree

6 files changed

+473
-487
lines changed

6 files changed

+473
-487
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 53 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,10 +1831,10 @@ class Sema final : public SemaBase {
18311831
bool IsVariadic, FormatStringInfo *FSI);
18321832

18331833
// Used by C++ template instantiation.
1834-
ExprResult SemaBuiltinShuffleVector(CallExpr *TheCall);
1835-
ExprResult SemaConvertVectorExpr(Expr *E, TypeSourceInfo *TInfo,
1836-
SourceLocation BuiltinLoc,
1837-
SourceLocation RParenLoc);
1834+
ExprResult BuiltinShuffleVector(CallExpr *TheCall);
1835+
ExprResult ConvertVectorExpr(Expr *E, TypeSourceInfo *TInfo,
1836+
SourceLocation BuiltinLoc,
1837+
SourceLocation RParenLoc);
18381838

18391839
enum FormatStringType {
18401840
FST_Scanf,
@@ -2056,62 +2056,59 @@ class Sema final : public SemaBase {
20562056
bool CheckNVPTXBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID,
20572057
CallExpr *TheCall);
20582058

2059-
bool SemaBuiltinVAStart(unsigned BuiltinID, CallExpr *TheCall);
2060-
bool SemaBuiltinVAStartARMMicrosoft(CallExpr *Call);
2061-
bool SemaBuiltinUnorderedCompare(CallExpr *TheCall, unsigned BuiltinID);
2062-
bool SemaBuiltinFPClassification(CallExpr *TheCall, unsigned NumArgs,
2063-
unsigned BuiltinID);
2064-
bool SemaBuiltinComplex(CallExpr *TheCall);
2065-
bool SemaBuiltinVSX(CallExpr *TheCall);
2066-
bool SemaBuiltinOSLogFormat(CallExpr *TheCall);
2067-
bool SemaValueIsRunOfOnes(CallExpr *TheCall, unsigned ArgNum);
2068-
2069-
bool SemaBuiltinPrefetch(CallExpr *TheCall);
2070-
bool SemaBuiltinAllocaWithAlign(CallExpr *TheCall);
2071-
bool SemaBuiltinArithmeticFence(CallExpr *TheCall);
2072-
bool SemaBuiltinAssume(CallExpr *TheCall);
2073-
bool SemaBuiltinAssumeAligned(CallExpr *TheCall);
2074-
bool SemaBuiltinLongjmp(CallExpr *TheCall);
2075-
bool SemaBuiltinSetjmp(CallExpr *TheCall);
2076-
ExprResult SemaBuiltinAtomicOverloaded(ExprResult TheCallResult);
2077-
ExprResult SemaBuiltinNontemporalOverloaded(ExprResult TheCallResult);
2078-
ExprResult SemaAtomicOpsOverloaded(ExprResult TheCallResult,
2079-
AtomicExpr::AtomicOp Op);
2080-
bool SemaBuiltinConstantArg(CallExpr *TheCall, int ArgNum,
2081-
llvm::APSInt &Result);
2082-
bool SemaBuiltinConstantArgRange(CallExpr *TheCall, int ArgNum, int Low,
2083-
int High, bool RangeIsError = true);
2084-
bool SemaBuiltinConstantArgMultiple(CallExpr *TheCall, int ArgNum,
2085-
unsigned Multiple);
2086-
bool SemaBuiltinConstantArgPower2(CallExpr *TheCall, int ArgNum);
2087-
bool SemaBuiltinConstantArgShiftedByte(CallExpr *TheCall, int ArgNum,
2088-
unsigned ArgBits);
2089-
bool SemaBuiltinConstantArgShiftedByteOrXXFF(CallExpr *TheCall, int ArgNum,
2090-
unsigned ArgBits);
2091-
bool SemaBuiltinARMSpecialReg(unsigned BuiltinID, CallExpr *TheCall,
2092-
int ArgNum, unsigned ExpectedFieldNum,
2093-
bool AllowName);
2094-
bool SemaBuiltinARMMemoryTaggingCall(unsigned BuiltinID, CallExpr *TheCall);
2095-
bool SemaBuiltinPPCMMACall(CallExpr *TheCall, unsigned BuiltinID,
2096-
const char *TypeDesc);
2059+
bool BuiltinVAStart(unsigned BuiltinID, CallExpr *TheCall);
2060+
bool BuiltinVAStartARMMicrosoft(CallExpr *Call);
2061+
bool BuiltinUnorderedCompare(CallExpr *TheCall, unsigned BuiltinID);
2062+
bool BuiltinFPClassification(CallExpr *TheCall, unsigned NumArgs,
2063+
unsigned BuiltinID);
2064+
bool BuiltinComplex(CallExpr *TheCall);
2065+
bool BuiltinVSX(CallExpr *TheCall);
2066+
bool BuiltinOSLogFormat(CallExpr *TheCall);
2067+
bool ValueIsRunOfOnes(CallExpr *TheCall, unsigned ArgNum);
2068+
2069+
bool BuiltinPrefetch(CallExpr *TheCall);
2070+
bool BuiltinAllocaWithAlign(CallExpr *TheCall);
2071+
bool BuiltinArithmeticFence(CallExpr *TheCall);
2072+
bool BuiltinAssume(CallExpr *TheCall);
2073+
bool BuiltinAssumeAligned(CallExpr *TheCall);
2074+
bool BuiltinLongjmp(CallExpr *TheCall);
2075+
bool BuiltinSetjmp(CallExpr *TheCall);
2076+
ExprResult BuiltinAtomicOverloaded(ExprResult TheCallResult);
2077+
ExprResult BuiltinNontemporalOverloaded(ExprResult TheCallResult);
2078+
ExprResult AtomicOpsOverloaded(ExprResult TheCallResult,
2079+
AtomicExpr::AtomicOp Op);
2080+
bool BuiltinConstantArg(CallExpr *TheCall, int ArgNum, llvm::APSInt &Result);
2081+
bool BuiltinConstantArgRange(CallExpr *TheCall, int ArgNum, int Low, int High,
2082+
bool RangeIsError = true);
2083+
bool BuiltinConstantArgMultiple(CallExpr *TheCall, int ArgNum,
2084+
unsigned Multiple);
2085+
bool BuiltinConstantArgPower2(CallExpr *TheCall, int ArgNum);
2086+
bool BuiltinConstantArgShiftedByte(CallExpr *TheCall, int ArgNum,
2087+
unsigned ArgBits);
2088+
bool BuiltinConstantArgShiftedByteOrXXFF(CallExpr *TheCall, int ArgNum,
2089+
unsigned ArgBits);
2090+
bool BuiltinARMSpecialReg(unsigned BuiltinID, CallExpr *TheCall, int ArgNum,
2091+
unsigned ExpectedFieldNum, bool AllowName);
2092+
bool BuiltinARMMemoryTaggingCall(unsigned BuiltinID, CallExpr *TheCall);
2093+
bool BuiltinPPCMMACall(CallExpr *TheCall, unsigned BuiltinID,
2094+
const char *TypeDesc);
20972095

20982096
bool CheckPPCMMAType(QualType Type, SourceLocation TypeLoc);
20992097

2100-
bool SemaBuiltinElementwiseMath(CallExpr *TheCall);
2101-
bool SemaBuiltinElementwiseTernaryMath(CallExpr *TheCall,
2102-
bool CheckForFloatArgs = true);
2098+
bool BuiltinElementwiseMath(CallExpr *TheCall);
2099+
bool BuiltinElementwiseTernaryMath(CallExpr *TheCall,
2100+
bool CheckForFloatArgs = true);
21032101
bool PrepareBuiltinElementwiseMathOneArgCall(CallExpr *TheCall);
21042102
bool PrepareBuiltinReduceMathOneArgCall(CallExpr *TheCall);
21052103

2106-
bool SemaBuiltinNonDeterministicValue(CallExpr *TheCall);
2104+
bool BuiltinNonDeterministicValue(CallExpr *TheCall);
21072105

21082106
// Matrix builtin handling.
2109-
ExprResult SemaBuiltinMatrixTranspose(CallExpr *TheCall,
2110-
ExprResult CallResult);
2111-
ExprResult SemaBuiltinMatrixColumnMajorLoad(CallExpr *TheCall,
2112-
ExprResult CallResult);
2113-
ExprResult SemaBuiltinMatrixColumnMajorStore(CallExpr *TheCall,
2114-
ExprResult CallResult);
2107+
ExprResult BuiltinMatrixTranspose(CallExpr *TheCall, ExprResult CallResult);
2108+
ExprResult BuiltinMatrixColumnMajorLoad(CallExpr *TheCall,
2109+
ExprResult CallResult);
2110+
ExprResult BuiltinMatrixColumnMajorStore(CallExpr *TheCall,
2111+
ExprResult CallResult);
21152112

21162113
// WebAssembly builtin handling.
21172114
bool BuiltinWasmRefNullExtern(CallExpr *TheCall);
@@ -6986,8 +6983,8 @@ class Sema final : public SemaBase {
69866983
SourceLocation ClosingBraceLoc);
69876984

69886985
private:
6989-
ExprResult SemaBuiltinOperatorNewDeleteOverloaded(ExprResult TheCallResult,
6990-
bool IsDelete);
6986+
ExprResult BuiltinOperatorNewDeleteOverloaded(ExprResult TheCallResult,
6987+
bool IsDelete);
69916988

69926989
void AnalyzeDeleteExprMismatch(const CXXDeleteExpr *DE);
69936990
void AnalyzeDeleteExprMismatch(FieldDecl *Field, SourceLocation DeleteLoc,
@@ -13160,8 +13157,8 @@ class Sema final : public SemaBase {
1316013157

1316113158
bool CheckHLSLBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall);
1316213159

13163-
bool SemaBuiltinVectorMath(CallExpr *TheCall, QualType &Res);
13164-
bool SemaBuiltinVectorToScalarMath(CallExpr *TheCall);
13160+
bool BuiltinVectorMath(CallExpr *TheCall, QualType &Res);
13161+
bool BuiltinVectorToScalarMath(CallExpr *TheCall);
1316513162

1316613163
///@}
1316713164

0 commit comments

Comments
 (0)