hanchenye-llvm-project/llvm
Jakub Kuderski eb370adeb6 [Dominators] Add CFGBuilder testing utility
Summary:
This patch introduces a new testing utility for building and modifying CFG -- CFGBuilder. The primary use case for the utility is testing the upcoming incremental dominator tree update API.

The current design provides a simple mechanism of constructing arbitrary graphs and then applying series of updates to them. CFGBuilder takes care of creating empty functions, connecting and disconnecting basic blocks. Under the hood it uses SwitchInst and UnreachableInst.

It will be also possible to create a thin wrapper over CFGBuilder for parsing string input and to hook it up to other textual tools (e.g. opt used with FileCheck).

Reviewers: dberlin, sanjoy, grosser, dblaikie

Reviewed By: dblaikie

Subscribers: davide, mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D34798

llvm-svn: 307960
2017-07-13 21:16:01 +00:00
..
bindings
cmake [Solaris] Detect Solaris LD, use detection results to pass Solaris-ld options 2017-07-12 21:43:14 +00:00
docs [lit] add a -vv option to echo all executed commands. 2017-07-13 19:26:27 +00:00
examples fix typos in comments and error messges; NFC 2017-07-13 06:48:39 +00:00
include [Dominators] Simplify templates 2017-07-13 20:45:32 +00:00
lib [Dominators] Simplify templates 2017-07-13 20:45:32 +00:00
projects
resources
runtimes [CMake] Support multi-target runtimes build 2017-07-11 23:41:15 +00:00
test [InstCombine] put tests for commuted variants of the same fold together; NFC 2017-07-13 20:35:45 +00:00
tools [llvm-objdump] Properly print MachO aarch64 addend relocations 2017-07-13 17:03:02 +00:00
unittests [Dominators] Add CFGBuilder testing utility 2017-07-13 21:16:01 +00:00
utils [lit] add a -vv option to echo all executed commands. 2017-07-13 19:26:27 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt CMake: Add LLVM_UTILS_INSTALL_DIR option 2017-07-05 12:57:30 +00:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

Low Level Virtual Machine (LLVM)
================================

This directory and its subdirectories contain source code for LLVM,
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 are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.