tpt-uir-cli-0.1.0 is not a library.
tpt-uir-cli
Command-line tool for working with TPT-UIR regions.
Installation
Not yet on crates.io — build from source:
# or, without installing:
Subcommands
tpt-uir-cli validate <file> [--dialect gpu|crucible]
tpt-uir-cli print <file>
tpt-uir-cli convert --in <file> --out <file> \
[--from-format postcard|text|flatbuffers] \
[--to-format postcard|text|flatbuffers]
tpt-uir-cli fmt <file.txt|file.uir> [--check]
tpt-uir-cli diff <file-a> <file-b> \
[--format-a postcard|text|flatbuffers] \
[--format-b postcard|text|flatbuffers]
validate— runs SSA validation (always) plus dialect validation when--dialectis given. Exits non-zero on any violation.print— pretty-prints the region as textual TPT-UIR to stdout.convert— reads one format and writes another. Format is taken from the file extension when--from-format/--to-formatare omitted (*.tptuir→ postcard,*.txt/*.uir→ text,*.fbs/*.flat→ flatbuffers).fmt— rewrites a textual file into the canonical printer output. With--check, no file is written; it exits non-zero if the file is not already canonical (CI-friendly).diff— structurally compares two regions (any mix of formats via--format-a/--format-b). Printsregions identicaland exits0, or prints-/+lines for operations that differ and exits1.
See CHANGELOG.md for release notes.
License
Licensed under either of MIT or Apache-2.0 at your option.