-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problems with OpCopyMemory #2769
Comments
21 tasks
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 21, 2024
The asserts should be checking the `Target` member variable; `Id` is not used for this class. Only fix the wrong asserts for now; proper handling and testing of `OpCopyMemory` will be done in a followup commit. Contributes to KhronosGroup#2769
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 21, 2024
The asserts should be checking the `Target` member variable; `Id` is not used for this class. Only fix the wrong asserts for now; proper handling and testing of `OpCopyMemory` will be done in a followup commit. Contributes to KhronosGroup#2769
svenvh
added a commit
that referenced
this issue
Oct 22, 2024
The asserts should be checking the `Target` member variable; `Id` is not used for this class. Only fix the wrong asserts for now; proper handling and testing of `OpCopyMemory` will be done in a followup commit. Contributes to #2769
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 22, 2024
Add support for translating `OpCopyMemory` into `llvm.memcpy`. Fixes KhronosGroup#2769
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 22, 2024
Add support for translating `OpCopyMemory` into `llvm.memcpy`. Fixes KhronosGroup#2769
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 25, 2024
The asserts should be checking the `Target` member variable; `Id` is not used for this class. Only fix the wrong asserts for now; proper handling and testing of `OpCopyMemory` will be done in a followup commit. Contributes to KhronosGroup#2769 (cherry picked from commit 9d2926d)
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 25, 2024
The asserts should be checking the `Target` member variable; `Id` is not used for this class. Only fix the wrong asserts for now; proper handling and testing of `OpCopyMemory` will be done in a followup commit. Contributes to KhronosGroup#2769 (cherry picked from commit 9d2926d)
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 25, 2024
The asserts should be checking the `Target` member variable; `Id` is not used for this class. Only fix the wrong asserts for now; proper handling and testing of `OpCopyMemory` will be done in a followup commit. Contributes to KhronosGroup#2769 (cherry picked from commit 9d2926d)
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 25, 2024
The asserts should be checking the `Target` member variable; `Id` is not used for this class. Only fix the wrong asserts for now; proper handling and testing of `OpCopyMemory` will be done in a followup commit. Contributes to KhronosGroup#2769 (cherry picked from commit 9d2926d)
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 25, 2024
The asserts should be checking the `Target` member variable; `Id` is not used for this class. Only fix the wrong asserts for now; proper handling and testing of `OpCopyMemory` will be done in a followup commit. Contributes to KhronosGroup#2769 (cherry picked from commit 9d2926d)
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 25, 2024
The asserts should be checking the `Target` member variable; `Id` is not used for this class. Only fix the wrong asserts for now; proper handling and testing of `OpCopyMemory` will be done in a followup commit. Contributes to KhronosGroup#2769 (cherry picked from commit 9d2926d)
svenvh
added a commit
that referenced
this issue
Oct 28, 2024
Add support for translating `OpCopyMemory` into `llvm.memcpy`. Fixes #2769
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 28, 2024
…2779) Add support for translating `OpCopyMemory` into `llvm.memcpy`. Fixes KhronosGroup#2769 (cherry picked from commit 8dc0349)
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 28, 2024
…2779) Add support for translating `OpCopyMemory` into `llvm.memcpy`. Fixes KhronosGroup#2769 (cherry picked from commit 8dc0349)
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 28, 2024
…2779) Add support for translating `OpCopyMemory` into `llvm.memcpy`. Fixes KhronosGroup#2769 (cherry picked from commit 8dc0349)
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 28, 2024
…2779) Add support for translating `OpCopyMemory` into `llvm.memcpy`. Fixes KhronosGroup#2769 (cherry picked from commit 8dc0349)
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 28, 2024
…2779) Add support for translating `OpCopyMemory` into `llvm.memcpy`. Fixes KhronosGroup#2769 (cherry picked from commit 8dc0349)
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 28, 2024
…2779) Add support for translating `OpCopyMemory` into `llvm.memcpy`. Fixes KhronosGroup#2769 (cherry picked from commit 8dc0349)
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Oct 28, 2024
…2779) Add support for translating `OpCopyMemory` into `llvm.memcpy`. Fixes KhronosGroup#2769 (cherry picked from commit 8dc0349)
svenvh
added a commit
that referenced
this issue
Oct 30, 2024
svenvh
added a commit
that referenced
this issue
Oct 30, 2024
svenvh
added a commit
that referenced
this issue
Oct 30, 2024
svenvh
added a commit
that referenced
this issue
Oct 30, 2024
svenvh
added a commit
that referenced
this issue
Oct 30, 2024
svenvh
added a commit
that referenced
this issue
Oct 30, 2024
jsji
pushed a commit
to intel/llvm
that referenced
this issue
Nov 7, 2024
The asserts should be checking the `Target` member variable; `Id` is not used for this class. Only fix the wrong asserts for now; proper handling and testing of `OpCopyMemory` will be done in a followup commit. Contributes to KhronosGroup/SPIRV-LLVM-Translator#2769 Original commit: KhronosGroup/SPIRV-LLVM-Translator@9d2926d27b478f0
jsji
pushed a commit
to intel/llvm
that referenced
this issue
Nov 7, 2024
Add support for translating `OpCopyMemory` into `llvm.memcpy`. Fixes KhronosGroup/SPIRV-LLVM-Translator#2769 Original commit: KhronosGroup/SPIRV-LLVM-Translator@8dc0349c0860172
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reverse translation (from SPIR-V to LLVM) does not appear to be working propery for
OpCopyMemory
. Note thatOpCopyMemorySized
is working correctly, and there do not appear to be any tests forOpCopyMemory
.I am encountering two problems with the following tester (note: this is an except of a test for the SPIR-V 1.4 feature where
OpCopyMemor
y can accept two optional memory operands):The asserts are incorrect in
SPIRV::SPIRVCopyMemory::validate
, because they are checkingId
, but this instruction does not set anId
. This one is pretty easy to fix - something like:There is no special handling for
OpCopyMemory
(there is forOpCopyMemorySized
), so translatingOpCopyMemory
falls into the defaulttransSPIRVBuiltinFromInst
, which does not work properly. I suspect thatOpCopyMemory
should be lowered into a call tollvm.memcpy
, similar toOpCopyMemorySized
, but the size will be dependent on the pointed-to types vs. provided explicitly.Once these problems are fixed we should add some tests for
OpCopyMemory
also.The text was updated successfully, but these errors were encountered: