[all-commits] [llvm/llvm-project] b6328d: [clang][CodeGen] Put constant initializer globals ...

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Thu May 2 02:44:17 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b6328db80b4294cf83a3471ecdfab33003fa742d
      https://github.com/llvm/llvm-project/commit/b6328db80b4294cf83a3471ecdfab33003fa742d
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2024-05-02 (Thu, 02 May 2024)

  Changed paths:
    M clang/lib/CodeGen/CGExprAgg.cpp
    M clang/test/CodeGenOpenCLCXX/addrspace-with-class.clcpp

  Log Message:
  -----------
  [clang][CodeGen] Put constant initializer globals into constant addrspace (#90048)

Place constant initializer globals into the constant address space.
Clang generates such globals for e.g. larger array member initializers
of classes and then emits copy operations from the global to the
object(s). The globals are never written so they ought to be in the
constant address space.



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