[all-commits] [llvm/llvm-project] 431a82: [SPIRV] Add support for selection of G_MEMCPY_INLI...

Nick Sarnie via All-commits all-commits at lists.llvm.org
Tue Jun 9 07:07:40 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 431a821cbbb66f89d0cd7d97c6eb7792801fd90e
      https://github.com/llvm/llvm-project/commit/431a821cbbb66f89d0cd7d97c6eb7792801fd90e
  Author: Nick Sarnie <nick.sarnie at intel.com>
  Date:   2026-06-09 (Tue, 09 Jun 2026)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
    M llvm/lib/Target/SPIRV/SPIRVLegalizerInfo.cpp
    A llvm/test/CodeGen/SPIRV/llvm-intrinsics/logical-memcpy.inline.ll
    A llvm/test/CodeGen/SPIRV/llvm-intrinsics/memcpy.inline.ll

  Log Message:
  -----------
  [SPIRV] Add support for selection of G_MEMCPY_INLINE (#201925)

`G_MEMCPY_INLINE` is the same as `G_MEMCPY` but it's supposed to
guarantee the instruction will not be lowered to an external function
call. This is useful for projects like `libc`.

In SPIR-V, we would never lower to an external function call, we always
lower `G_MEMCPY` to `OpCopyMemory` or `OpCopyMemorySized`, or the copy
is optimized out, so we should be able to handle `G_MEMCPY_INLINE` and
`G_MEMCPY` the same.


Co-Authored-By: Claude Opus 4.8
[noreply at anthropic.com](mailto:noreply at anthropic.com)

Signed-off-by: Nick Sarnie <nick.sarnie at intel.com>
Co-authored-by: Claude Opus 4.8 <noreply at anthropic.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