[Mlir-commits] [mlir] [mlir][spirv] Fix int type declaration duplication when serializing (PR #143108)

Jakub Kuderski llvmlistbot at llvm.org
Mon Jun 9 06:37:38 PDT 2025


kuhar wrote:

> The only way to test this properly is to add a validation step on the produced SPIRV assembly, but that cannot be achieve easily at the moment.

I thought we have some tests that use spir-v when present: https://github.com/llvm/llvm-project/blob/e4060d3beab3b525b49baaa15484e3c595740a2f/llvm/test/CodeGen/SPIRV/empty.ll#L2

Could we do something similar in mlir spirv serialization?

If this is not straightforward, validating by hand is also fine IMO. 

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


More information about the Mlir-commits mailing list