LLVM  6.0.0svn
Classes | Namespaces | Macros | Functions | Variables
LoopExtractor.cpp File Reference
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/LoopPass.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Transforms/Utils/CodeExtractor.h"
#include <fstream>
#include <set>
Include dependency graph for LoopExtractor.cpp:

Go to the source code of this file.

Classes

struct  false::SingleLoopExtractor
 SingleLoopExtractor - For bugpoint. More...
 

Namespaces

 false
 

Macros

#define DEBUG_TYPE   "loop-extract"
 

Functions

 STATISTIC (NumExtracted, "Number of loops extracted")
 
 INITIALIZE_PASS_BEGIN (LoopExtractor, "loop-extract", "Extract loops into new functions", false, false) INITIALIZE_PASS_END(LoopExtractor
 
 INITIALIZE_PASS (SingleLoopExtractor, "loop-extract-single", "Extract at most one loop into a new function", false, false) Pass *llvm
 
 INITIALIZE_PASS (BlockExtractorPass, "extract-blocks", "Extract Basic Blocks From Module (for bugpoint use)", false, false) ModulePass *llvm
 

Variables

loop extract
 
loop Extract loops into new functions
 
loop Extract loops into new false
 
static cl::opt< std::string > BlockFile ("extract-blocks-file", cl::value_desc("filename"), cl::desc("A file containing list of basic blocks to not extract"), cl::Hidden)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "loop-extract"

Definition at line 32 of file LoopExtractor.cpp.

Function Documentation

◆ INITIALIZE_PASS() [1/2]

INITIALIZE_PASS ( SingleLoopExtractor  ,
"loop-extract-single"  ,
"Extract at most one loop into a new function ,
false  ,
false   
)

◆ INITIALIZE_PASS() [2/2]

INITIALIZE_PASS ( BlockExtractorPass  ,
"extract-blocks"  ,
"Extract Basic Blocks From Module (for bugpoint use)"  ,
false  ,
false   
)

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( LoopExtractor  ,
"loop-extract ,
"Extract loops into new functions ,
false  ,
false   
)

◆ STATISTIC()

STATISTIC ( NumExtracted  ,
"Number of loops extracted"   
)

Variable Documentation

◆ BlockFile

cl::opt<std::string> BlockFile("extract-blocks-file", cl::value_desc("filename"), cl::desc("A file containing list of basic blocks to not extract"), cl::Hidden)
static

◆ extract

loop extract

◆ false

loop Extract loops into new false

Definition at line 63 of file LoopExtractor.cpp.

◆ functions

loop Extract loops into new functions

Definition at line 63 of file LoopExtractor.cpp.