[all-commits] [llvm/llvm-project] 29aa74: [OpenMP][Flang][MLIR] Lowering of OpenMP requires ...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Thu Sep 14 02:35:15 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29aa749087be38d3e5a3a37e0b8e8ab74e9f79aa
      https://github.com/llvm/llvm-project/commit/29aa749087be38d3e5a3a37e0b8e8ab74e9f79aa
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2023-09-14 (Thu, 14 Sep 2023)

  Changed paths:
    M flang/include/flang/Lower/OpenMP.h
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/OpenMP.cpp
    A flang/test/Lower/OpenMP/Todo/requires-unnamed-common.f90
    A flang/test/Lower/OpenMP/requires-common.f90
    A flang/test/Lower/OpenMP/requires-notarget.f90
    A flang/test/Lower/OpenMP/requires.f90

  Log Message:
  -----------
  [OpenMP][Flang][MLIR] Lowering of OpenMP requires directive from parse tree to MLIR

This patch implements the lowering of the OpenMP 'requires' directive
from Flang parse tree to MLIR attributes attached to the top-level
module.

Target-related 'requires' clauses are gathered and combined for each top-level
unit during semantics. Lastly, a single module-level `omp.requires` attribute
is attached to the MLIR module with that information at the end of the process.

The `atomic_default_mem_order` clause is not addressed by this patch, but
rather it will come as a separate patch and follow a different approach.

Depends on D147214, D150328, D150329 and D157983.

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




More information about the All-commits mailing list