[all-commits] [llvm/llvm-project] 52711f: [flang] Make builtin types more easily accessible; ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Sep 29 13:06:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 52711fb8da1b0151f09c41bce1a3f0b5689ff87a
      https://github.com/llvm/llvm-project/commit/52711fb8da1b0151f09c41bce1a3f0b5689ff87a
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-09-29 (Wed, 29 Sep 2021)

  Changed paths:
    M flang/include/flang/Evaluate/intrinsics.h
    M flang/include/flang/Evaluate/tools.h
    M flang/include/flang/Evaluate/variable.h
    M flang/include/flang/Semantics/semantics.h
    M flang/include/flang/Semantics/tools.h
    M flang/lib/Evaluate/intrinsics.cpp
    M flang/lib/Evaluate/tools.cpp
    M flang/lib/Semantics/check-declarations.cpp
    M flang/lib/Semantics/expression.cpp
    M flang/lib/Semantics/mod-file.cpp
    M flang/lib/Semantics/mod-file.h
    M flang/lib/Semantics/resolve-names.cpp
    M flang/lib/Semantics/runtime-type-info.cpp
    M flang/lib/Semantics/semantics.cpp
    M flang/lib/Semantics/tools.cpp
    M flang/module/__fortran_builtins.f90
    M flang/module/__fortran_type_info.f90
    M flang/test/Semantics/misc-declarations.f90
    M flang/test/Semantics/resolve88.f90
    M flang/test/Semantics/this_image.f90
    M flang/tools/f18/CMakeLists.txt

  Log Message:
  -----------
  [flang] Make builtin types more easily accessible; use them

Rearrange the contents of __builtin_* module files a little and
make sure that semantics implicitly USEs the module __Fortran_builtins
before processing each source file.  This ensures that the special derived
types for TEAM_TYPE, EVENT_TYPE, LOCK_TYPE, &c. exist in the symbol table
where they will be available for use in coarray intrinsic function
processing.

Update IsTeamType() to exploit access to the __Fortran_builtins
module rather than applying ad hoc name tests.  Move it and some
other utilities from Semantics/tools.* to Evaluate/tools.* to make
them available to intrinsics processing.

Add/correct the intrinsic table definitions for GET_TEAM, TEAM_NUMBER,
and THIS_IMAGE to exercise the built-in TEAM_TYPE as an argument and
as a result.

Add/correct/extend tests accordingly.

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




More information about the All-commits mailing list