https://github.com/davemgreen approved this pull request. I'm not sure how much these will help in practice, but they look OK to me and I was hoping to use something similar for GISel. LGTM https://github.com/llvm/llvm-project/pull/175983