This reverts commit 6c0fd4db79. This simple implementation is unfortunately not extensible and needs to be reverted. The extensible way should be to extend https://reviews.llvm.org/D104321.
6c0fd4db79