Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[spirv] Fix generating array type in SPIR-V (taichi-dev#7863)
Issue: fixes taichi-dev#7855 ### Brief Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 8f35995</samp> Fix array size encoding bug in SPIR-V backend. Use `int_immediate_number` to create SPIR-V constants for array types in `spirv_types.cpp`. ### Walkthrough <!-- copilot:walkthrough --> ### <samp>🤖 Generated by Copilot at 8f35995</samp> * Fix a bug where array size was not encoded as a SPIR-V constant ([link](https://github.com/taichi-dev/taichi/pull/7863/files?diff=unified&w=0#diff-259a89b8645aab6065eac94864cd4930be7ae91da5cb2e15307ae5fa41015962L456-R459)) * Use `int_immediate_number` to create a constant operand for `OpTypeArray` ([link](https://github.com/taichi-dev/taichi/pull/7863/files?diff=unified&w=0#diff-259a89b8645aab6065eac94864cd4930be7ae91da5cb2e15307ae5fa41015962L456-R459))
- Loading branch information