<p><span class="h-card" translate="no"><a href="https://haunted.computer/@iximeow" class="u-url mention">@<span>iximeow</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> </p><p>was looking at MLIR as perhaps a less cursed way to e.g. ingest LLVM IR w/o FFI (plus ClangIR could give access to C/C++ information lost in LLVM IR)</p><p>then I found out that:<br />- MLIR heavily relies on TableGen<br />- MLIR dialects can invent arbitrary syntax for their constructs!<br />(through TableGen generating C++ code, AIUI)</p><p>(there&#39;s `-mlir-print-op-generic`, e.g.: <a href="https://godbolt.org/z/GhWMaWb5j" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="">godbolt.org/z/GhWMaWb5j</span><span class="invisible"></span></a> but even that makes me wonder if the MLIR bytecode would be easier to work with instead...)</p>
Reply