[all-commits] [llvm/llvm-project] c1ef00: [mlir] Reduce generated assembly printer compile time

Mehdi Amini via All-commits all-commits at lists.llvm.org
Wed Sep 23 09:19:43 PDT 2026


  Branch: refs/heads/users/mamini/mlir-generated-printer-compile-time
  Home:   https://github.com/llvm/llvm-project
  Commit: c1ef00abc90b15491422f695f858dd3d6aabc1e8
      https://github.com/llvm/llvm-project/commit/c1ef00abc90b15491422f695f858dd3d6aabc1e8
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M mlir/include/mlir/IR/OpImplementation.h
    M mlir/lib/IR/AsmPrinter.cpp
    M mlir/test/mlir-tblgen/op-decl-and-defs.td
    M mlir/test/mlir-tblgen/op-format.td
    M mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
    M mlir/tools/mlir-tblgen/OpFormatGen.cpp

  Log Message:
  -----------
  [mlir] Reduce generated assembly printer compile time

Use fixed arrays for statically elided attributes and combine leading spaces
with literals. Initialize fixed elisions together when runtime elision is
needed; in strict properties mode, print discardable attributes directly.

Move common operand printing out of generated call sites and emit sliced
operand getters to reduce optimizer work in large printers.

For omp.target, the original patch reduced optimized print IR from 3,893 to
2,667 instructions. Its printing benchmark was 2.1% slower.

Assisted-by: Codex



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