Home
last modified time | relevance | path

Searched refs:ReturnLoc (Results 1 – 17 of 17) sorted by relevance

/external/llvm/lib/Target/X86/
DX86PadShortFunction.cpp135 MachineBasicBlock::iterator ReturnLoc = --MBB->end(); in runOnMachineFunction() local
137 while (ReturnLoc->isDebugValue()) in runOnMachineFunction()
138 --ReturnLoc; in runOnMachineFunction()
139 assert(ReturnLoc->isReturn() && !ReturnLoc->isCall() && in runOnMachineFunction()
142 addPadding(MBB, ReturnLoc, Threshold - Cycles); in runOnMachineFunction()
/external/llvm-project/llvm/lib/Target/X86/
DX86PadShortFunction.cpp147 MachineBasicBlock::iterator ReturnLoc = --MBB->end(); in runOnMachineFunction() local
149 while (ReturnLoc->isDebugInstr()) in runOnMachineFunction()
150 --ReturnLoc; in runOnMachineFunction()
151 assert(ReturnLoc->isReturn() && !ReturnLoc->isCall() && in runOnMachineFunction()
154 addPadding(MBB, ReturnLoc, Threshold - Cycles); in runOnMachineFunction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86PadShortFunction.cpp146 MachineBasicBlock::iterator ReturnLoc = --MBB->end(); in runOnMachineFunction() local
148 while (ReturnLoc->isDebugInstr()) in runOnMachineFunction()
149 --ReturnLoc; in runOnMachineFunction()
150 assert(ReturnLoc->isReturn() && !ReturnLoc->isCall() && in runOnMachineFunction()
153 addPadding(MBB, ReturnLoc, Threshold - Cycles); in runOnMachineFunction()
/external/clang/lib/Sema/
DSemaStmt.cpp2860 Sema::ActOnCapScopeReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp) { in ActOnCapScopeReturnStmt() argument
2872 ExprResult ER = ActOnFinishFullExpr(RetValExp, ReturnLoc); in ActOnCapScopeReturnStmt()
2877 return new (Context) ReturnStmt(ReturnLoc, RetValExp, nullptr); in ActOnCapScopeReturnStmt()
2889 if (DeduceFunctionTypeFromReturnExpr(FD, ReturnLoc, RetValExp, AT)) { in ActOnCapScopeReturnStmt()
2918 Diag(ReturnLoc, diag::err_lambda_return_init_list) in ActOnCapScopeReturnStmt()
2934 Diag(ReturnLoc, diag::err_noreturn_block_has_return_expr); in ActOnCapScopeReturnStmt()
2939 Diag(ReturnLoc, diag::err_return_in_captured_stmt) << CurRegion->getRegionName(); in ActOnCapScopeReturnStmt()
2945 Diag(ReturnLoc, diag::err_noreturn_lambda_has_return_expr); in ActOnCapScopeReturnStmt()
2964 Diag(ReturnLoc, diag::ext_return_has_void_expr) << "literal" << 2; in ActOnCapScopeReturnStmt()
2966 Diag(ReturnLoc, diag::err_return_block_has_expr); in ActOnCapScopeReturnStmt()
[all …]
DSemaChecking.cpp6505 SourceLocation ReturnLoc) { in CheckReturnStackAddr() argument
6889 SourceLocation ReturnLoc, in CheckReturnValExpr() argument
6893 CheckReturnStackAddr(*this, RetValExp, lhsType, ReturnLoc); in CheckReturnValExpr()
6899 Diag(ReturnLoc, diag::warn_null_ret) in CheckReturnValExpr()
6914 Diag(ReturnLoc, diag::warn_operator_new_returns_null) in CheckReturnValExpr()
DTreeTransform.h1256 StmtResult RebuildReturnStmt(SourceLocation ReturnLoc, Expr *Result) { in RebuildReturnStmt() argument
1257 return getSema().BuildReturnStmt(ReturnLoc, Result); in RebuildReturnStmt()
/external/llvm-project/clang/lib/Sema/
DSemaStmt.cpp3306 Sema::ActOnCapScopeReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp) { in ActOnCapScopeReturnStmt() argument
3320 ActOnFinishFullExpr(RetValExp, ReturnLoc, /*DiscardedValue*/ false); in ActOnCapScopeReturnStmt()
3325 return ReturnStmt::Create(Context, ReturnLoc, RetValExp, in ActOnCapScopeReturnStmt()
3343 if (DeduceFunctionTypeFromReturnExpr(FD, ReturnLoc, RetValExp, AT)) { in ActOnCapScopeReturnStmt()
3373 Diag(ReturnLoc, diag::err_lambda_return_init_list) in ActOnCapScopeReturnStmt()
3389 Diag(ReturnLoc, diag::err_noreturn_block_has_return_expr); in ActOnCapScopeReturnStmt()
3393 Diag(ReturnLoc, diag::err_return_in_captured_stmt) << CurRegion->getRegionName(); in ActOnCapScopeReturnStmt()
3400 Diag(ReturnLoc, diag::err_noreturn_lambda_has_return_expr); in ActOnCapScopeReturnStmt()
3419 Diag(ReturnLoc, diag::ext_return_has_void_expr) << "literal" << 2; in ActOnCapScopeReturnStmt()
3421 Diag(ReturnLoc, diag::err_return_block_has_expr); in ActOnCapScopeReturnStmt()
[all …]
DSemaChecking.cpp10310 SourceLocation ReturnLoc, in CheckReturnValExpr() argument
10318 Diag(ReturnLoc, diag::warn_null_ret) in CheckReturnValExpr()
10333 Diag(ReturnLoc, diag::warn_operator_new_returns_null) in CheckReturnValExpr()
10341 CheckPPCMMAType(RetValExp->getType(), ReturnLoc); in CheckReturnValExpr()
DTreeTransform.h1407 StmtResult RebuildReturnStmt(SourceLocation ReturnLoc, Expr *Result) { in RebuildReturnStmt() argument
1408 return getSema().BuildReturnStmt(ReturnLoc, Result); in RebuildReturnStmt()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseTrailingReturnTypeCheck.cpp269 const FunctionDecl &F, const TypeLoc &ReturnLoc, const ASTContext &Ctx, in findReturnTypeAndCVSourceRange() argument
287 auto ATL = ReturnLoc.getAs<AutoTypeLoc>(); in findReturnTypeAndCVSourceRange()
290 ReturnLoc.getAs<DecltypeTypeLoc>()) { in findReturnTypeAndCVSourceRange()
292 expandIfMacroId(ReturnLoc.getSourceRange().getEnd(), SM); in findReturnTypeAndCVSourceRange()
DUseTrailingReturnTypeCheck.h53 const TypeLoc &ReturnLoc,
/external/llvm-project/clang/include/clang/Sema/
DInitialization.h300 static InitializedEntity InitializeResult(SourceLocation ReturnLoc, in InitializeResult() argument
302 return InitializedEntity(EK_Result, ReturnLoc, Type, NRVO); in InitializeResult()
305 static InitializedEntity InitializeStmtExprResult(SourceLocation ReturnLoc, in InitializeStmtExprResult() argument
307 return InitializedEntity(EK_StmtExprResult, ReturnLoc, Type); in InitializeStmtExprResult()
DSema.h4623 StmtResult ActOnReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp,
4625 StmtResult BuildReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp);
4626 StmtResult ActOnCapScopeReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp);
8340 SourceLocation ReturnLoc,
12360 SourceLocation ReturnLoc,
/external/clang/include/clang/Sema/
DInitialization.h241 static InitializedEntity InitializeResult(SourceLocation ReturnLoc, in InitializeResult() argument
243 return InitializedEntity(EK_Result, ReturnLoc, Type, NRVO); in InitializeResult()
DSema.h3484 StmtResult ActOnReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp,
3486 StmtResult BuildReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp);
3487 StmtResult ActOnCapScopeReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp);
6552 SourceLocation ReturnLoc,
9455 SourceLocation ReturnLoc,
/external/clang/lib/Parse/
DParseStmt.cpp1875 SourceLocation ReturnLoc = ConsumeToken(); // eat the 'return'. in ParseReturnStatement() local
1901 return Actions.ActOnCoreturnStmt(ReturnLoc, R.get()); in ParseReturnStatement()
1902 return Actions.ActOnReturnStmt(ReturnLoc, R.get(), getCurScope()); in ParseReturnStatement()
/external/llvm-project/clang/lib/Parse/
DParseStmt.cpp2172 SourceLocation ReturnLoc = ConsumeToken(); // eat the 'return'. in ParseReturnStatement() local
2202 return Actions.ActOnCoreturnStmt(getCurScope(), ReturnLoc, R.get()); in ParseReturnStatement()
2203 return Actions.ActOnReturnStmt(ReturnLoc, R.get(), getCurScope()); in ParseReturnStatement()