2008-09-22 03:08:49 +02:00
|
|
|
add_llvm_library(LLVMipo
|
|
|
|
ArgumentPromotion.cpp
|
Introduce a BarrierNoop pass, a hack designed to allow *some* control
over the implicitly-formed-and-nesting CGSCC pass manager and function
pass managers, especially when using them on the opt commandline or
using extension points in the module builder. The '-barrier' opt flag
(or the pass itself) will create a no-op module pass in the pipeline,
resetting the pass manager stack, and allowing the creation of a new
pipeline of function passes or CGSCC passes to be created that is
independent from any previous pipelines.
For example, this can be used to test running two CGSCC passes in
independent CGSCC pass managers as opposed to in the same CGSCC pass
manager. It also allows us to introduce a further hack into the
PassManagerBuilder to separate the O0 pipeline extension passes from the
always-inliner's CGSCC pass manager, which they likely do not want to
participate in... At the very least none of the Sanitizer passes want
this behavior.
This fixes a bug with ASan at O0 currently, and I'll commit the ASan
test which covers this pass. I'm happy to add a test case that this pass
exists and works, but not sure how much time folks would like me to
spend adding test cases for the details of its behavior of partition
pass managers.... The whole thing is just vile, and mostly intended to
unblock ASan, so I'm hoping to rip this all out in a brave new pass
manager world.
llvm-svn: 166172
2012-10-18 10:05:46 +02:00
|
|
|
BarrierNoopPass.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
ConstantMerge.cpp
|
|
|
|
DeadArgumentElimination.cpp
|
|
|
|
ExtractGV.cpp
|
2009-07-21 19:43:20 +02:00
|
|
|
FunctionAttrs.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
GlobalDCE.cpp
|
|
|
|
GlobalOpt.cpp
|
2009-07-21 19:43:20 +02:00
|
|
|
IPConstantPropagation.cpp
|
|
|
|
IPO.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
InlineAlways.cpp
|
|
|
|
InlineSimple.cpp
|
2009-07-21 19:43:20 +02:00
|
|
|
Inliner.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
Internalize.cpp
|
|
|
|
LoopExtractor.cpp
|
2015-02-20 21:30:47 +01:00
|
|
|
LowerBitSets.cpp
|
2008-11-02 07:01:39 +01:00
|
|
|
MergeFunctions.cpp
|
2009-06-14 15:39:56 +02:00
|
|
|
PartialInlining.cpp
|
2011-08-02 23:50:27 +02:00
|
|
|
PassManagerBuilder.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
PruneEH.cpp
|
|
|
|
StripDeadPrototypes.cpp
|
|
|
|
StripSymbols.cpp
|
2015-02-11 04:28:02 +01:00
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
|
|
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/IPO
|
2008-09-22 03:08:49 +02:00
|
|
|
)
|
2012-06-24 15:32:01 +02:00
|
|
|
|
|
|
|
add_dependencies(LLVMipo intrinsics_gen)
|