[all-commits] [llvm/llvm-project] b2ecee: [flang][OpenMP] Lowering support for atomic capture

NimishMishra via All-commits all-commits at lists.llvm.org
Wed May 3 21:48:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b2eceea3929ef18c9b04507d96c1ae6a56568c75
      https://github.com/llvm/llvm-project/commit/b2eceea3929ef18c9b04507d96c1ae6a56568c75
  Author: Nimish Mishra <neelam.nimish at gmail.com>
  Date:   2023-05-04 (Thu, 04 May 2023)

  Changed paths:
    M flang/lib/Lower/OpenMP.cpp
    A flang/test/Lower/OpenMP/atomic-capture.f90

  Log Message:
  -----------
  [flang][OpenMP] Lowering support for atomic capture

This patch adds lowering support for atomic capture operation. First is
created a region (without any operand) for the atomic capture operation.
Then based on one of the following configurations...

	1. [update-stmt, capture-stmt]
	2. [capture-stmt, update-stmt]
	3. [capture-stmt, write-stmt]
... the lowering proceeds by creating these individual operations inside
the atomic capture's region.

Differential Revision: https://reviews.llvm.org/D127272

Reviewed By: kiranchandramohan




More information about the All-commits mailing list