[clang] [clang][OpenMP] Place some common code in functions (PR #96811)

2024-06-27 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz closed https://github.com/llvm/llvm-project/pull/96811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][OpenMP] Place some common code in functions (PR #96811)

2024-06-26 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/96811 >From 0eea7de1769025333eaa90bd5022eebafe22996d Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 26 Jun 2024 12:15:14 -0500 Subject: [PATCH 1/4] [clang][OpenMP] Place some common code in functions T

[clang] [clang][OpenMP] Place some common code in functions (PR #96811)

2024-06-26 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. LG https://github.com/llvm/llvm-project/pull/96811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][OpenMP] Place some common code in functions (PR #96811)

2024-06-26 Thread Krzysztof Parzyszek via cfe-commits
@@ -7994,13 +8016,9 @@ void SemaOpenMP::ActOnOpenMPDeclareVariantDirective( FD->addAttr(NewAttr); } -StmtResult -SemaOpenMP::ActOnOpenMPParallelDirective(ArrayRef Clauses, - Stmt *AStmt, SourceLocation StartLoc, -

[clang] [clang][OpenMP] Place some common code in functions (PR #96811)

2024-06-26 Thread Krzysztof Parzyszek via cfe-commits
@@ -3010,6 +3010,28 @@ static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV, Expr *NumIterations, Sema &SemaRef, Scope *S, DSAStackTy *Stack); +static bool finishLinearClauses(S

[clang] [clang][OpenMP] Place some common code in functions (PR #96811)

2024-06-26 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/96811 >From 0eea7de1769025333eaa90bd5022eebafe22996d Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 26 Jun 2024 12:15:14 -0500 Subject: [PATCH 1/3] [clang][OpenMP] Place some common code in functions T

[clang] [clang][OpenMP] Place some common code in functions (PR #96811)

2024-06-26 Thread Alexey Bataev via cfe-commits
@@ -7994,13 +8016,9 @@ void SemaOpenMP::ActOnOpenMPDeclareVariantDirective( FD->addAttr(NewAttr); } -StmtResult -SemaOpenMP::ActOnOpenMPParallelDirective(ArrayRef Clauses, - Stmt *AStmt, SourceLocation StartLoc, -

[clang] [clang][OpenMP] Place some common code in functions (PR #96811)

2024-06-26 Thread Alexey Bataev via cfe-commits
@@ -3010,6 +3010,28 @@ static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV, Expr *NumIterations, Sema &SemaRef, Scope *S, DSAStackTy *Stack); +static bool finishLinearClauses(S

[clang] [clang][OpenMP] Place some common code in functions (PR #96811)

2024-06-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Krzysztof Parzyszek (kparzysz) Changes There are chunks of code repeated in a number of functions. This patch moves some of that code into individual functions. --- Patch is 75.04 KiB, truncated to 20.00 KiB below, full version: https:/

[clang] [clang][OpenMP] Place some common code in functions (PR #96811)

2024-06-26 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/96811 There are chunks of code repeated in a number of functions. This patch moves some of that code into individual functions. >From 0eea7de1769025333eaa90bd5022eebafe22996d Mon Sep 17 00:00:00 2001 From: Krzysztof