|
LLVM 23.0.0git
|
This class is a pass that identifies similarity in a Module, extracts instances of the similarity, and then consolidating the similar regions in an effort to reduce code size. More...
#include "llvm/Transforms/IPO/IROutliner.h"
Public Member Functions | |
| IROutliner (function_ref< TargetTransformInfo &(Function &)> GTTI, function_ref< IRSimilarityIdentifier &(Module &)> GIRSI, function_ref< OptimizationRemarkEmitter &(Function &)> GORE) | |
| LLVM_ABI bool | run (Module &M) |
This class is a pass that identifies similarity in a Module, extracts instances of the similarity, and then consolidating the similar regions in an effort to reduce code size.
It uses the IRSimilarityIdentifier pass to identify the similar regions of code, and then extracts the similar sections into a single function. See the above for an example as to how code is extracted and consolidated into a single function.
Definition at line 200 of file IROutliner.h.
|
inline |
Definition at line 202 of file IROutliner.h.
Definition at line 2945 of file IROutliner.cpp.
References EnableLinkOnceODRIROutlining, and NoCostModel.