[flang-commits] [PATCH] D136151: [flang] Introduce FortranVariablOpInterface for ops creating variable

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Oct 18 03:08:27 PDT 2022


jeanPerier created this revision.
jeanPerier added reviewers: clementval, PeteSteinfeld.
jeanPerier added a project: Flang.
Herald added subscribers: mehdi_amini, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
jeanPerier requested review of this revision.
Herald added a reviewer: nicolasvasilache.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136151

Files:
  flang/include/flang/Optimizer/Dialect/CMakeLists.txt
  flang/include/flang/Optimizer/Dialect/FortranVariableInterface.h
  flang/include/flang/Optimizer/Dialect/FortranVariableInterface.td
  flang/lib/Optimizer/Dialect/CMakeLists.txt
  flang/lib/Optimizer/Dialect/FortranVariableInterface.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136151.468468.patch
Type: text/x-patch
Size: 7355 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221018/d71b8190/attachment.bin>


More information about the flang-commits mailing list