3 ms·
getelementptr is just some pointer arithmetic - all backends can do that. And using signed integers is unusual yes, but again all backends (obviously) also sup
by chrisseaton 6y ago
getelementptr is just some pointer arithmetic - all backends can do that.
And using signed integers is unusual yes, but again all backends (obviously) also support signed integers.
- steveklabnik 6y agoIMHO, "Just some pointer arithmetic" is selling it a bit short. There's a lot of stuff there around provenance that matters, that is, there's a reason this is an intrinsic and not just a subtraction after casting both to an int. (I agree on the signed integer thing though.)