summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtProfile.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-03-12 18:52:33 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-03-12 18:52:33 +0000
commit9cc10fc926526139559a88d1ac2b13f563cba7f3 (patch)
treeb75e2a82a4ab49ebd2f0eec49ff43ed33bafa748 /clang/lib/AST/StmtProfile.cpp
parent85c2955f455ef12fc2c466b98794f9606684d070 (diff)
downloadbcm5719-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.cpp5
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());
OpenPOWER on IntegriCloud