[flang][openacc] Propagate correct location information from directive
authorValentin Clement <clementval@gmail.com>
Thu, 11 Aug 2022 18:35:17 +0000 (20:35 +0200)
committerValentin Clement <clementval@gmail.com>
Thu, 11 Aug 2022 18:35:48 +0000 (20:35 +0200)
commitbdbf89b906e271c19dd5c5e066ee85ed476cc3a6
treedcc5accef7a9bf0c2d4e39ee7b0e92a85825c82a
parentadcd4b1c0bd43c89e579bf07daff7ffb02848012
[flang][openacc] Propagate correct location information from directive

Location information was not correctly propagated when creating OpenACC
operations. This patch propagate the correct location information from
the parse tree nodes to OpenACC MLIR operations.

Reviewed By: razvanlupusoru

Differential Revision: https://reviews.llvm.org/D131659
flang/lib/Lower/OpenACC.cpp
flang/test/Lower/OpenACC/locations.f90 [new file with mode: 0644]
flang/tools/bbc/bbc.cpp