[all-commits] [llvm/llvm-project] ac76fa: [flang] Represent TARGET for globals with 'target'...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Thu Oct 6 19:30:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac76fa480fce3302743c75798240298ea4dac374
      https://github.com/llvm/llvm-project/commit/ac76fa480fce3302743c75798240298ea4dac374
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2022-10-06 (Thu, 06 Oct 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/FIRBuilder.h
    M flang/include/flang/Optimizer/Dialect/FIROps.td
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/lib/Lower/IO.cpp
    M flang/lib/Optimizer/Builder/FIRBuilder.cpp
    M flang/lib/Optimizer/Dialect/FIROps.cpp
    M flang/test/Lower/derived-type-descriptor.f90
    M flang/test/Lower/module-single-point-of-def.f90
    A flang/test/Lower/target_definition.f90
    A flang/test/Lower/target_use.f90

  Log Message:
  -----------
  [flang] Represent TARGET for globals with 'target' attribute.

TARGET dummy arguments have fir.target attribute attached to them,
but globals do not have any sign of TARGET. This patch adds
target attribute for globals, which can be queried via
::fir::GlobalOp::getTarget().

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




More information about the All-commits mailing list