kparzysz added a comment. Looks good to me. One thing I'm wondering about is if this needs to be a separate TableGen "target". Could it be under a debug flag used with -gen-register-info? Repository: rL LLVM https://reviews.llvm.org/D36911