LLVM 19.0.0git
Classes | Namespaces | Macros | Functions | Variables
LoopExtractor.cpp File Reference
#include "llvm/Transforms/IPO/LoopExtractor.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassManager.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/Utils.h"
#include "llvm/Transforms/Utils/CodeExtractor.h"

Go to the source code of this file.

Classes

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

Namespaces

namespace  false
 

Macros

#define DEBUG_TYPE   "loop-extract"
 

Functions

 STATISTIC (NumExtracted, "Number of loops extracted")
 
 INITIALIZE_PASS_BEGIN (LoopExtractorLegacyPass, "loop-extract", "Extract loops into new functions", false, false) INITIALIZE_PASS_END(LoopExtractorLegacyPass
 
 INITIALIZE_PASS (SingleLoopExtractor, "loop-extract-single", "Extract at most one loop into a new function", false, false) Pass *llvm
 

Variables

loop extract
 
loop Extract loops into new functions
 
loop Extract loops into new false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "loop-extract"

Definition at line 31 of file LoopExtractor.cpp.

Function Documentation

◆ INITIALIZE_PASS()

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

Definition at line 104 of file LoopExtractor.cpp.

◆ INITIALIZE_PASS_BEGIN()

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

◆ STATISTIC()

STATISTIC ( NumExtracted  ,
"Number of loops extracted"   
)

Variable Documentation

◆ extract

loop extract

Definition at line 92 of file LoopExtractor.cpp.

Referenced by llvm::mdconst::extract(), and llvm::DWARFDebugAranges::generate().

◆ false

loop Extract loops into new false

Definition at line 93 of file LoopExtractor.cpp.

◆ functions

loop Extract loops into new functions

Definition at line 93 of file LoopExtractor.cpp.