[all-commits] [llvm/llvm-project] 6b4427: [Flang][MLIR] Alter Fir.GlobalOp to print and lowe...

agozillon via All-commits all-commits at lists.llvm.org
Thu Apr 20 05:06:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b44274d8309c4e8daeecdcc6a14259015a3923f
      https://github.com/llvm/llvm-project/commit/6b44274d8309c4e8daeecdcc6a14259015a3923f
  Author: Andrew Gozillon <Andrew.Gozillon at amd.com>
  Date:   2023-04-20 (Thu, 20 Apr 2023)

  Changed paths:
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/lib/Optimizer/Dialect/FIROps.cpp
    A flang/test/Fir/global-attributes.fir

  Log Message:
  -----------
  [Flang][MLIR] Alter Fir.GlobalOp to print and lower external attributes

Fir.GlobalOp's currently do not respect attributes that
are applied to them, this change will do two things:

- Allow lowering of arbitrary attributes applied to
Fir.GlobalOp's to LLVMGlobalOp's during CodeGen
- Allow printing and parsing of arbitrarily applied attributes

This allows applying other dialects attributes (or other
fir attributes) to fir.GlobalOps on the fly and have them
exist in the resulting LLVM dialect IR or FIR IR.

Reviewer: jeanPerier

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




More information about the All-commits mailing list