[all-commits] [llvm/llvm-project] ef9341: [flang] Support for PowerPC vector type

kkwli via All-commits all-commits at lists.llvm.org
Wed May 24 10:11:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef934174704b75c8e04830bfd4f0c0bbedde9621
      https://github.com/llvm/llvm-project/commit/ef934174704b75c8e04830bfd4f0c0bbedde9621
  Author: Kelvin Li <kli at ca.ibm.com>
  Date:   2023-05-24 (Wed, 24 May 2023)

  Changed paths:
    M flang/include/flang/Common/Fortran-features.h
    M flang/include/flang/Common/Fortran.h
    M flang/include/flang/Parser/dump-parse-tree.h
    M flang/include/flang/Parser/parse-tree.h
    M flang/include/flang/Semantics/semantics.h
    M flang/include/flang/Semantics/type.h
    M flang/lib/Evaluate/type.cpp
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/CallInterface.cpp
    M flang/lib/Lower/ConvertType.cpp
    M flang/lib/Parser/Fortran-parsers.cpp
    M flang/lib/Parser/type-parsers.h
    M flang/lib/Parser/unparse.cpp
    M flang/lib/Semantics/resolve-names-utils.cpp
    M flang/lib/Semantics/resolve-names.cpp
    M flang/lib/Semantics/semantics.cpp
    A flang/module/__fortran_ppc_types.f90
    A flang/test/Lower/ppc-vector-types.f90
    A flang/test/Semantics/ppc-vector-types.f90
    M flang/tools/f18/CMakeLists.txt

  Log Message:
  -----------
  [flang] Support for PowerPC vector type

The following PowerPC vector type syntax is added:

  VECTOR ( element-type-spec )

where element-type-sec is integer-type-spec, real-type-sec or unsigned-type-spec.

Two opaque types (__VECTOR_PAIR and __VECTOR_QUAD) are also added.

A finite set of functionalities are implemented in order to support the new types:
1. declare objects
2. declare function result
3. declare type dummy arguments
4. intrinsic assignment between the new type objects (e.g. v1=v2)
5. reference functions that return the new types

Submit on behalf of @tislam @danielcchen

Authors: @tislam @danielcchen

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




More information about the All-commits mailing list