https://github.com/davemgreen commented: This should work by finding the legal types. It isn't going to scale very well if we have to add every individual type size. https://github.com/llvm/llvm-project/pull/107303