[all-commits] [llvm/llvm-project] 565fe7: [mlirbc] Add AffineMap serialization support
Jacques Pienaar via All-commits
all-commits at lists.llvm.org
Wed Jun 3 03:05:41 PDT 2026
Branch: refs/heads/users/jpienaar/bcaffinemapadd
Home: https://github.com/llvm/llvm-project
Commit: 565fe7af6110985d5a7509795ae99632469a61cf
https://github.com/llvm/llvm-project/commit/565fe7af6110985d5a7509795ae99632469a61cf
Author: Jacques Pienaar <jpienaar at google.com>
Date: 2026-06-03 (Wed, 03 Jun 2026)
Changed paths:
M mlir/include/mlir/IR/BuiltinDialectBytecode.td
M mlir/lib/IR/BuiltinDialectBytecode.cpp
M mlir/test/Dialect/Builtin/Bytecode/attrs.mlir
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.
This uses pre-order encoding to avoid needing a sentinel and adds some special
casing for the common cases. To guard a bit more against malformed bytecode it
uses an iterative parser for these.
Updated the checked in mlirbc file as memref has a default affinemap, so
updating it pre snap.
Assisted-by: Antigravity : Gemini
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