diff options
author | Deric C. <cheung.deric@gmail.com> | 2025-06-30 16:32:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-30 16:32:43 -0700 |
commit | 12409a18f609f965fbd40aba77a0b50dcdba147f (patch) | |
tree | 04fa1f3d3601a6028fe8a291d83d982bb98abb7c /llvm/lib/IR/Verifier.cpp | |
parent | 92b50959da32c23531a0138f51db97235925376e (diff) | |
download | llvm-12409a18f609f965fbd40aba77a0b50dcdba147f.zip llvm-12409a18f609f965fbd40aba77a0b50dcdba147f.tar.gz llvm-12409a18f609f965fbd40aba77a0b50dcdba147f.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
0 files changed, 0 insertions, 0 deletions