[llvm] [SPIRV] Add reads from image buffer for shaders. (PR #115178)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 04:31:32 PST 2024


================
@@ -1005,6 +1011,13 @@ void addOpAccessChainReqs(const MachineInstr &Instr,
   }
 }
 
+static bool imageTypeHasUnknownFormat(SPIRVType *TypeInst) {
+  if (TypeInst->getOpcode() != SPIRV::OpTypeImage)
----------------
Keenuts wrote:

assert instead?

https://github.com/llvm/llvm-project/pull/115178


More information about the llvm-commits mailing list