|
LLVM
8.0.1
|
#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.h"#include "llvm/Transforms/Utils/BasicBlockUtils.h"#include "llvm/Transforms/Utils/CodeExtractor.h"#include <fstream>#include <set>
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 | |
Variables | |
| loop | extract |
| loop Extract loops into new | functions |
| loop Extract loops into new | false |
| #define DEBUG_TYPE "loop-extract" |
Definition at line 33 of file LoopExtractor.cpp.
| INITIALIZE_PASS | ( | SingleLoopExtractor | , |
| "loop-extract-single" | , | ||
| "Extract at most one loop into a new function" | , | ||
| false | , | ||
| false | |||
| ) |
Definition at line 76 of file LoopExtractor.cpp.
References llvm::LoopInfo::erase(), llvm::CodeExtractor::extractCodeRegion(), llvm::Function::getEntryBlock(), llvm::LoopBase< BlockT, LoopT >::getExitBlocks(), llvm::LoopBase< BlockT, LoopT >::getHeader(), llvm::BasicBlock::getParent(), llvm::LoopBase< BlockT, LoopT >::getParentLoop(), llvm::Instruction::getSuccessor(), llvm::BasicBlock::getTerminator(), llvm::Loop::isLoopSimplifyForm(), llvm::LPPassManager::markLoopAsDeleted(), and llvm::SmallVectorBase::size().
| INITIALIZE_PASS_BEGIN | ( | LoopExtractor | , |
| "loop-extract" | , | ||
| "Extract loops into new functions" | , | ||
| false | , | ||
| false | |||
| ) |
| STATISTIC | ( | NumExtracted | , |
| "Number of loops extracted" | |||
| ) |
| loop extract |
Definition at line 64 of file LoopExtractor.cpp.
Referenced by llvm::DWARFListType< RangeListEntry >::clear(), llvm::DWARFContext::dump(), llvm::mdconst::extract(), llvm::DWARFListTableBase< DWARFDebugRnglist >::extractHeaderAndOffsets(), llvm::DWARFListTableHeader::getOffsetEntry(), and llvm::BitTracker::RegisterCell::operator[]().
| loop Extract loops into new false |
Definition at line 64 of file LoopExtractor.cpp.
| loop Extract loops into new functions |
Definition at line 64 of file LoopExtractor.cpp.
1.8.13