[flang-commits] [PATCH] D135961: [flang] Add an enum attribute to carry Fortran attributes

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Oct 14 08:10:11 PDT 2022


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

Currently, Fortran attributes are mostly represented via the presence of
named attribute with special names (fir.target, fir.contiguous,
fir.optional...).

Create an enum so that these attributes can be more easily and safely
manipulated in FIR.

This patch does not add usages for it yet. It is planned to use in it in
the future HLFIR and fir.declare operations. This is added to FIR and
not HLFIR because it is intended to be used on fir.declare that will
be part of FIR, and seems also usefull for FIR operations.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135961

Files:
  flang/include/flang/Optimizer/Dialect/CMakeLists.txt
  flang/include/flang/Optimizer/Dialect/FIRAttr.h
  flang/include/flang/Optimizer/Dialect/FIRAttr.td
  flang/lib/Optimizer/Dialect/FIRAttr.cpp
  flang/test/Fir/fir-ops.fir
  flang/test/Fir/invalid.fir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135961.467780.patch
Type: text/x-patch
Size: 10596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221014/b16c0672/attachment-0001.bin>


More information about the flang-commits mailing list