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

Maksim Levental llvmlistbot at llvm.org
Thu Sep 4 20:08:09 PDT 2025


================
@@ -258,9 +264,13 @@ class EncodingReader {
     return success();
   }
 
+  /// Validate that the alignment requested in the section is valid.
+  using ValidateAlignment = function_ref<LogicalResult(unsigned alignment)>;
----------------
makslevental wrote:

nit: 
```suggestion
  using ValidateAlignmentFn = function_ref<LogicalResult(unsigned alignment)>;
```

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


More information about the Mlir-commits mailing list