1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/lib
Chandler Carruth 72105b1195 [LCG] Add the first round of mutation support to the lazy call graph.
This implements the core functionality necessary to remove an edge from
the call graph and correctly update both the basic graph and the SCC
structure. As part of that it has to run a tiny (in number of nodes)
Tarjan-style DFS walk of an SCC being mutated to compute newly formed
SCCs, etc.

This is *very rough* and a WIP. I have a bunch of FIXMEs for code
cleanup that will reduce the boilerplate in this change substantially.
I also have a bunch of simplifications to various parts of both
algorithms that I want to make, but first I'd like to have a more
holistic picture. Ideally, I'd also like more testing. I'll probably add
quite a few more unit tests as I go here to cover the various different
aspects and corner cases of removing edges from the graph.

Still, this is, so far, successfully updating the SCC graph in-place
without disrupting the identity established for the existing SCCs even
when we do challenging things like delete the critical edge that made an
SCC cycle at all and have to reform things as a tree of smaller SCCs.
Getting this to work is really critical for the new pass manager as it
is going to associate significant state with the SCC instance and needs
it to be stable. That is also the motivation behind the return of the
newly formed SCCs. Eventually, I'll wire this all the way up to the
public API so that the pass manager can use it to correctly re-enqueue
newly formed SCCs into a fresh postorder traversal.

llvm-svn: 206968
2014-04-23 11:03:03 +00:00
..
Analysis [LCG] Add the first round of mutation support to the lazy call graph. 2014-04-23 11:03:03 +00:00
AsmParser [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-16 04:21:27 +00:00
Bitcode [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-15 06:32:26 +00:00
CodeGen Requisite reformatting for previous commit. 2014-04-22 23:09:36 +00:00
DebugInfo [Modules] Make Support/Debug.h modular. This requires it to not change 2014-04-21 22:55:11 +00:00
ExecutionEngine [Modules] Fix potential ODR violations by sinking the DEBUG_TYPE 2014-04-22 03:04:17 +00:00
IR Fix DataLayout::operator==(). 2014-04-22 17:47:03 +00:00
IRReader [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-15 06:32:26 +00:00
LineEditor [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
Linker [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-15 06:32:26 +00:00
LTO Fix the assembler to print a better relocatable expression error 2014-04-22 17:27:29 +00:00
MC Integrated assbemler, macros: added 'vararg' argument qualifier support. 2014-04-23 06:56:28 +00:00
Object Convert getFileOffset to getOffset and move it to its only user. 2014-04-21 13:45:32 +00:00
Option Protect the ArgList dtor 2014-04-20 23:59:00 +00:00
ProfileData ProfileData: Remove an extra semicolon 2014-04-19 23:42:50 +00:00
Support [Modules] Fix potential ODR violations by sinking the DEBUG_TYPE 2014-04-22 03:07:47 +00:00
TableGen [C++11] Make use of 'nullptr' in TableGen library. 2014-04-09 04:50:04 +00:00
Target [ARM64] Fix formatting. 2014-04-23 10:50:32 +00:00
Transforms [LV] Statistics numbers for LoopVectorize introduced: a number of analyzed loops & a number of vectorized loops. 2014-04-23 08:40:37 +00:00
CMakeLists.txt ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00
LLVMBuild.txt ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00
Makefile ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00