kimgr added a comment. I agree. Since the current set of encodings all have different element sizes and this is not likely to change, this looks good. Repository: rL LLVM https://reviews.llvm.org/D28223