Issue 202302
Summary [SPIRV] Use of `OpConvertUToPtr`/`OpConvertPtrToU` does not insert `OpCapability Addresses`/`OpCapability PhysicalStorageBufferAddresses`
Labels new issue
Assignees
Reporter thewilsonator
    Usage of LLVM instructions `inttoptr` / `ptrtoint` correctly generate `OpConvertUToPtr`/`OpConvertPtrToU` instructions but does not subsequently add `OpCapability Addresses`/`OpCapability PhysicalStorageBufferAddresses` to the list of required capabilities of the generated SPIRV module.

It would seem https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp#L1520 that switch is missing the a `case` for `OpConvertUToPtr`/`OpConvertPtrToU` to insert the appropriate `OpCapability`.

[vulkan_out_vulkan130_64.ll.txt](https://github.com/user-attachments/files/28702018/vulkan_out_vulkan130_64.ll.txt)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to