[Mlir-commits] [mlir] [mlir][SPIR-V] Deserialize null array and struct constants (PR #231626)

Igor Wodiany llvmlistbot at llvm.org
Wed Oct 28 12:49:52 PDT 2026


================
@@ -131,6 +211,15 @@ class DeserializationTest : public ::testing::Test {
 
   void addReturn() { addInstruction(spirv::Opcode::OpReturn, {}); }
 
+  /// Adds a use of the constant so it is materialized during deserialization.
+  void addFunctionReturning(uint32_t type, uint32_t value) {
----------------
IgWod wrote:

nit: I'm not sure I like the name. Maybe `addFunctionWithSimpleUse`?

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


More information about the Mlir-commits mailing list