ROCm / triton

Development repository for the Triton language and compiler
MIT License
89 stars 27 forks source link

added ir dump parsing script #498

Closed jtang10 closed 8 months ago

jtang10 commented 8 months ago

Added a simple python script that can take the TTIR+TTGIR, LLVM IR and Assembly dump (at least one of these) and parse them into individual files per each pass. This could help someone understanding what each compilation pass does.

The script takes very basic assumption of the dump and look for anchors for regex so it could be easily broken if any anchors changed.