[llvm-commits] [PATCH] Add support for ARMFastISel to emit ELF PIC

Jush Lu jush.msn at gmail.com
Tue Sep 4 04:14:02 PDT 2012


*Hi,

This patch adds support for ELF PIC. I know that ARMFastISel hasn’t been
used for ELF object files, but I think this patch will be helpful to ELF
support.

This patch uses the same way which X86FastISel uses for ELF PIC codegen,
you can find the similar code in the “CGBR” pass which is in
lib/Target/X86/X86InstrInfo.cpp .

The “ARMCGBR”  pass in my patch lowers the value of  a ELF specific symbol
“_GLOBAL_OFFSET_TABLE_” into a global base register , and this global base
register is used by ARMFastISel for ELF PIC codegen.

Please review it ,thanks.

Jush*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120904/33b85ffd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fast-isel-elf-pic.patch
Type: application/octet-stream
Size: 11082 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120904/33b85ffd/attachment.obj>


More information about the llvm-commits mailing list