[all-commits] [llvm/llvm-project] 9e3730: [flang][NFC] Simplify mapSymbolAttributes in symbo...

jeanPerier via All-commits all-commits at lists.llvm.org
Tue Oct 18 02:11:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e37301cf483237695325e199393ba5a84b7fc1e
      https://github.com/llvm/llvm-project/commit/9e37301cf483237695325e199393ba5a84b7fc1e
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/test/Lower/HLFIR/expr-addr.f90
    M flang/test/Lower/HLFIR/expr-box.f90

  Log Message:
  -----------
  [flang][NFC] Simplify mapSymbolAttributes in symbol lowering

mapSymbolAttributes currently has a lot of very similar code for
each kind of explicit shape and scalar symbols.

Refactor it so that the change to lower symbols with fir.declare
can be added in centralized places instead of being scattered.
This is a preparation patch and fir.declare is not yet added.

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




More information about the All-commits mailing list