LLVM backend for 6502
Go to file
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
autoconf Link against libffi if available, fall back to "no external calls from 2009-04-13 04:26:06 +00:00
bindings Fix ocaml bindings; add "available_externally" linkage type. 2009-04-13 07:02:32 +00:00
cmake CMake: Added notes pointing to the LLVM CMake documentation. 2009-04-04 22:52:02 +00:00
docs Add a new "available_externally" linkage type. This is intended 2009-04-13 05:44:34 +00:00
examples Add Kaleidoscope to examples/ so that it gets built regularly and we'll notice 2009-04-12 20:47:23 +00:00
include Add a new TargetInstrInfo MachineInstr opcode, COPY_TO_SUBCLASS. 2009-04-13 15:38:05 +00:00
lib Implement x86 h-register extract support. 2009-04-13 16:09:41 +00:00
projects Revert r67655 and r67656, as they are breaking the build. I'm 2009-03-25 00:52:11 +00:00
runtime Drop toy GC runtime. 2009-03-02 03:46:48 +00:00
test Implement x86 h-register extract support. 2009-04-13 16:09:41 +00:00
tools Add a new "available_externally" linkage type. This is intended 2009-04-13 05:44:34 +00:00
unittests Fix pointer casting problem. 2009-04-09 03:10:03 +00:00
utils Add a new TargetInstrInfo MachineInstr opcode, COPY_TO_SUBCLASS. 2009-04-13 15:38:05 +00:00
website
win32 Update hand-crafted VC++ build. 2009-02-02 19:22:02 +00:00
Xcode
build-for-llvm-top.sh
CMakeLists.txt CMake: Added notes pointing to the LLVM CMake documentation. 2009-04-04 22:52:02 +00:00
configure Regenerate. 2009-04-13 04:26:27 +00:00
CREDITS.TXT Test commit access to LLVM with some minor narcissism. 2009-04-03 21:41:52 +00:00
LICENSE.TXT Another great year for LLVM! 2009-02-26 15:17:13 +00:00
llvm.spec.in * llvm.spec.in: update blurb 2007-07-13 09:48:29 +00:00
Makefile Remove ccc now. Radar 6737767 2009-04-07 20:29:25 +00:00
Makefile.common
Makefile.config.in Link against libffi if available, fall back to "no external calls from 2009-04-13 04:26:06 +00:00
Makefile.rules Don't install the libLLVMHello.dylib example. 2009-04-10 18:48:38 +00:00
ModuleInfo.txt Patch to build llvm with srcdir != objdir from 2009-01-23 08:42:38 +00:00
README.txt README.txt: test commit w/blank line appended 2009-03-23 21:00:45 +00:00

Low Level Virtual Machine (LLVM)
================================

This directory and its subdirectories contain source code for the Low Level 
Virtual Machine, a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments. 

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the HTML documentation provided in docs/index.html for further
assistance with LLVM.