[clang] Revert "[X86][clang] Lift _BitInt() supported max width." (PR #81175)

Harald van Dijk via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 15 07:49:16 PST 2024


hvdijk wrote:

> It should be technically possible for Clang to give _BitInt(N) an alignment that is independent from LLVM's alignment

I'm not sure it's even technically possible: if loading a `_BitInt(129)` from memory should load 3 bytes, but it is translated to an LLVM IR load of `i129` that loads 4 bytes, then even if the last byte is ignored, simply attempting to load it may access memory out of bounds and crash the program. Storing `i129`, it would clobber the next byte of memory.

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


More information about the cfe-commits mailing list