[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 05:49:37 PDT 2016
>>> @foo = globalconst i32 42
>>>
>>>
>>> This is equivalent to writing "foo = 42" in assembly?
>>
>>
>> Yes.
>
>
> Back in the day the idea was to use an alias whose ConstantExpr was
> just 42. Would that work?
In fact, it already works:
@foo = alias i64, inttoptr (i64 42 to i64*)
produces
foo = 42
Cheers,
Rafael
More information about the llvm-dev
mailing list