[all-commits] [llvm/llvm-project] 0996b5: [flang] Infrastructure improvements in utility rou...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Jan 20 12:45:03 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0996b590aaafe2de8378fd45a5094c13a4de3360
      https://github.com/llvm/llvm-project/commit/0996b590aaafe2de8378fd45a5094c13a4de3360
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-01-20 (Wed, 20 Jan 2021)

  Changed paths:
    M flang/include/flang/Evaluate/call.h
    M flang/include/flang/Evaluate/tools.h
    M flang/include/flang/Evaluate/traverse.h
    M flang/lib/Evaluate/characteristics.cpp
    M flang/lib/Evaluate/tools.cpp
    M flang/lib/Semantics/tools.cpp
    M flang/test/Semantics/structconst03.f90
    M flang/test/Semantics/structconst04.f90

  Log Message:
  -----------
  [flang] Infrastructure improvements in utility routines

* IsArrayElement() needs another option to control whether it
  should ignore trailing component references.
* Add IsObjectPointer().
* Add const Scope& variants of IsFunction() and IsProcedure().
* Make TypeAndShape::Characterize() work with procedure bindings.
* Handle CHARACTER length in MeasureSizeInBytes().
* Fine-tune FindExternallyVisibleObject()'s handling of dummy arguments
  to conform with Fortran 2018: only INTENT(IN) and dummy pointers
  in pure functions signify; update two tests accordingly.

Also: resolve some stylistic inconsistencies and add a missing
"const" in the expression traversal template framework.

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




More information about the All-commits mailing list