[all-commits] [llvm/llvm-project] 1d9993: [MLIR][OpenMP] Automate operand structure definition

Sergio Afonso via All-commits all-commits at lists.llvm.org
Thu Jul 18 07:59:48 PDT 2024


  Branch: refs/heads/users/skatrak/normalize-clauses-05-tablegen
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d99939c020aab8650cd20df24e0b1e71726ae90
      https://github.com/llvm/llvm-project/commit/1d99939c020aab8650cd20df24e0b1e71726ae90
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2024-07-18 (Thu, 18 Jul 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/OpenMP/CMakeLists.txt
    M mlir/include/mlir/Dialect/OpenMP/OpenMPClauseOperands.h
    M mlir/include/mlir/IR/CommonAttrConstraints.td
    A mlir/test/mlir-tblgen/openmp-clause-ops.td
    M mlir/tools/mlir-tblgen/OmpOpGen.cpp

  Log Message:
  -----------
  [MLIR][OpenMP] Automate operand structure definition

This patch adds the "gen-openmp-clause-ops" `mlir-tblgen` generator to produce
the structure definitions previously in OpenMPClauseOperands.h automatically
from the information contained in OpenMPOps.td and OpenMPClauses.td.

Changes introduced to the `ElementsAttrBase` common tablegen class, as well as
some of its subclasses, add more fine-grained information on their shape and
type of their elements. This information is needed in order to properly
generate the corresponding types to represent these attributes within the
produced operand structures.

The original header is maintained to enable the definition of similar
structures that are not directly related to any single `OpenMP_Clause` or
`OpenMP_Op` tablegen definition.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list