7 #ifndef RETDEC_LLVMIR2HLL_OPTIMIZER_OPTIMIZERS_AGGRESSIVE_DEREF_OPTIMIZER_H
8 #define RETDEC_LLVMIR2HLL_OPTIMIZER_OPTIMIZERS_AGGRESSIVE_DEREF_OPTIMIZER_H
36 virtual std::string
getId()
const override {
return "AggressiveDeref"; }
Optimizes dereferences of integer values.
Definition: aggressive_deref_optimizer.h:32
bool intDerefFound
Definition: aggressive_deref_optimizer.h:52
void tryToOptimizeStmt(ShPtr< Statement > stmt, ShPtr< Expression > lhs, ShPtr< Expression > rhs)
Tries to optimize the given statement stmt, composed of lhs and rhs.
Definition: aggressive_deref_optimizer.cpp:36
virtual void visit(ShPtr< GlobalVarDef > varDef) override
Definition: ordered_all_visitor.cpp:95
virtual std::string getId() const override
Returns the ID of the optimizer.
Definition: aggressive_deref_optimizer.h:36
AggressiveDerefOptimizer(ShPtr< Module > module)
Constructs a new optimizer.
Definition: aggressive_deref_optimizer.cpp:27
A base class of all function optimizers.
Definition: func_optimizer.h:44
ShPtr< Module > module
The module that is being optimized.
Definition: optimizer.h:79
virtual void visit(ShPtr< GlobalVarDef > varDef) override
Definition: ordered_all_visitor.cpp:95
A base class of all function optimizers.
A library providing API for working with back-end IR.
std::shared_ptr< T > ShPtr
An alias for a shared pointer.
Definition: smart_ptr.h:18
Definition: archive_wrapper.h:19
Declarations, aliases, macros, etc. for the use of smart pointers.