llvm-6502/lib
Dan Gohman 21e3dfbc86 Implement x86 h-register extract support.
- Add patterns for h-register extract, which avoids a shift and mask,
   and in some cases a temporary register.
 - Add address-mode matching for turning (X>>(8-n))&(255<<n), where
   n is a valid address-mode scale value, into an h-register extract
   and a scaled-offset address.
 - Replace X86's MOV32to32_ and related instructions with the new
   target-independent COPY_TO_SUBREG instruction.

On x86-64 there are complicated constraints on h registers, and
CodeGen doesn't currently provide a high-level way to express all of them,
so they are handled with a bunch of special code. This code currently only
supports extracts where the result is used by a zero-extend or a store,
though these are fairly common.

These transformations are not always beneficial; since there are only
4 h registers, they sometimes require extra move instructions, and
this sometimes increases register pressure because it can force out
values that would otherwise be in one of those registers. However,
this appears to be relatively uncommon.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68962 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-13 16:09:41 +00:00
..
Analysis use higher level APIs. 2009-04-03 00:02:39 +00:00
Archive Add the private linkage. 2009-01-15 20:18:42 +00:00
AsmParser Fix warning in .ll parser, detect and reject available_externally on function 2009-04-13 07:02:02 +00:00
Bitcode Add a new "available_externally" linkage type. This is intended 2009-04-13 05:44:34 +00:00
CodeGen Add a new TargetInstrInfo MachineInstr opcode, COPY_TO_SUBCLASS. 2009-04-13 15:38:05 +00:00
CompilerDriver -write-graph now can be used with -o. 2009-03-27 12:57:14 +00:00
Debugger Oops...I committed too much. 2009-03-13 04:39:26 +00:00
ExecutionEngine Link against libffi if available, fall back to "no external calls from 2009-04-13 04:26:06 +00:00
Linker Add a new "available_externally" linkage type. This is intended 2009-04-13 05:44:34 +00:00
Support Remove AllowInverse: it leaks memory and is not the right 2009-04-08 03:43:51 +00:00
System fix PR3965:SIGINT handler not restored after calling ParseAST(), 2009-04-12 23:33:13 +00:00
Target Implement x86 h-register extract support. 2009-04-13 16:09:41 +00:00
Transforms eliminate unneeded parens. 2009-04-13 05:38:23 +00:00
VMCore Add a new "available_externally" linkage type. This is intended 2009-04-13 05:44:34 +00:00
Makefile Reorganize llvmc code. 2009-03-02 09:01:14 +00:00