Displaying 2 results from an estimated 2 matches for "newcaf".
Did you mean:
newca
2014 May 26
3
[LLVMdev] GHC, aliases, and LLVM HEAD
...t symbols through aliases. This is done in
two situations,
1. As place-holders for external symbols. As the code generator does
not know the type of these symbols until the point of usage (nor
does it need to), i8* aliases are defined at the end of the
compilation unit,
@newCAF = external global i8
@newCAF$alias = alias private i8* @newCAF
and functions in the current compilation unit calling `newCAF` invoke
it through `@newCAF$alias$`,
...
%lnYi = bitcast i8* @newCAF$alias to i8* (i8*, i8*)*
...
2. As place-holders for l...
2014 May 26
3
[LLVMdev] GHC, aliases, and LLVM HEAD
...>
As it turns out this wasn't quite right; there are some cases that we
don't know the type of the reference even at the point of usage (namely
when we refer to the function's entrypoint label without calling it as
only C--'s call node contains the signature).
>> @newCAF = external global i8
>> @newCAF$alias = alias private i8* @newCAF
>>
>> and functions in the current compilation unit calling `newCAF` invoke
>> it through `@newCAF$alias$`,
>>
>> ...
>> %lnYi = bitcast i8* @newCAF$alias...