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

Lei Zhang llvmlistbot at llvm.org
Sun May 25 08:14:42 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);
----------------
antiagainst wrote:

Instead of having this control standalone, what about introducing a struct like `DeserializationOptions` or something so that we can introduce more options in the future if needed?

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


More information about the Mlir-commits mailing list