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

agozillon via All-commits all-commits at lists.llvm.org
Tue Jan 14 10:13:33 PST 2025


  Branch: refs/heads/users/agozillo/declare-target-to-1
  Home:   https://github.com/llvm/llvm-project
  Commit: d18c2997b8c63576821c51906be524ac42175665
      https://github.com/llvm/llvm-project/commit/d18c2997b8c63576821c51906be524ac42175665
  Author: agozillon <Andrew.Gozillon at amd.com>
  Date:   2025-01-14 (Tue, 14 Jan 2025)

  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