llvm-6502/include/llvm/Transforms
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
..
IPO Add an option to turn off the expensive GVN load PRE part of GVN. 2012-04-02 22:16:50 +00:00
Utils Move the CodeExtractor utility to a dedicated header file / source file, 2012-05-04 10:18:49 +00:00
Instrumentation.h ThreadSanitizer, a race detector. First LLVM commit. 2012-02-13 22:50:51 +00:00
IPO.h Add support for disabling llvm.lifetime intrinsics in the AlwaysInliner. These 2012-02-25 02:56:01 +00:00
Scalar.h Add a new ObjC ARC optimization pass to eliminate unneeded 2012-01-17 20:52:24 +00:00
Vectorize.h Enhance BBVectorize to more-properly handle pointer values and vectorize GEPs. 2012-04-14 07:32:43 +00:00