[all-commits] [llvm/llvm-project] c2d9f2: [clang][CodeGen] Fix EmitInvariantStart for non-ze...

Bruno De Fraine via All-commits all-commits at lists.llvm.org
Mon Jun 17 04:30:31 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2d9f253e5a4074bb965e483cca2fe968b78693c
      https://github.com/llvm/llvm-project/commit/c2d9f253e5a4074bb965e483cca2fe968b78693c
  Author: Bruno De Fraine <brunodf at synopsys.com>
  Date:   2024-06-17 (Mon, 17 Jun 2024)

  Changed paths:
    M clang/lib/CodeGen/CGDeclCXX.cpp
    M clang/test/CodeGenCXX/init-invariant.cpp

  Log Message:
  -----------
  [clang][CodeGen] Fix EmitInvariantStart for non-zero addrspace (#94346)

The `llvm.invariant.start` intrinsic is already overloaded to work with
memory objects in any address space. We simply instantiate the intrinsic
with the appropriate pointer type.

Fixes #94345.

Co-authored-by: Vito Kortbeek <kortbeek at synopsys.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