llvm-project/clang/lib/Sema
Joel E. Denny 48ca3a5ebb [OpenMP] Extend omp teams to permit nested omp atomic
OpenMP 5.2, sec. 10.2 "teams Construct", p. 232, L9-12 restricts what
regions can be strictly nested within a `teams` construct.  This patch
relaxes Clang's enforcement of this restriction in the case of nested
`atomic` constructs unless `-fno-openmp-extensions` is specified.
Cases like the following then seem to work fine with no additional
implementation changes:

```
 #pragma omp target teams map(tofrom:x)
 #pragma omp atomic update
 x++;
```

Reviewed By: ABataev

Differential Revision: https://reviews.llvm.org/D126323
2022-05-26 14:59:16 -04:00
..
AnalysisBasedWarnings.cpp [NFC] Replace not-null and not-isa check with a not-isa_and_nonnull 2022-05-10 13:34:07 -07:00
CMakeLists.txt [clang] Make libBasic not depend on MC 2021-04-28 12:16:22 -04:00
CodeCompleteConsumer.cpp [clangd][ObjC] Filter ObjC method completions on the remaining selector 2022-05-20 11:49:16 -04:00
CoroutineStmtBuilder.h
DeclSpec.cpp Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
DelayedDiagnostic.cpp
IdentifierResolver.cpp Reland "[Clang][Sema] Fix invalid redefinition error in if/switch/for statement" 2022-04-21 01:18:58 +08:00
JumpDiagnostics.cpp [clang] Add range accessor for ObjCAtTryStmt catch_stmts and use it 2021-10-27 08:57:05 -04:00
MultiplexExternalSemaSource.cpp [clang][AST] Improve AST Reader/Writer memory footprint 2021-05-20 15:34:29 -07:00
OpenCLBuiltins.td [OpenCL] Add cl_khr_subgroup_rotate builtins 2022-05-18 13:02:17 +01:00
ParsedAttr.cpp Allow parameter pack expansions and initializer lists in annotate attribute 2022-02-08 13:38:07 -05:00
Scope.cpp Revert D119136 "[clang] Implement Change scope of lambda trailing-return-type" and its follow-up 2022-04-20 10:57:12 -07:00
ScopeInfo.cpp [clang] Disallow mixing SEH and Objective-C exceptions 2021-10-20 14:18:12 -04:00
Sema.cpp [OpenMP] Add diagnostic for unterminated 'omp [begin] declare target' 2022-05-25 10:34:07 -07:00
SemaAccess.cpp [C++2b] Implement multidimentional subscript operator 2022-02-08 12:10:47 -05:00
SemaAttr.cpp [MSVC] Add support for pragma alloc_text 2022-05-16 07:00:17 -07:00
SemaAvailability.cpp [clang] Convert a few loops to for-each 2021-10-11 14:24:32 -04:00
SemaCUDA.cpp [CUDA][HIP] Fix host used external kernel in archive 2022-04-13 10:47:16 -04:00
SemaCXXScopeSpec.cpp Revert D119136 "[clang] Implement Change scope of lambda trailing-return-type" and its follow-up 2022-04-20 10:57:12 -07:00
SemaCast.cpp [randstruct] Add randomize structure layout support 2022-04-09 13:15:36 -07:00
SemaChecking.cpp [clang] Expose CoawaitExpr's operand in the AST 2022-05-17 08:13:37 -04:00
SemaCodeComplete.cpp [libclang] add supporting for indexing/visiting C++ concepts 2022-05-24 10:02:53 -07:00
SemaConcept.cpp Revert ""Re-apply 4b6c2cd642 "Deferred Concept Instantiation Implementation""""" 2022-05-09 09:12:05 -07:00
SemaConsumer.cpp
SemaCoroutine.cpp [C++20] [Coroutines] Conform the updates for CWG issue 2585 2022-05-25 10:31:26 +08:00
SemaDecl.cpp Improve the strict prototype diagnostic behavior 2022-05-26 08:35:56 -04:00
SemaDeclAttr.cpp [amdgpu] Add amdgpu_kernel calling conv attribute to clang 2022-05-20 08:50:37 +01:00
SemaDeclCXX.cpp C++ DR2394: Const-default-constructible for members. 2022-05-25 14:20:11 -04:00
SemaDeclObjC.cpp [clang][NFC] In parts of Objective-C Sema use Obj-C-specific types instead of `Decl`. 2022-05-05 19:19:41 -07:00
SemaExceptionSpec.cpp [OpenMP] Initial parsing/sema for the 'omp target parallel loop' construct 2022-03-24 09:19:00 -07:00
SemaExpr.cpp Use the canonical type when matching a generic selection association 2022-05-26 07:42:13 -04:00
SemaExprCXX.cpp [clang][AArch64][SVE] Implement conditional operator for SVE vectors 2022-05-03 13:10:32 +00:00
SemaExprMember.cpp Add some helpers to better check Scope's kind. NFC 2022-04-16 11:31:40 +08:00
SemaExprObjC.cpp [clang] Fix bugprone argument comments (NFC) 2022-01-09 00:19:49 -08:00
SemaFixItUtils.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
SemaInit.cpp [randstruct] Move initializer check to be more effective 2022-05-03 11:23:12 -07:00
SemaLambda.cpp Revert D119136 "[clang] Implement Change scope of lambda trailing-return-type" and its follow-up 2022-04-20 10:57:12 -07:00
SemaLookup.cpp [NFC] follow up code cleanup after D123837 2022-05-10 10:01:06 +08:00
SemaModule.cpp [C++20][Modules] Remove an empty statement [NFC]. 2022-04-11 10:06:23 +01:00
SemaObjCProperty.cpp [Clang][Sema] Fix attribute mismatch warning for ObjC class properties 2022-01-11 12:10:18 +00:00
SemaOpenMP.cpp [OpenMP] Extend omp teams to permit nested omp atomic 2022-05-26 14:59:16 -04:00
SemaOverload.cpp Revert ""Re-apply 4b6c2cd642 "Deferred Concept Instantiation Implementation""""" 2022-05-09 09:12:05 -07:00
SemaPseudoObject.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
SemaSYCL.cpp [SYCL] Diagnose uses of zero length arrays 2021-12-29 15:30:18 +03:00
SemaStmt.cpp Fix some places where PseudoObjectExpr handling assumed that a 2022-05-03 11:55:14 -07:00
SemaStmtAsm.cpp [Inline-asm] Add diagnosts for unsupported inline assembly arguments 2022-03-23 11:25:19 +08:00
SemaStmtAttr.cpp [clang][parse] Move source range into ParsedAttibutesView 2022-03-24 08:11:57 +01:00
SemaTemplate.cpp [PS5] Allow dllimport/dllexport same as PS4 2022-05-26 07:01:30 -07:00
SemaTemplateDeduction.cpp Revert ""Re-apply 4b6c2cd642 "Deferred Concept Instantiation Implementation""""" 2022-05-09 09:12:05 -07:00
SemaTemplateInstantiate.cpp Revert ""Re-apply 4b6c2cd642 "Deferred Concept Instantiation Implementation""""" 2022-05-09 09:12:05 -07:00
SemaTemplateInstantiateDecl.cpp Revert ""Re-apply 4b6c2cd642 "Deferred Concept Instantiation Implementation""""" 2022-05-09 09:12:05 -07:00
SemaTemplateVariadic.cpp Use range based for loop in Sema::CheckParameterPacksForExpansion. NFC 2022-04-22 13:31:31 +08:00
SemaType.cpp [amdgpu] Add amdgpu_kernel calling conv attribute to clang 2022-05-20 08:50:37 +01:00
TreeTransform.h Revert "[OpenMP] atomic compare fail : Parser & AST support" 2022-05-25 13:34:34 -04:00
TypeLocBuilder.cpp
TypeLocBuilder.h
UsedDeclVisitor.h [HIP][OpenMP] Fix assertion in deferred diag 2021-10-25 11:07:40 -04:00