LLVM backend for 6502
Go to file
Nico Weber 3a5b1043d0 Teach GlobalDCE how to remove empty global_ctor entries.
This moves most of GlobalOpt's constructor optimization
code out of GlobalOpt into Transforms/Utils/CDtorUtils.{h,cpp}. The
public interface is a single function OptimizeGlobalCtorsList() that
takes a predicate returning which constructors to remove.

GlobalOpt calls this with a function that statically evaluates all
constructors, just like it did before. This part of the change is
behavior-preserving.

Also add a call to this from GlobalDCE with a filter that removes global
constructors that contain a "ret" instruction and nothing else – this
fixes PR19590.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207856 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-02 18:35:25 +00:00
autoconf
bindings [OCaml] Add an ocamlfind package llvm.all_backends. 2014-05-01 21:00:52 +00:00
cmake Teach add_sphinx_target() to respect the LLVM_INSTALL_TOOLCHAIN_ONLY CMake 2014-04-28 22:06:20 +00:00
docs Code style fix from Duncan P. N. Exon Smith. 2014-05-02 08:26:30 +00:00
examples Try to fix the msvc build. 2014-04-29 23:37:02 +00:00
include Teach GlobalDCE how to remove empty global_ctor entries. 2014-05-02 18:35:25 +00:00
lib Teach GlobalDCE how to remove empty global_ctor entries. 2014-05-02 18:35:25 +00:00
projects
test Teach GlobalDCE how to remove empty global_ctor entries. 2014-05-02 18:35:25 +00:00
tools [llvm-readobj] Transform 'switch' with the only 'case' statement 2014-05-01 11:57:40 +00:00
unittests [LCG] Add the other simple edge insertion API to the call graph. This 2014-05-01 12:18:20 +00:00
utils [C++11] Use 'nullptr' in tablegen output files. 2014-04-30 05:53:35 +00:00
.arcconfig Updated phabricator server. 2014-04-07 03:57:04 +00:00
.clang-format
.gitignore
CMakeLists.txt Added Sphinx documentation generation to CMake build system. 2014-04-18 21:45:25 +00:00
CODE_OWNERS.TXT
configure
CREDITS.TXT Test commit. 2014-04-10 22:25:51 +00:00
LICENSE.TXT
llvm.spec.in
LLVMBuild.txt
Makefile
Makefile.common
Makefile.config.in
Makefile.rules
README.txt Trivial test commit. 2014-04-26 19:05: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 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.