nhaehnle added a comment. Here's a random thought: what if the types are parameterized using metadata instead of ints? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D135202/new/ https://reviews.llvm.org/D135202