[flang][OpenMP] Place the insertion point to the start of the block
authorSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Fri, 25 Sep 2020 18:25:43 +0000 (23:55 +0530)
committerSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Fri, 25 Sep 2020 18:26:41 +0000 (23:56 +0530)
commitd2f1f530430e9dbdd69c3ed173ced076f4bb933e
tree4ba353fb8de1a8c92ddf0984ab989c8fd953dd33
parent55c4ff91bd820d72014f63dcf7f3d5a0d3397986
[flang][OpenMP] Place the insertion point to the start of the block

After skeleton of the `Parallel Op` is created set the insertion point to start of the block. So that later `CodeGen` can proceed.

Note: This patch reflects the work that can be upstreamed from PR(merged)
PR: https://github.com/flang-compiler/f18-llvm-project/pull/424

Reviewed By: schweitz, kiranchandramohan

Differential Revision: https://reviews.llvm.org/D88221
flang/lib/Lower/OpenMP.cpp