[llvm] [SPIR-V] Add lowering of ptrtoaddr (PR #184577)
Dmitry Sidorov via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 4 01:53:39 PST 2026
================
@@ -1725,6 +1727,57 @@ Instruction *SPIRVEmitIntrinsics::visitBitCastInst(BitCastInst &I) {
return NewI;
}
+Instruction *SPIRVEmitIntrinsics::visitPtrToAddrInst(PtrToAddrInst &I) {
----------------
MrSidims wrote:
@s-perron @Keenuts I'm not an expert in HLSL/GLSL, but AFAIU transformations that are added in the patch are invalid for Logical addressing. Would you like me to guard Shader (without PhysicalStorageBuffer64 capability) flow from this change or do you not expect to see `ptrtoaddr` at all at the flows you concern about?
https://github.com/llvm/llvm-project/pull/184577
More information about the llvm-commits
mailing list