[llvm] [SPIRV] Add legalization pass for zero-size arrays (PR #172367)
Manuel Carrasco via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 23 02:53:48 PST 2025
================
@@ -0,0 +1,19 @@
+; RUN: opt -S -passes=spirv-legalize-zero-size-arrays -mtriple=spirv64-unknown-unknown < %s | FileCheck %s
----------------
mgcarrasco wrote:
@sarnex I tested the PR locally, and `llc -O0 -mtriple=spirv64-unknown-unknown` (all opt levels) and throws `LLVM ERROR: Runtime arrays are not allowed in non-shader SPIR-V modules`. Is this expected? Just checking.
https://github.com/llvm/llvm-project/pull/172367
More information about the llvm-commits
mailing list