[llvm-branch-commits] [llvm] [IRBuilder] Add getByteTy and use it in CreatePtrAdd (PR #106539)

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 29 05:20:56 PDT 2024


https://github.com/nikic commented:

For this and https://github.com/llvm/llvm-project/pull/106540, I'm not convinced that we should actually make the canonical `i8` type for ptradd byte width dependent. The only thing that matters is that the used type has an alloc size of one byte, so always using i8 should be fine.

I'd rather have the question "is this GEP a ptradd" be answerable without DL.

https://github.com/llvm/llvm-project/pull/106539


More information about the llvm-branch-commits mailing list