llvm-6502/lib
Chris Lattner 358a9027a8 Instruction select globals with offsets better. For example, on this test
case:

int C[100];
int foo() {
  return C[4];
}

We now codegen:

foo:
        mov %EAX, DWORD PTR [C + 16]
        ret

instead of:

foo:
        mov %EAX, OFFSET C
        mov %EAX, DWORD PTR [%EAX + 16]
        ret

Other impressive features may be coming later.

This patch is contributed by Jeff Cohen!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17011 91177308-0d34-0410-b5e6-96231b3b80d8
2004-10-15 05:05:29 +00:00
..
Analysis Do not use the same variable name for two different variables in the 2004-10-14 14:59:16 +00:00
Archive Changes For Bug 352 2004-09-01 22:55:40 +00:00
AsmParser Update to reflect changes in Makefile rules. 2004-10-13 11:46:52 +00:00
Bytecode Today is not my day. Fix broken # 2004-10-14 02:31:35 +00:00
CodeGen Allow machine operands to represent global variables with offsets. This is 2004-10-15 04:38:41 +00:00
Debugger Update to reflect changes in Makefile rules. 2004-10-13 11:46:52 +00:00
ExecutionEngine Update to reflect changes in Makefile rules. 2004-10-13 11:46:52 +00:00
Linker Make sure the const bit gets inherited correctly when linking declarations 2004-10-05 02:28:11 +00:00
Support Update to reflect changes in Makefile rules. 2004-10-13 11:46:52 +00:00
System Allow this file to compile on Darwin. 2004-10-14 03:33:25 +00:00
Target Instruction select globals with offsets better. For example, on this test 2004-10-15 05:05:29 +00:00
Transforms Fix a bug John tracked down in libstdc++ where we were incorrectly deleting 2004-10-14 19:53:50 +00:00
VMCore Make sure any client of Dominators.h links in Dominators.cpp 2004-10-14 15:47:16 +00:00
Makefile Wrap long line 2004-09-15 01:34:42 +00:00
Makefile.am Update to reflect changes in Makefile rules. 2004-10-13 11:46:52 +00:00