[all-commits] [llvm/llvm-project] 605202: [flang] Add IsElementalProcedure() predicate

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Jul 6 18:09:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6052025b5813231505e0a656f13e6e04973a485e
      https://github.com/llvm/llvm-project/commit/6052025b5813231505e0a656f13e6e04973a485e
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-07-06 (Wed, 06 Jul 2022)

  Changed paths:
    M flang/include/flang/Evaluate/tools.h
    M flang/lib/Evaluate/call.cpp
    M flang/lib/Evaluate/tools.cpp
    M flang/lib/Semantics/check-declarations.cpp
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/symbol.cpp

  Log Message:
  -----------
  [flang] Add IsElementalProcedure() predicate

Replace most tests of the explicit Attr::ELEMENTAL symbol flag with
a new predicate IsElementalProcedure() that works correctly for alternate
ENTRY points and does the right thing for procedure interfaces that
reference elemental intrinsic functions like SIN() whose elemental
nature does not propagate.

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




More information about the All-commits mailing list