LLVM backend for 6502
Go to file
Duncan Sands f19f6bb31e The fix that was applied for PR1224 stops the compiler
crashing but breaks exception handling.  The problem
described in PR1224 is that invoke is a terminator that
can produce a value.  The value may be needed in other
blocks.  The code that writes to registers values needed
in other blocks runs before terminators are lowered (in
this case invoke) so asserted because the value was not
yet available.  The fix that was applied was to do invoke
lowering earlier, before writing values to registers.

The problem this causes is that the code to copy values
to registers can be output after the invoke call.  If
an exception is raised and control is passed to the
landing pad then this copy-code will never execute.  If
the value is needed in some code path reached via the
landing pad then that code will get something bogus.

So revert the original fix and simply skip invoke values
in the general copying to registers code.  Instead copy
the invoke value to a register in the invoke lowering code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37567 91177308-0d34-0410-b5e6-96231b3b80d8
2007-06-13 05:51:31 +00:00
autoconf Make Perl a required dependency and cause configure script to fail if it 2007-05-17 18:06:19 +00:00
docs one final bugfix 2007-06-12 17:01:15 +00:00
examples switch this to bitcode instead of bytecode 2007-05-06 09:29:13 +00:00
include Protect updateDFSNumbers() 2007-06-12 17:30:56 +00:00
lib The fix that was applied for PR1224 stops the compiler 2007-06-13 05:51:31 +00:00
projects
runtime
test Add a test where phi translation was producing a null result. 2007-06-12 22:42:35 +00:00
tools Fix bugpoint to run -llc-safe with -Xlinker. 2007-06-06 23:10:56 +00:00
utils Add clobbersPred - instruction that clobbers condition code / register which are used to predicate instructions. 2007-06-06 10:14:55 +00:00
win32 Unbreak VC++ build. 2007-05-07 15:21:46 +00:00
Xcode
.cvsignore
configure Regenerate. 2007-05-17 18:11:03 +00:00
CREDITS.TXT Add entry to CREDITS. 2007-06-08 17:20:08 +00:00
LICENSE.TXT bzip2 is gone 2007-05-06 23:18:44 +00:00
llvm.spec.in
Makefile Echo command lines only if the user wants them. 2007-04-15 06:22:48 +00:00
Makefile.common
Makefile.config.in Add support for determining which languages the llvm-gcc front end 2007-04-21 21:28:12 +00:00
Makefile.rules Fix a problem with building .y files when BISON is not present. 2007-05-17 22:51:35 +00:00
README.txt test 2007-04-20 20:49:25 +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.