[all-commits] [llvm/llvm-project] 275728: [Flang][OpenMP] Add global address space to global...

agozillon via All-commits all-commits at lists.llvm.org
Wed Dec 11 08:45:39 PST 2024


  Branch: refs/heads/users/agozillo/declare-target-to-1
  Home:   https://github.com/llvm/llvm-project
  Commit: 2757285aed23d85b31eb50d1f328fbe2d6878adb
      https://github.com/llvm/llvm-project/commit/2757285aed23d85b31eb50d1f328fbe2d6878adb
  Author: agozillon <Andrew.Gozillon at amd.com>
  Date:   2024-12-11 (Wed, 11 Dec 2024)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/FIRBuilder.h
    M flang/include/flang/Optimizer/CodeGen/FIROpPatterns.h
    M flang/lib/Optimizer/Builder/FIRBuilder.cpp
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/lib/Optimizer/CodeGen/FIROpPatterns.cpp
    M flang/test/Fir/convert-to-llvm.fir
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

  Log Message:
  -----------
  [Flang][OpenMP] Add global address space to globals for target device

Currently we do not add the appropriate global address space to globals on the target device
pass, this PR attempts to add at least a preliminary number of these address spaces markings
and then add the appropriate casts where neccesary (from global to program primarily).

This allows for more correct IR that the backends (in particular AMDGPU) can treat more
aptly for optimisations and code correctness.

Co-authored-by: Raghu Maddhipatla <raghu.maddhipatla at amd.com>



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