[Flang][OpenMP] Correct location information 1/n
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Tue, 27 Jun 2023 20:33:50 +0000 (20:33 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Tue, 27 Jun 2023 20:34:19 +0000 (20:34 +0000)
commitf58498399ba0c32114eea809d4744ef710923346
tree55c8a00e94b1da57db5119f7a019e7f5bb771152
parentc4bd5977f429629fda2045eaf80f6ad85982f592
[Flang][OpenMP] Correct location information 1/n

This patch fixes location information of a few OpenMP constructs
and clauses. More fixes will come in follow-up patches.

This patch follows the same fixes for OpenACC (D131659).

Addresses some of the issues in https://github.com/llvm/llvm-project/issues/57215

Reviewed By: clementval

Differential Revision: https://reviews.llvm.org/D153887
flang/lib/Lower/OpenMP.cpp
flang/test/Lower/OpenMP/location.f90 [new file with mode: 0644]