diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2019-03-12 18:52:33 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-03-12 18:52:33 +0000 |
commit | 9cc10fc926526139559a88d1ac2b13f563cba7f3 (patch) | |
tree | b75e2a82a4ab49ebd2f0eec49ff43ed33bafa748 /clang/lib/AST/StmtProfile.cpp | |
parent | 85c2955f455ef12fc2c466b98794f9606684d070 (diff) | |
download | bcm5719-llvm-9cc10fc926526139559a88d1ac2b13f563cba7f3.tar.gz bcm5719-llvm-9cc10fc926526139559a88d1ac2b13f563cba7f3.zip |
[OPENMP 5.0]Initial support for 'allocator' clause.
Added parsing/sema analysis/serialization/deserialization for the
'allocator' clause of the 'allocate' directive.
llvm-svn: 355952
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r-- | clang/lib/AST/StmtProfile.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index c064ea90a26..53655a18f91 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -457,6 +457,11 @@ void OMPClauseProfiler::VisitOMPSimdlenClause(const OMPSimdlenClause *C) { Profiler->VisitStmt(C->getSimdlen()); } +void OMPClauseProfiler::VisitOMPAllocatorClause(const OMPAllocatorClause *C) { + if (C->getAllocator()) + Profiler->VisitStmt(C->getAllocator()); +} + void OMPClauseProfiler::VisitOMPCollapseClause(const OMPCollapseClause *C) { if (C->getNumForLoops()) Profiler->VisitStmt(C->getNumForLoops()); |