[llvm-branch-commits] [llvm] [DataLayout][LangRef] Split non-integral and unstable pointer properties (PR #105735)
Nikita Popov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Nov 5 01:52:50 PST 2024
nikic wrote:
I think this change would benefit from an RFC on discourse, for wider visibility.
Something that's not super clear to me is how to reconcile the statements about pointer/integer casts and in-memory type punning. I'd expect that ptrtoint returns an i128 value and if you cast back that value to a pointer, you preserve capabilities. If you truncate the i128 value to i64 and then cast it back, then you obviously don't -- but LLVM should already know that truncation is not a value preserving operation :) Or does ptrtoint actually directly return an i64 value? If it does, then I think you must have additional changes for that, because I don't think that LLVM supports that directly. And if you do, then that may be sufficient?
https://github.com/llvm/llvm-project/pull/105735
More information about the llvm-branch-commits
mailing list