[Mlir-commits] [mlir] [mlir][spirv] Allow disabling control flow structurization (PR #140561)

Igor Wodiany llvmlistbot at llvm.org
Tue May 27 06:54:38 PDT 2025


================
@@ -27,8 +27,9 @@ class ModuleOp;
 /// in the given `context`. Returns the ModuleOp on success; otherwise, reports
 /// errors to the error handler registered with `context` and returns a null
 /// module.
-OwningOpRef<spirv::ModuleOp> deserialize(ArrayRef<uint32_t> binary,
-                                         MLIRContext *context);
+OwningOpRef<spirv::ModuleOp>
+deserialize(ArrayRef<uint32_t> binary, MLIRContext *context,
+            bool enableControlFlowStructurization = true);
----------------
IgWod-IMG wrote:

Good point! I've just realised that serialization already does it, so I can mirror that. I’ll update the PR.

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


More information about the Mlir-commits mailing list