[all-commits] [llvm/llvm-project] 7c385c: [mlir][OpenMP] Generating enums in accordance with...

Shraiysh via All-commits all-commits at lists.llvm.org
Wed Mar 9 06:41:14 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c385c4b2f653d6853fe4601f02bbc7fcd60cd91
      https://github.com/llvm/llvm-project/commit/7c385c4b2f653d6853fe4601f02bbc7fcd60cd91
  Author: Shraiysh Vaishay <Shraiysh.Vaishay at amd.com>
  Date:   2022-03-09 (Wed, 09 Mar 2022)

  Changed paths:
    M flang/lib/Lower/OpenMP.cpp
    M llvm/include/llvm/Frontend/OpenMP/OMP.td
    M llvm/unittests/Frontend/OpenMPParsingTest.cpp
    M mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Dialect/OpenMP/ops.mlir
    M mlir/test/mlir-tblgen/directive-common.td
    M mlir/tools/mlir-tblgen/DirectiveCommonGen.cpp

  Log Message:
  -----------
  [mlir][OpenMP] Generating enums in accordance with the guidelines

This patch changes the enums generated from `OMP.td` for MLIR according
to the enum naming guidelines in LLVM Coding Standards.

This also helps the issues we had with `static` being a C++ keyword and
also a value for the schedule clause.

Enumerator naming guidelines: https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly

Reviewed By: kiranchandramohan

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




More information about the All-commits mailing list