[all-commits] [llvm/llvm-project] 875fd9: [flang] Introduce FortranVariableOpInterface for o...

jeanPerier via All-commits all-commits at lists.llvm.org
Tue Oct 18 23:58:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 875fd9df76ded4a88a3a44b690f290ea98f91705
      https://github.com/llvm/llvm-project/commit/875fd9df76ded4a88a3a44b690f290ea98f91705
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2022-10-19 (Wed, 19 Oct 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/CMakeLists.txt
    A flang/include/flang/Optimizer/Dialect/FortranVariableInterface.h
    A flang/include/flang/Optimizer/Dialect/FortranVariableInterface.td
    M flang/lib/Optimizer/Dialect/CMakeLists.txt
    A flang/lib/Optimizer/Dialect/FortranVariableInterface.cpp

  Log Message:
  -----------
  [flang] Introduce FortranVariableOpInterface for ops creating variable

HLFIR will rely on certain operations to create SSA memory values
that correspond to a Fortran variable. They will hold bounds and type
parameters information as well as metadata (like Fortran attributes).

This patch adds an interface that for such operations so that Fortran
variable can be stored, manipulated, and queried regardless of what
created them. This is so far intended for fir.declare, hlfir.designate
and hlfir.associate operations.
It is added to FIR and not HLFIR because fir.declare needs it and it
does not itself needs any HLFIR concepts.

Unit tests for the interface methods will be added alongside
fir.declare in the next patch.

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




More information about the All-commits mailing list