LLVM backend for 6502
Go to file
Chris Lattner 9637d5b22e Teach X86ISelLowering that the second result of X86ISD::UMUL is a flags
result.  This allows us to compile:

void *test12(long count) {
      return new int[count];
}

into:

test12:
	movl	$4, %ecx
	movq	%rdi, %rax
	mulq	%rcx
	movq	$-1, %rdi
	cmovnoq	%rax, %rdi
	jmp	__Znam                  ## TAILCALL

instead of:

test12:
	movl	$4, %ecx
	movq	%rdi, %rax
	mulq	%rcx
	seto	%cl
	testb	%cl, %cl
	movq	$-1, %rdi
	cmoveq	%rax, %rdi
	jmp	__Znam

Of course it would be even better if the regalloc inverted the cmov to 'cmovoq',
which would eliminate the need for the 'movq %rdi, %rax'.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120936 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-05 07:49:54 +00:00
autoconf Apparently OS X 10.4 doesn't have __crashreporter_info__. 2010-12-03 07:45:22 +00:00
bindings Try to fix ocaml bindings. 2010-10-08 00:36:21 +00:00
cmake Disable C++ exception handling on MSVC. 2010-12-04 14:30:22 +00:00
docs Add naming rules to the coding standards. 2010-12-02 05:10:07 +00:00
examples Fix missing includes of "llvm/Analysis/Passes.h" in the tutorials. Thanks 2010-11-16 17:28:22 +00:00
include Remember the contents of leb and dwarfline fragments when relaxing. This avoids 2010-12-04 21:58:52 +00:00
lib Teach X86ISelLowering that the second result of X86ISD::UMUL is a flags 2010-12-05 07:49:54 +00:00
projects I swear I did a make clean and make before committing all this... 2010-11-29 18:47:54 +00:00
runtime
test Teach X86ISelLowering that the second result of X86ISD::UMUL is a flags 2010-12-05 07:49:54 +00:00
tools Do not try luck by using given name to create temporary file. In parallel builds it may not work. 2010-12-03 23:58:31 +00:00
unittests Unittests/Support/PathV2: Add FileSystem tests. 2010-12-04 03:18:42 +00:00
utils Remove trailing whitespace. 2010-12-04 04:40:15 +00:00
website
build-for-llvm-top.sh
CMakeLists.txt Disable C++ exception handling on MSVC. 2010-12-04 14:30:22 +00:00
configure Apparently OS X 10.4 doesn't have __crashreporter_info__. 2010-12-03 07:45:22 +00:00
CREDITS.TXT Convert a bunch of uses of 'bytecode' into 'bitcode'. This 2010-09-29 20:09:55 +00:00
LICENSE.TXT
llvm.spec.in
Makefile Merge System into Support. 2010-11-29 18:16:10 +00:00
Makefile.common
Makefile.config.in It seems inconsistent to have LLVMCC_EMITIR_FLAG and 2010-11-25 17:57:43 +00:00
Makefile.rules Now to chant the magical incantation that will exorcise the System library 2010-11-29 19:44:50 +00:00
ModuleInfo.txt Remove trailing space. This is just an excuse to poke the 2010-10-05 20:32:15 +00:00
README.txt

\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.

If you're writing a package for LLVM, see docs/Packaging.html for our
suggestions.