https://github.com/arsenm approved this pull request. LGTM with a note that this is making an assumption about this only handling the formats with IR types (preferably with an example where it breaks) https://github.com/llvm/llvm-project/pull/217526