retdec
Namespaces | Functions
loop_optimizer.cpp File Reference

Implementation of the utilities for optimizers. More...

#include "retdec/llvmir2hll/analysis/used_vars_visitor.h"
#include "retdec/llvmir2hll/ir/assign_stmt.h"
#include "retdec/llvmir2hll/ir/break_stmt.h"
#include "retdec/llvmir2hll/ir/const_bool.h"
#include "retdec/llvmir2hll/ir/empty_stmt.h"
#include "retdec/llvmir2hll/ir/expression.h"
#include "retdec/llvmir2hll/ir/for_loop_stmt.h"
#include "retdec/llvmir2hll/ir/if_stmt.h"
#include "retdec/llvmir2hll/ir/return_stmt.h"
#include "retdec/llvmir2hll/ir/statement.h"
#include "retdec/llvmir2hll/ir/var_def_stmt.h"
#include "retdec/llvmir2hll/ir/variable.h"
#include "retdec/llvmir2hll/ir/while_loop_stmt.h"
#include "retdec/llvmir2hll/support/debug.h"
#include "retdec/llvmir2hll/support/types.h"
#include "retdec/llvmir2hll/utils/ir.h"
#include "retdec/llvmir2hll/utils/loop_optimizer.h"
#include "retdec/utils/container.h"

Namespaces

 retdec
 
 retdec::llvmir2hll
 

Functions

bool retdec::llvmir2hll::isLoopEnd (ShPtr< Statement > stmt)
 Returns true if stmt is the ending statement of a loop, false otherwise. More...
 
ShPtr< Expression > retdec::llvmir2hll::getExitCondition (ShPtr< Statement > loopEnd)
 Returns the exit condition from the given loop end. More...
 
ShPtr< SplittedWhileTrueLoop > retdec::llvmir2hll::splitWhileTrueLoop (ShPtr< WhileLoopStmt > stmt, ShPtr< IndVarInfo > indVarInfo)
 Splits the given "while True" loop stmt into three parts. More...
 
ShPtr< IndVarInfo > retdec::llvmir2hll::getIndVarInfo (ShPtr< WhileLoopStmt > stmt)
 Returns information about the induction variable in the given "while true" loop. More...
 

Detailed Description

Implementation of the utilities for optimizers.