[all-commits] [llvm/llvm-project] 7d9c38: [flang][NFC] Remove hardcoded attr name for fir.gl...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Mon Feb 12 08:56:42 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7d9c38a040d778338131fbbcc094aa412dc9306a
      https://github.com/llvm/llvm-project/commit/7d9c38a040d778338131fbbcc094aa412dc9306a
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2024-02-12 (Mon, 12 Feb 2024)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIROps.td
    M flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
    M flang/lib/Optimizer/Dialect/FIROps.cpp
    M flang/lib/Optimizer/Transforms/ArrayValueCopy.cpp

  Log Message:
  -----------
  [flang][NFC] Remove hardcoded attr name for fir.global op (#81347)

These hardcoded attribute name are a leftover from the upstreaming
period when there was no way to get the attribute name without an
instance of the operation. It is since possible to do without them and
they should be removed to avoid duplication.

This PR cleanup the fir.global op of these hardcoded attribute name and
use their generated getters. Some other PRs will follow to cleanup other
operations.




More information about the All-commits mailing list