LLVM backend for 6502
Go to file
Chris Lattner 7900779543 handle the constant case of vector insertion. For something
like this:

struct S { float A, B, C, D; };

struct S g;
struct S bar() { 
  struct S A = g;
  ++A.B;
  A.A = 42;
  return A;
}

we now generate:

_bar:                                   ## @bar
## BB#0:                                ## %entry
	movq	_g@GOTPCREL(%rip), %rax
	movss	12(%rax), %xmm0
	pshufd	$16, %xmm0, %xmm0
	movss	4(%rax), %xmm2
	movss	8(%rax), %xmm1
	pshufd	$16, %xmm1, %xmm1
	unpcklps	%xmm0, %xmm1
	addss	LCPI1_0(%rip), %xmm2
	pshufd	$16, %xmm2, %xmm2
	movss	LCPI1_1(%rip), %xmm0
	pshufd	$16, %xmm0, %xmm0
	unpcklps	%xmm2, %xmm0
	ret

instead of:

_bar:                                   ## @bar
## BB#0:                                ## %entry
	movq	_g@GOTPCREL(%rip), %rax
	movss	12(%rax), %xmm0
	pshufd	$16, %xmm0, %xmm0
	movss	4(%rax), %xmm2
	movss	8(%rax), %xmm1
	pshufd	$16, %xmm1, %xmm1
	unpcklps	%xmm0, %xmm1
	addss	LCPI1_0(%rip), %xmm2
	movd	%xmm2, %eax
	shlq	$32, %rax
	addq	$1109917696, %rax       ## imm = 0x42280000
	movd	%rax, %xmm0
	ret



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112345 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-28 01:50:57 +00:00
autoconf Remove getsect checks, the result is unused and is broken anyhow. 2010-08-25 08:44:54 +00:00
bindings - Add the LinkerPrivateWeakDefAutoLinkage to the Ada bindings. 2010-08-24 20:00:52 +00:00
cmake Updated CMake library dependencies. Removed unnecessary component name 2010-08-26 02:29:53 +00:00
docs Create the new linker type "linker_private_weak_def_auto". 2010-08-20 22:05:50 +00:00
examples Trailing whitespace. 2010-08-19 20:03:53 +00:00
include Add a prototype of a new peephole optimizing pass that uses LazyValue info to simplify PHIs and select's. 2010-08-27 23:31:36 +00:00
lib handle the constant case of vector insertion. For something 2010-08-28 01:50:57 +00:00
projects Remove bogus link. 2010-07-16 06:33:36 +00:00
runtime Delete a blank line. 2010-04-16 13:32:55 +00:00
test handle the constant case of vector insertion. For something 2010-08-28 01:50:57 +00:00
tools Straighten out any triple strings passed on the command line before 2010-08-28 01:30:02 +00:00
unittests StringRef::compare_numeric also differed from StringRef::compare for characters > 127. 2010-08-26 15:25:35 +00:00
utils Fix a comment typo. 2010-08-27 21:56:59 +00:00
website
build-for-llvm-top.sh
CMakeLists.txt CMake: system for providing llvm-config-like features to the user. 2010-08-09 03:26:43 +00:00
configure Regenerate. 2010-08-25 08:45:06 +00:00
CREDITS.TXT long past time I added myself to this, I suppose. 2010-07-19 22:04:28 +00:00
LICENSE.TXT 2010 is upon us. 2010-01-09 18:40:31 +00:00
llvm.spec.in
Makefile llvmc: remove dynamic plugins. 2010-08-15 07:07:12 +00:00
Makefile.common
Makefile.config.in Make the makefiles go much faster by using the realpath 2010-08-03 22:53:22 +00:00
Makefile.rules Fix the "Finished Creating" messages for aliases to print the 2010-08-18 01:35:53 +00:00
ModuleInfo.txt
README.txt (Hopefully) One last test. 2010-07-27 00:04:55 +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.

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