[llvm] [SPIRV][NFC] Refactor pointer creation in GlobalRegistery (PR #134429)

Steven Perron via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 7 07:36:12 PDT 2025


================
@@ -54,6 +54,40 @@ static unsigned typeToAddressSpace(const Type *Ty) {
   report_fatal_error("Unable to convert LLVM type to SPIRVType", true);
 }
 
+static bool
+storageClassRequiresExplictLayout(SPIRV::StorageClass::StorageClass SC) {
+  switch (SC) {
+  case SPIRV::StorageClass::Uniform:
+  case SPIRV::StorageClass::PushConstant:
+  case SPIRV::StorageClass::StorageBuffer:
+    // case SPIRV::StorageClass::PhysicalStorageBuffer:
----------------
s-perron wrote:

It is there with and `EXT`. I've fixed it.

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


More information about the llvm-commits mailing list