goldsteinn wrote: > Since the langref definition is based on GEP, can we use index width instead > of pointer width? If you disagree with this, it would still be good if you > could add a test where the datalayout has index width < pointer width to show > the current semantics.
Any target inmind? But I think ptrwidth makes more sense given that the result is a pointer. It would be awkward to have resize things like knownbits / etc... and would somewhat make ptrmask useless as basically any mask would result in a low-bit only pointer. https://github.com/llvm/llvm-project/pull/67166 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits