LLVM backend for 6502
Go to file
Shuxin Yang 1c2b03aae9 Fix an assertion in MemCpyOpt pass.
The MemCpyOpt pass is capable of optimizing:
      callee(&S); copy N bytes from S to D.
    into:
      callee(&D);
subject to some legality constraints. 

  Assertion is triggered when the compiler tries to evalute "sizeof(typeof(D))",
while D is an opaque-typed, 'sret' formal argument of function being compiled.
i.e. the signature of the func being compiled is something like this:
  T caller(...,%opaque* noalias nocapture sret %D, ...)

  The fix is that when come across such situation, instead of calling some
utility functions to get the size of D's type (which will crash), we simply
assume D has at least N bytes as implified by the copy-instruction.

rdar://14073661 


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183584 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-07 22:45:21 +00:00
autoconf Make R600 non-experimental. 2013-05-22 00:35:47 +00:00
bindings
cmake Add colored diagnostics when building LLVM with cmake + ninja + clang 2013-05-29 20:41:35 +00:00
docs [docs] Add link to Microsoft PE/COFF Spec. 2013-06-07 20:30:27 +00:00
examples ExceptionDemo: Corresponding to r181820, SectionMemoryManager should belong to RTDyldMemoryManager. 2013-05-14 23:05:00 +00:00
include No functionality change. 2013-06-07 18:53:29 +00:00
lib Fix an assertion in MemCpyOpt pass. 2013-06-07 22:45:21 +00:00
projects sync projects/sample's autohell. 2013-05-22 12:37:27 +00:00
runtime Remove "-Wl,-seg1addr -Wl,0xE0000000" from link options. 2013-06-04 15:26:37 +00:00
test Fix an assertion in MemCpyOpt pass. 2013-06-07 22:45:21 +00:00
tools [llvm-symbolizer] rewrite r183213 in a more clear way 2013-06-07 15:25:27 +00:00
unittests BitVector: Do the right thing in all() when Size is a multiple of BITWORD_SIZE. 2013-06-07 15:14:31 +00:00
utils Add a script to help us create source tar balls for the release. 2013-06-07 11:15:30 +00:00
.arcconfig
.gitignore
CMakeLists.txt Allow duplicates in LLVM_TARGETS_TO_BUILD and LLVM_EXPERIMENTAL_TARGETS_TO_BUILD. 2013-05-22 02:45:28 +00:00
CODE_OWNERS.TXT
configure Make R600 non-experimental. 2013-05-22 00:35:47 +00:00
CREDITS.TXT Test commit. 2013-05-09 12:32:36 +00:00
LICENSE.TXT Be more specific and capitalize filenames. 2013-05-21 21:22:34 +00:00
llvm.spec.in
LLVMBuild.txt
Makefile
Makefile.common
Makefile.config.in
Makefile.rules Remove redundant rpath. 2013-05-23 02:53:22 +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 documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

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