[flang][OpenMP] Lowering critical construct
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Tue, 22 Mar 2022 09:47:52 +0000 (15:17 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Tue, 22 Mar 2022 10:56:18 +0000 (16:26 +0530)
commitebec5e5c8f120ab97f4f05a68e4753508349ad3c
tree74651f3c8bb0b008177a7bc31955e527a70af406
parent5a65f0b4d9fa183fc34412232bdb7bec8b7db7fd
[flang][OpenMP] Lowering critical construct

This patch adds translation from PFT to FIR for critical construct.

This is part of the upstreaming effort from the fir-dev branch in [1].
[1] https://github.com/flang-compiler/f18-llvm-project

Co-authored-by: kiranchandramohan <kiranchandramohan@gmail.com>
Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D122218
flang/lib/Lower/OpenMP.cpp
flang/lib/Semantics/resolve-directives.cpp
flang/test/Lower/OpenMP/critical.f90 [new file with mode: 0644]