[all-commits] [llvm/llvm-project] 14072b: [flang][OpenMP] General utility to get directive i...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Tue Jul 22 14:51:26 PDT 2025


  Branch: refs/heads/users/kparzysz/get-directive-name
  Home:   https://github.com/llvm/llvm-project
  Commit: 14072b0560cde74fda94a1f434b6cfd43b77939b
      https://github.com/llvm/llvm-project/commit/14072b0560cde74fda94a1f434b6cfd43b77939b
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2025-07-22 (Tue, 22 Jul 2025)

  Changed paths:
    A flang/include/flang/Parser/openmp-utils.h
    M flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
    M flang/lib/Lower/OpenMP/OpenMP.cpp
    M flang/lib/Lower/OpenMP/Utils.cpp
    M flang/lib/Lower/OpenMP/Utils.h

  Log Message:
  -----------
  [flang][OpenMP] General utility to get directive id from AST node

Fortran::parser::omp::GetOmpDirectiveName(t) will get the OmpDirectiveName
object that corresponds to construct t. That object (an AST node) contains
the enum id and the source information of the directive.

Replace uses of extractOmpDirective and getOpenMPDirectiveEnum with the
new function.



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