[all-commits] [llvm/llvm-project] aa3875: [RFC][flang] Add support for assumed-shape dummy a...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Mon Mar 10 11:08:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aa3875411746de0a24a8de0d40def711cd70153d
      https://github.com/llvm/llvm-project/commit/aa3875411746de0a24a8de0d40def711cd70153d
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2025-03-10 (Mon, 10 Mar 2025)

  Changed paths:
    A flang/docs/ArrayRepacking.md
    M flang/docs/index.md

  Log Message:
  -----------
  [RFC][flang] Add support for assumed-shape dummy arrays repacking. (#127147)

This is a document describing why and how to add support for repacking
of assumed-shape dummy arrrays to provide more efficient data cache.
It proposes adding new FIR operations and outlines the compiler flow
handling these operations.
I would like to hear feedback on all of it, but especially on:
  * The possibility of detecting safeness of the repacking
    in the context of OpenACC/OpenMP. If it is not possible
    to do the runtime checks to determine safety, then
    there is not need to add the `TempCopyIsSafe` attributes
    to the instruction.
  * Whether it is possible to preserve the debug information
    in cases where `fir.pack_array` is sunk after `[hl]fir.declare`,
    so that before the `fir.pack_array` a debugger will refer
    to the values in the original array, and after `fir.pack_array`
    it will refer to the copy.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list