scott.linder added a comment. I have the library in BinaryFormat because it is used outside of the AMDGPU backend in tools (currently just llvm-readobj) in https://reviews.llvm.org/D48179 https://reviews.llvm.org/D44429