Tools
The ttmlir project currenly exposes the following tools:
ttmlir-opt: Thettmliroptimizer driver. This tool is used to run thettmlircompiler passes on a.mlirsource files and is central to developing and testing the compiler.ttmlir-translate: Thettmlirtranslation tool. This tool can convert from IR to external representation (and inverse). For example, IR in EmitC dialect can be converted into C++ code.ttrt: This tool is intended to be a swiss army knife for working with flatbuffers generated by the compiler. Its primary role is to inspect and run flatbuffer files.ttir-builder: This tool is for creating ttir operations. It provides support for those ops to be compiled into modules or directly to flatbuffer files.tt-explorer: Visualizer tool forttmlir-powered compiler results. Visualizes from emitted.mlirfiles to display compiled model, attributes, performance results, and provide a platform for human-driven overrides to gamify model tuning.ttnn-standalone: This tool is used to run C++ TTNN code outside of the compiler environment.