[Mlir-commits] [mlir] [MLIR][Bytecode] Enforce alignment requirements (PR #157004)

Maksim Levental llvmlistbot at llvm.org
Thu Sep 4 20:10:04 PDT 2025


================
@@ -1396,6 +1420,30 @@ class mlir::BytecodeReader::Impl {
     return success();
   }
 
+  LogicalResult checkSectionAlignment(
+      unsigned alignment,
+      function_ref<InFlightDiagnostic(const Twine &error)> emitError) {
+    // Check that the bytecode buffer meets
+    // the requested section alignment.
----------------
makslevental wrote:

nit:
```suggestion
    // Check that the bytecode buffer meets the requested section alignment.
```

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


More information about the Mlir-commits mailing list