OpenASIP  2.0
Functions | Variables
InnerLoopFinder.cc File Reference
#include <sstream>
#include <fstream>
#include <string>
#include <map>
#include "tce_config.h"
#include "CompilerWarnings.hh"
#include <llvm/Analysis/LoopPass.h>
#include <llvm/Analysis/ScalarEvolution.h>
#include <llvm/Support/CommandLine.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/Constants.h>
#include <llvm/Analysis/LoopInfo.h>
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils.h"
#include <llvm/Pass.h>
#include "llvm/CodeGen/Passes.h"
#include "InnerLoopFinder.hh"
#include "llvm/InitializePasses.h"
Include dependency graph for InnerLoopFinder.cc:

Go to the source code of this file.

Functions

static llvm::cl::opt< bool > DumpLoopInfo ("dump-loop-info", llvm::cl::init(false), llvm::cl::Hidden, llvm::cl::desc("Dump information about loops to files named [modulename].loopinfo.txt."))
 
static llvm::RegisterPass< InnerLoopFinderX ("find-innerloops-test", "Finds inner loops test.", false, true)
 
 INITIALIZE_PASS_BEGIN (InnerLoopFinder, "find-innerloops", "Finds info of the inner loops in the program.", false, true) INITIALIZE_PASS_END(InnerLoopFinder
 

Variables

find innerloops
 
find Finds info of the inner loops in the program
 
find Finds info of the inner loops in the false
 

Detailed Description

LLVM pass for finding inner loops in the code.

Author
2008-2015 Pekka Jääskeläinen

Definition in file InnerLoopFinder.cc.

Function Documentation

◆ DumpLoopInfo()

static llvm::cl::opt<bool> DumpLoopInfo ( "dump-loop-info"  ,
llvm::cl::init(false ,
llvm::cl::Hidden  ,
llvm::cl::desc("Dump information about loops to files named [modulename].loopinfo.txt.")   
)
static

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( InnerLoopFinder  ,
"find-innerloops ,
"Finds info of the inner loops in the program."  ,
false  ,
true   
)

◆ X()

static llvm::RegisterPass<InnerLoopFinder> X ( "find-innerloops-test"  ,
"Finds inner loops test."  ,
false  ,
true   
)
static

Variable Documentation

◆ false

find Finds info of the inner loops in the false

Definition at line 81 of file InnerLoopFinder.cc.

Referenced by OSEdModifyBehaviorCmd::Do(), and ExplorerPluginParameter::isSet().

◆ innerloops

find innerloops

Definition at line 79 of file InnerLoopFinder.cc.

◆ program

find Finds info of the inner loops in the program

Definition at line 80 of file InnerLoopFinder.cc.

Referenced by TTAProgram::TPEFProgramFactory::addProcedures(), StaticProgramAnalyzer::addProgram(), CodeCompressorPlugin::bemBits(), CompiledSimUtilizationStats::calculate(), TTAProgram::GlobalScope::copyAndRelocate(), POMDisassembler::createInstruction(), AssemblerParser::definition< ScannerT >::definition(), POMDisassembler::disassemble(), POMDisassembler::disassembleFully(), POMDisassembler::disassembler(), ProximSetMachineWinStatusCmd::Do(), CostEstimates::energy(), InfoProgramCommand::execute(), ProgramPass::executeProcedurePass(), SimpleICOptimizer::explore(), FindWindow::find(), SimulationController::findExitPoints(), TTASimulationController::findProgramExitPoints(), CostEstimator::Estimator::functionUnitEnergy(), ProgramImageGenerator::generateDataImage(), ProGeScriptGenerator::generateGhdlCompile(), ProGeScriptGenerator::generateModsimCompile(), GenerateProcessor::generateProcessor(), PreOptimizer::handleCFGDDG(), RFAccessTracker::handleEvent(), SimpleIfConverter::handleProgram(), ProgramPass::handleProgram(), PreOptimizer::handleProgram(), BBSchedulerController::handleProgram(), CostEstimator::Estimator::icEnergy(), POMDisassembler::label(), POMDisassembler::labelCount(), ProximDebuggerWindow::loadProgram(), ProximDisassemblyWindow::loadProgram(), DisassemblyGridTable::loadProgram(), main(), DisasmExecPercentageAttrProvider::moveCellAttr(), CompiledSimulation::moveExecutionCount(), ProgramGraph::ProgramGraph(), CostEstimator::Estimator::registerFileEnergy(), ProgramImageGenerator::relocTarget(), RemoteController::RemoteController(), CostEstimates::setEnergy(), DesignSpaceExplorer::simulate(), SimulationController::SimulationController(), AssemblerParser::definition< ScannerT >::start(), CodeCompressorPlugin::startNewProgram(), tandemSimulate(), CostEstimator::Estimator::totalEnergy(), CostEstimator::Estimator::totalEnergyOfFunctionUnits(), CostEstimator::Estimator::totalEnergyOfRegisterFiles(), MoveSlotDictionary::updateDictionary(), InstructionDictionary::updateDictionary(), DisasmTopCountAttrProvider::updateTopCountTable(), GenerateProcessor::validIntegratorParameters(), ProgramImageGenerator::writeDataSection(), and TTAProgram::Program::writeToTPEF().