[LLVMdev] cmpxchg instruction with pointer operands

David Chisnall David.Chisnall at cl.cam.ac.uk
Sun Sep 7 03:54:10 PDT 2014


On 6 Sep 2014, at 23:57, Filip Pizlo <fpizlo at apple.com> wrote:

> You can bitcast to pointer-sized int!

As I've mentioned before when this is brought up - not always.  On the architecture I'm working on, for example, fat pointers are bigger than the largest integer register and can not be treated as integers.  The same is true for some microcontrollers, where integer and address registers are different sizes.

David





More information about the llvm-dev mailing list