2012-06-21 11:51:26 +02:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
2013-12-10 12:13:32 +01:00
|
|
|
Analysis
|
|
|
|
AsmParser
|
|
|
|
Core
|
|
|
|
Support
|
[PM] Enable registration of out-of-tree passes with PassBuilder
Summary:
This patch adds a callback registration API to the PassBuilder,
enabling registering out-of-tree passes with it.
Through the Callback API, callers may register callbacks with the
various stages at which passes are added into pass managers, including
parsing of a pass pipeline as well as at extension points within the
default -O pipelines.
Registering utilities like `require<>` and `invalidate<>` needs to be
handled manually by the caller, but a helper is provided.
Additionally, adding passes at pipeline extension points is exposed
through the opt tool. This patch adds a `-passes-ep-X` commandline
option for every extension point X, which opt parses into pipelines
inserted into that extension point.
Reviewers: chandlerc
Reviewed By: chandlerc
Subscribers: lksbhm, grosser, davide, mehdi_amini, llvm-commits, mgorny
Differential Revision: https://reviews.llvm.org/D33464
llvm-svn: 307532
2017-07-10 12:57:55 +02:00
|
|
|
Passes
|
2012-06-21 11:51:26 +02:00
|
|
|
)
|
|
|
|
|
2018-05-14 21:23:31 +02:00
|
|
|
add_llvm_unittest(IRTests
|
2016-01-07 21:14:30 +01:00
|
|
|
AsmWriterTest.cpp
|
2013-01-12 15:13:45 +01:00
|
|
|
AttributesTest.cpp
|
2017-05-26 05:10:00 +02:00
|
|
|
BasicBlockTest.cpp
|
2017-07-13 23:16:01 +02:00
|
|
|
CFGBuilder.cpp
|
2014-03-04 13:24:34 +01:00
|
|
|
ConstantRangeTest.cpp
|
2012-06-21 11:51:26 +02:00
|
|
|
ConstantsTest.cpp
|
2014-10-03 22:01:09 +02:00
|
|
|
DebugInfoTest.cpp
|
2016-04-19 19:11:06 +02:00
|
|
|
DebugTypeODRUniquingTest.cpp
|
2012-06-21 11:51:26 +02:00
|
|
|
DominatorTreeTest.cpp
|
2017-08-16 18:12:52 +02:00
|
|
|
DominatorTreeBatchUpdatesTest.cpp
|
Reappl "[Dominators] Add the DomTreeUpdater class"
Summary:
This patch is the first in a series of patches related to the [[ http://lists.llvm.org/pipermail/llvm-dev/2018-June/123883.html | RFC - A new dominator tree updater for LLVM ]].
This patch introduces the DomTreeUpdater class, which provides a cleaner API to perform updates on available dominator trees (none, only DomTree, only PostDomTree, both) using different update strategies (eagerly or lazily) to simplify the updating process.
—Prior to the patch—
- Directly calling update functions of DominatorTree updates the data structure eagerly while DeferredDominance does updates lazily.
- DeferredDominance class cannot be used when a PostDominatorTree also needs to be updated.
- Functions receiving DT/DDT need to branch a lot which is currently necessary.
- Functions using both DomTree and PostDomTree need to call the update function separately on both trees.
- People need to construct an additional DeferredDominance class to use functions only receiving DDT.
—After the patch—
Patch by Chijun Sima <simachijun@gmail.com>.
Reviewers: kuhar, brzycki, dmgreen, grosser, davide
Reviewed By: kuhar, brzycki
Author: NutshellySima
Subscribers: vsk, mgorny, llvm-commits
Differential Revision: https://reviews.llvm.org/D48383
llvm-svn: 336163
2018-07-03 04:06:23 +02:00
|
|
|
DomTreeUpdaterTest.cpp
|
2016-04-06 08:38:15 +02:00
|
|
|
FunctionTest.cpp
|
[PM] Enable registration of out-of-tree passes with PassBuilder
Summary:
This patch adds a callback registration API to the PassBuilder,
enabling registering out-of-tree passes with it.
Through the Callback API, callers may register callbacks with the
various stages at which passes are added into pass managers, including
parsing of a pass pipeline as well as at extension points within the
default -O pipelines.
Registering utilities like `require<>` and `invalidate<>` needs to be
handled manually by the caller, but a helper is provided.
Additionally, adding passes at pipeline extension points is exposed
through the opt tool. This patch adds a `-passes-ep-X` commandline
option for every extension point X, which opt parses into pipelines
inserted into that extension point.
Reviewers: chandlerc
Reviewed By: chandlerc
Subscribers: lksbhm, grosser, davide, mehdi_amini, llvm-commits, mgorny
Differential Revision: https://reviews.llvm.org/D33464
llvm-svn: 307532
2017-07-10 12:57:55 +02:00
|
|
|
PassBuilderCallbacksTest.cpp
|
2012-07-16 09:44:45 +02:00
|
|
|
IRBuilderTest.cpp
|
2012-06-21 11:51:26 +02:00
|
|
|
InstructionsTest.cpp
|
2016-01-26 23:33:19 +01:00
|
|
|
IntrinsicsTest.cpp
|
2013-11-09 13:26:54 +01:00
|
|
|
LegacyPassManagerTest.cpp
|
2012-07-16 01:26:50 +02:00
|
|
|
MDBuilderTest.cpp
|
2018-03-16 21:13:32 +01:00
|
|
|
ManglerTest.cpp
|
2012-06-21 11:51:26 +02:00
|
|
|
MetadataTest.cpp
|
ADT: Split out simple_ilist, a simple intrusive list
Split out a new, low-level intrusive list type with clear semantics.
Unlike iplist (and ilist), all operations on simple_ilist are intrusive,
and simple_ilist never takes ownership of its nodes. This enables an
intuitive API that has the right defaults for intrusive lists.
- insert() takes references (not pointers!) to nodes (in iplist/ilist,
passing a reference will cause the node to be copied).
- erase() takes only iterators (like std::list), and does not destroy
the nodes.
- remove() takes only references and has the same behaviour as erase().
- clear() does not destroy the nodes.
- The destructor does not destroy the nodes.
- New API {erase,remove,clear}AndDispose() take an extra Disposer
functor for callsites that want to call some disposal routine (e.g.,
std::default_delete).
This list is not currently configurable, and has no callbacks.
The initial motivation was to fix iplist<>::sort to work correctly (even
with callbacks in ilist_traits<>). iplist<> uses simple_ilist<>::sort
directly. The new test in unittests/IR/ModuleTest.cpp crashes without
this commit.
Fixing sort() via a low-level layer provided a good opportunity to:
- Unit test the low-level functionality thoroughly.
- Modernize the API, largely inspired by other intrusive list
implementations.
Here's a sketch of a longer-term plan:
- Create BumpPtrList<>, a non-intrusive list implemented using
simple_ilist<>, and use it for the Token list in
lib/Support/YAMLParser.cpp. This will factor out the only real use of
createNode().
- Evolve the iplist<> and ilist<> APIs in the direction of
simple_ilist<>, making allocation/deallocation explicit at call sites
(similar to simple_ilist<>::eraseAndDispose()).
- Factor out remaining calls to createNode() and deleteNode() and remove
the customization from ilist_traits<>.
- Transition uses of iplist<>/ilist<> that don't need callbacks over to
simple_ilist<>.
llvm-svn: 280107
2016-08-30 18:23:55 +02:00
|
|
|
ModuleTest.cpp
|
2013-11-09 14:09:08 +01:00
|
|
|
PassManagerTest.cpp
|
2013-05-05 04:14:28 +02:00
|
|
|
PatternMatch.cpp
|
2012-08-04 11:52:39 +02:00
|
|
|
TypesTest.cpp
|
2014-07-24 02:53:19 +02:00
|
|
|
UseTest.cpp
|
2014-04-17 11:07:50 +02:00
|
|
|
UserTest.cpp
|
2014-03-04 12:17:44 +01:00
|
|
|
ValueHandleTest.cpp
|
2012-06-21 11:51:26 +02:00
|
|
|
ValueMapTest.cpp
|
2013-04-12 10:33:11 +02:00
|
|
|
ValueTest.cpp
|
2012-06-21 11:51:26 +02:00
|
|
|
VerifierTest.cpp
|
2012-11-12 11:01:17 +01:00
|
|
|
WaymarkTest.cpp
|
2012-06-21 11:51:26 +02:00
|
|
|
)
|
2018-10-17 12:36:23 +02:00
|
|
|
|
|
|
|
target_link_libraries(IRTests PRIVATE LLVMTestingSupport)
|