[llvm-dev] RFC: Absolute or "fixed address" symbols as immediate operands

Chris Lattner via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 25 22:33:06 PDT 2016


On Oct 25, 2016, at 11:41 AM, Peter Collingbourne <peter at pcc.me.uk> wrote:
> If this works, it does seem better. But I can imagine it being hard to take the "load" of the global constant and turn it into a direct reference to a symbolic immediate operand to an instruction.
> 
> I think Chris's idea is that you would not use a load but rather a ptrtoint to access the underlying value.

Right.

-Chris



More information about the llvm-dev mailing list