diff options
author | cchen <cchen@cray.com> | 2020-02-28 14:37:14 -0500 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2020-02-28 15:07:32 -0500 |
commit | 6ee6fa28a74e9b33475a153f35b169f0c83a6ec6 (patch) | |
tree | 3a480a2b071ee81d3b8691f1874c22bf5110c636 /llvm/lib/ProfileData/Coverage/CoverageMappingWriter.cpp | |
parent | c767dc9394b4cca26c3eb40f1270092594e539c2 (diff) | |
download | llvm-6ee6fa28a74e9b33475a153f35b169f0c83a6ec6.zip llvm-6ee6fa28a74e9b33475a153f35b169f0c83a6ec6.tar.gz llvm-6ee6fa28a74e9b33475a153f35b169f0c83a6ec6.tar.bz2 |
[OpenMP5.0] Allow pointer arithmetic in motion/map clause, by Chi Chun
Chen
Summary:
Base declaration in pointer arithmetic expression is determined by
binary search with type information. Take "int *a, *b; *(a+*b)" as an
example, we determine the base by checking the type of LHS and RHS. In
this case the type of LHS is "int *", the type of RHS is "int",
therefore, we know that we need to visit LHS in order to find base
declaration.
Reviewers: ABataev, jdoerfert
Reviewed By: ABataev
Subscribers: guansong, cfe-commits, sandoval, dreachem
Tags: #clang
Differential Revision: https://reviews.llvm.org/D75077
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMappingWriter.cpp')
0 files changed, 0 insertions, 0 deletions