[all-commits] [llvm/llvm-project] 12409a: [DirectX] Implement `memcpy` in DXIL CBuffer Acces...

Deric C. via All-commits all-commits at lists.llvm.org
Mon Jun 30 16:33:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12409a18f609f965fbd40aba77a0b50dcdba147f
      https://github.com/llvm/llvm-project/commit/12409a18f609f965fbd40aba77a0b50dcdba147f
  Author: Deric C. <cheung.deric at gmail.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M llvm/lib/Target/DirectX/DXILCBufferAccess.cpp
    A llvm/test/CodeGen/DirectX/CBufferAccess/memcpy.ll

  Log Message:
  -----------
  [DirectX] Implement `memcpy` in DXIL CBuffer Access pass  (#144436)

Fixes #141840

This PR implements support for the `memcpy` intrinsic in the DXIL
CBuffer Access pass with the following restrictions:

- The CBuffer Access must be the `src` operand of `memcpy` and must be
direct (i.e., not a GEP)
- The type of the CBuffer Access must be of an Array Type

These restrictions greatly simplify the implementation of `memcpy` yet
still covers the known uses in DML shaders.

Furthermore, to prevent errors like #141840 from occurring silently
again, this PR adds error reporting for unsupported users of globals in
the DXIL CBuffer Access pass.



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