[all-commits] [llvm/llvm-project] d225ed: [mlirbc] Add AffineMap serialization support

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Fri May 29 02:28:10 PDT 2026


  Branch: refs/heads/users/jpienaar/bcaffinemapadd
  Home:   https://github.com/llvm/llvm-project
  Commit: d225ed9f73101b9daf023008d5cd5ba43c1d4970
      https://github.com/llvm/llvm-project/commit/d225ed9f73101b9daf023008d5cd5ba43c1d4970
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2026-05-29 (Fri, 29 May 2026)

  Changed paths:
    M mlir/include/mlir/IR/BuiltinDialectBytecode.td
    M mlir/lib/IR/BuiltinDialectBytecode.cpp
    M mlir/test/Dialect/Builtin/Bytecode/builtin_fixed_0.mlirbc

  Log Message:
  -----------
  [mlirbc] Add AffineMap serialization support

Add binary bytecode encoding for AffineMapAttr, replacing the textual fallback.
AffineMap is encoded as numDims, numSymbols, numResults, followed by the result
expressions. Where each expression, AffineExpr, is encoded as a recursive tree
with a VarInt kind tag followed by kind-specific data.

Updated the checked in mlirbc file as memref has a default affinemap, so
updating it pre snap.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list