Displaying 3 results from an estimated 3 matches for "printglobaloffsetalias".
2009 Aug 25
0
[LLVMdev] RFC: Supporting ELF symbol aliases via GlobalAlias GEPs
...r ELF targets.
- printObjectType() in AsmPrinter. Currently all of the subclasses
hard-code this (e.g. ".type " + name + ", @object") when emitting
global variables. I've implemented this for X86ATTAsmWPrinter, and
will add the same for other classes as required.
- PrintGlobalOffsetAlias(), also in AsmPrinter. This outputs a
GlobalAlias which is a GEP to a GlobalVariable, if the target supports
it.
This is a proof-of-concept implementation which, pending review, I'd
like to commit as a work-in-progress and then work on adding support
for more targets. It should be re...
2009 Aug 23
3
[LLVMdev] RFC: Supporting ELF symbol aliases via GlobalAlias GEPs
Hi Everyone,
Chris suggested[1] I should ask for feedback as to whether this is a
desired feature before I put too much effort into it, so here goes:
I would like to be able to export a symbol that is inside an LLVM
structure. This is possible on ELF targets[2], and the attached proof-
of-concept patch to AsmWriter makes it work (although in a hackish way
that I am NOT suggesting be
2009 Aug 25
1
[LLVMdev] RFC: Supporting ELF symbol aliases via GlobalAlias GEPs
...printObjectType() in AsmPrinter. Currently all of the subclasses
> hard-code this (e.g. ".type " + name + ", @object") when emitting global
> variables. I've implemented this for X86ATTAsmWPrinter, and will add the
> same for other classes as required.
>
> - PrintGlobalOffsetAlias(), also in AsmPrinter. This outputs a GlobalAlias
> which is a GEP to a GlobalVariable, if the target supports it.
>
> This is a proof-of-concept implementation which, pending review, I'd like to
> commit as a work-in-progress and then work on adding support for more
> targets....