https://github.com/lukel97 commented: Out of curiosity, is it possible to do this as a tablegen pattern? Not that it's necessarily the right thing to do, just wondering if it's easy to do or not! https://github.com/llvm/llvm-project/pull/151775