llvm-6502/tools/bugpoint
Chandler Carruth 99650c9088 Move the CodeExtractor utility to a dedicated header file / source file,
and expose it as a utility class rather than as free function wrappers.

The simple free-function interface works well for the bugpoint-specific
pass's uses of code extraction, but in an upcoming patch for more
advanced code extraction, they simply don't expose a rich enough
interface. I need to expose various stages of the process of doing the
code extraction and query information to decide whether or not to
actually complete the extraction or give up.

Rather than build up a new predicate model and pass that into these
functions, just take the class that was actually implementing the
functions and lift it up into a proper interface that can be used to
perform code extraction. The interface is cleaned up and re-documented
to work better in a header. It also is now setup to accept the blocks to
be extracted in the constructor rather than in a method.

In passing this essentially reverts my previous commit here exposing
a block-level query for eligibility of extraction. That is no longer
necessary with the more rich interface as clients can query the
extraction object for eligibility directly. This will reduce the number
of walks of the input basic block sequence by quite a bit which is
useful if this enters the normal optimization pipeline.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156163 91177308-0d34-0410-b5e6-96231b3b80d8
2012-05-04 10:18:49 +00:00
..
BugDriver.cpp rename getHostTriple into getDefaultTargetTriple 2011-11-01 21:32:20 +00:00
BugDriver.h Be more consistent in using ValueToValueMapTy. 2010-10-13 01:36:30 +00:00
bugpoint.cpp Allow bugpoint to recognize -bb-vectorize 2012-02-07 21:11:12 +00:00
CMakeLists.txt Add a basic-block autovectorization pass. 2012-02-01 03:51:43 +00:00
CrashDebugger.cpp Add braces to remove silly warning. 2011-12-25 06:56:22 +00:00
ExecutionDriver.cpp Remove the C backend. 2012-03-23 05:50:46 +00:00
ExtractFunction.cpp Move the CodeExtractor utility to a dedicated header file / source file, 2012-05-04 10:18:49 +00:00
FindBugs.cpp Most of bugpoint now only needs to know the pass names. 2010-08-08 03:55:08 +00:00
ListReducer.h Convert some tab stops into spaces. 2010-07-12 08:16:59 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Makefile Add a basic-block autovectorization pass. 2012-02-01 03:51:43 +00:00
Miscompilation.cpp reapply the patches reverted in r149470 that reenable ConstantDataArray, 2012-02-05 02:29:43 +00:00
OptimizerDriver.cpp Fix two bugpoint bugs: 2012-03-19 23:42:11 +00:00
ToolRunner.cpp Fix unintentional use of operator bool. 2012-05-02 05:39:10 +00:00
ToolRunner.h Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch 2011-12-20 02:50:00 +00:00