[OpenMP] Improve mappable expressions Sema.
Summary: This patch adds logic to save the components of mappable expressions in the clause that uses it, so that they don't have to be recomputed during codegen. Given that the mappable components are (will be) used in several clauses a new geneneric implementation `OMPMappableExprListClause` is used that extends the existing `OMPVarListClause`. This patch does not add new tests. The goal is to preserve the existing functionality while storing more info in the clauses. Reviewers: hfinkel, carlo.bertolli, arpith-jacob, kkwli0, ABataev Subscribers: cfe-commits, caomhin Differential Revision: http://reviews.llvm.org/D19382 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267560 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/OpenMPClause.h 550 additions, 18 deletionsinclude/clang/AST/OpenMPClause.h
- lib/AST/OpenMPClause.cpp 68 additions, 15 deletionslib/AST/OpenMPClause.cpp
- lib/Sema/SemaOpenMP.cpp 141 additions, 129 deletionslib/Sema/SemaOpenMP.cpp
- lib/Serialization/ASTReaderStmt.cpp 43 additions, 4 deletionslib/Serialization/ASTReaderStmt.cpp
- lib/Serialization/ASTWriterStmt.cpp 15 additions, 2 deletionslib/Serialization/ASTWriterStmt.cpp
Loading
Please register or sign in to comment