llvm-6502/lib
Nate Begeman d4c8bea47f Enable optimization suggested by Chris Lattner to not emit reloc stubs for
static global variables whose addresses are taken.  This allows us to
convert the following code for taking the address of a static function foo

        addis r2, r30, ha16(Ll1__2E_foo_2$non_lazy_ptr-"L00001$pb")
        lwz r3, lo16(Ll1__2E_foo_2$non_lazy_ptr-"L00001$pb")(r2)

which also includes linker stub code emitted at the end of the .s file not
shown here, and replace it with this:

        addis r2, r30, ha16(l1__2E_foo_2-"L00001$pb")
        la r3, lo16(l1__2E_foo_2-"L00001$pb")(r2)

which in addition to not needing linker help, also has no load instruction.
For those not up on PowerPC mnemonics, la is shorthand for add immediate.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18239 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 07:09:01 +00:00
..
Analysis Mission accomplished! 2004-11-19 16:22:24 +00:00
Archive Allow reading of member names that begin with an _ character. 2004-11-23 22:35:39 +00:00
AsmParser Make sure that the yacc and lex output are specified as BUILT_SOURCES. 2004-10-28 00:43:24 +00:00
Bytecode Allow reading of member names that begin with an _ character. 2004-11-23 22:35:39 +00:00
CodeGen Fix the FIXME, nuke the JIT specific forceCompilationOf method. 2004-11-22 21:54:35 +00:00
Debugger Change Library Names Not To Conflict With Others When Installed 2004-10-27 23:18:45 +00:00
ExecutionEngine Rename Emitter.cpp -> JITEmitter.cpp 2004-11-22 22:00:25 +00:00
Linker Eliminate unsightly ;; 2004-11-19 03:27:05 +00:00
Support Implement and document prefix options with arbitrary values including an 2004-11-24 06:13:42 +00:00
System Cast the void* handle data member to HMODULE* to keep the VC++ compiler 2004-11-20 23:30:55 +00:00
Target Enable optimization suggested by Chris Lattner to not emit reloc stubs for 2004-11-25 07:09:01 +00:00
Transforms Do not count debugger intrinsics in size estimation. 2004-11-22 17:23:57 +00:00
VMCore Fix test/Regression/CFrontend/2003-11-01-EmptyStructCrash.c 2004-11-22 19:15:27 +00:00
Makefile Add the Linker library 2004-11-14 21:54:41 +00:00