[all-commits] [llvm/llvm-project] cf82cf: [mlir][docs] Regenerate Toy Ch6 sample output agai...
Demo_mod via All-commits
all-commits at lists.llvm.org
Tue Sep 22 12:44:02 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cf82cfa649c6add78737cb1cc0d95039d581aaff
https://github.com/llvm/llvm-project/commit/cf82cfa649c6add78737cb1cc0d95039d581aaff
Author: Demo_mod <gaurvansh133 at gmail.com>
Date: 2026-09-22 (Tue, 22 Sep 2026)
Changed paths:
M mlir/docs/Tutorials/Toy/Ch-6.md
Log Message:
-----------
[mlir][docs] Regenerate Toy Ch6 sample output against current main (#225457)
The Ch6 tutorial tells you to run toyc-ch6 with `-emit=mlir-llvm` and
compare against the chapter, but the listings still show typed pointers
like `!llvm<"double*">` and a four-field memref descriptor, and some
lines don't parse at all. #224908 is a beginner hitting exactly that.
This replaces the three listings (LLVM dialect, LLVM IR, optimized LLVM
IR) with what the tool prints today on
`test/Examples/Toy/Ch6/llvm-lowering.mlir`. The LLVM IR listings leave
out the target triple, data layout and `!dbg` metadata since those
depend on the host machine, and the text now says so.
The C++ snippets in the same chapter quoted the old typed-pointer API
for the printf declaration and a pattern list without the memref
patterns, so I updated those to match what's in `examples/toy/Ch6` now,
along with the `dumpLLVMIR` and `runJit` listings. If you'd prefer this
PR stick to the IR output, I can drop those hunks.
There's also one new sentence after the LLVM dialect listing saying what
the five fields of the descriptor are, with a link to the memref section
of the LLVM IR target doc.
Regenerated on macOS arm64 at 750b967f7bf8.
Fixes #224908
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