LLVM  8.0.1
Macros | Functions | Variables
BlockExtractor.cpp File Reference
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Transforms/Utils/CodeExtractor.h"
Include dependency graph for BlockExtractor.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "block-extractor"
 

Functions

 STATISTIC (NumExtracted, "Number of basic blocks extracted")
 
 INITIALIZE_PASS (BlockExtractor, "extract-blocks", "Extract basic blocks from module", false, false) ModulePass *llvm
 

Variables

static cl::opt< std::string > BlockExtractorFile ("extract-blocks-file", cl::value_desc("filename"), cl::desc("A file containing list of basic blocks to extract"), cl::Hidden)
 
cl::opt< boolBlockExtractorEraseFuncs ("extract-blocks-erase-funcs", cl::desc("Erase the existing functions"), cl::Hidden)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "block-extractor"

Definition at line 28 of file BlockExtractor.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( BlockExtractor  ,
"extract-blocks"  ,
"Extract basic blocks from module"  ,
false  ,
false   
)

Definition at line 65 of file BlockExtractor.cpp.

◆ STATISTIC()

STATISTIC ( NumExtracted  ,
"Number of basic blocks extracted"   
)

Variable Documentation

◆ BlockExtractorEraseFuncs

cl::opt<bool> BlockExtractorEraseFuncs("extract-blocks-erase-funcs", cl::desc("Erase the existing functions"), cl::Hidden)

◆ BlockExtractorFile

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