llvm-6502/lib
Akira Hatanaka 648f00c2f0 Add an option to use a virtual register as the global base register instead of
reserving a physical register ($gp or $28) for that purpose.

This will completely eliminate loads that restore the value of $gp after every
function call, if the register allocator assigns a callee-saved register, or
eliminate unnecessary loads if it assigns a temporary register. 

example:

.cpload $25       // set $gp.
...
.cprestore 16     // store $gp to stack slot 16($sp).
...
jalr $25          // function call. clobbers $gp.
lw $gp, 16($sp)   // not emitted if callee-saved reg is chosen.
...
lw $2, 4($gp)
...
jalr $25          // function call.
lw $gp, 16($sp)   // not emitted if $gp is not live after this instruction.
...



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151402 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-24 22:34:47 +00:00
..
Analysis fix PR12075, a regression in a recent transform I added. In unreachable code, gep chains can be infinite. Just like "stripPointerCasts", use a set to keep track of visited instructions so we don't recurse infinitely. 2012-02-24 19:01:58 +00:00
Archive
AsmParser
Bitcode
CodeGen Add missing static 2012-02-24 21:52:44 +00:00
DebugInfo
ExecutionEngine EE/Interpreter/ExternalFunctions.cpp: Staticize lle_X_() entries. They can be mapped in FuncNames[] at the initialization. 2012-02-24 00:20:08 +00:00
Linker Capitalize messages so that they appear nicely with the linker's error messages. 2012-02-14 09:13:54 +00:00
MC ARM Thumb symbol references in assembly need the low bit set. 2012-02-24 05:12:18 +00:00
Object Remove static ctor. 2012-02-22 13:42:11 +00:00
Support Fix undefined behavior. 2012-02-24 19:06:15 +00:00
TableGen Add Foreach Loop 2012-02-22 16:09:41 +00:00
Target Add an option to use a virtual register as the global base register instead of 2012-02-24 22:34:47 +00:00
Transforms Teach GVN that x+y is the same as y+x and that x<y is the same as y>x. 2012-02-24 15:16:31 +00:00
VMCore Reinstate r151049 now that GeneralHash is fixed. 2012-02-23 09:17:40 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile