[llvm] [LangRef] Specify semantics for non-byte-sized loads and stores (PR #180739)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 12 05:36:57 PST 2026


nikic wrote:

> If for some reason there is motivation to keep some backend flexibility here, one could also make the choice of zext or sext a target parameter (similar to endianess). Or more generally, "there is some target-specific function from `iN` to the next whole-byte `iM` type that is used for stores, and its inverse is used for loads, and the result of a load is poison if the data is outside the set of possible outputs of that function".

Yes, this is theoretically possible, but this also means that we can't really do anything with mixed size load/stores at the IR level, and that sounds like something alive2 would struggle to verify as well. I'd rather not go there unless we really have to.

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


More information about the llvm-commits mailing list