LLVM API Documentation

LoopExtractor.cpp File Reference

#include "llvm/Transforms/IPO.h"
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/Analysis/Dominators.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/FunctionUtils.h"
#include "llvm/ADT/Statistic.h"

Include dependency graph for LoopExtractor.cpp:

Go to the source code of this file.

Functions

FunctionPassllvm::createLoopExtractorPass ()
FunctionPassllvm::createSingleLoopExtractorPass ()
ModulePassllvm::createBlockExtractorPass (std::vector< BasicBlock * > &BTNE)

Variables

Statistic NumExtracted ("loop-extract","Number of loops extracted")
RegisterOpt< LoopExtractor > X ("loop-extract","Extract loops into new functions")
RegisterOpt< SingleLoopExtractor > Y ("loop-extract-single","Extract at most one loop into a new function")
RegisterOpt< BlockExtractorPass > XX ("extract-blocks","Extract Basic Blocks From Module (for bugpoint use)")


Variable Documentation

std::vector<BasicBlock*> BlocksToNotExtract

Definition at line 144 of file LoopExtractor.cpp.

Statistic NumExtracted("loop-extract","Number of loops extracted") [static]

unsigned NumLoops

Definition at line 35 of file LoopExtractor.cpp.

RegisterOpt<LoopExtractor> X("loop-extract","Extract loops into new functions") [static]

RegisterOpt<BlockExtractorPass> XX("extract-blocks","Extract Basic Blocks From Module (for bugpoint use)") [static]

RegisterOpt<SingleLoopExtractor> Y("loop-extract-single","Extract at most one loop into a new function") [static]