[llvm-dev] RFC: Absolute or "fixed address" symbols as immediate operands
Rafael EspĂndola via llvm-dev
llvm-dev at lists.llvm.org
Tue Oct 25 14:55:15 PDT 2016
> You get the code you want with
>
> @foo = external hidden global i8
>
> or
>
> @foo = external protected global i8
Sorry, not quiet. What you get is
leaq foo(%rip), %rax
Since it is still assuming foo is a position in the file.
So yes, we need a way to declare an absolute value. If we can declare
it, we may as well use the same construct to define it.
I guess the only issue then is that the current implementation of
alias becomes even more needlessly generic :-(
Cheers,
Rafael
More information about the llvm-dev
mailing list