7 #ifndef RETDEC_LLVMIR2HLL_OPTIMIZER_OPTIMIZERS_C_CAST_OPTIMIZER_H
8 #define RETDEC_LLVMIR2HLL_OPTIMIZER_OPTIMIZERS_C_CAST_OPTIMIZER_H
94 virtual std::string
getId()
const override {
return "CCast"; }
Removes casts that are in the C language implicit.
Definition: c_cast_optimizer.h:87
CCastOptimizer(ShPtr< Module > module)
Constructs a new optimizer.
Definition: c_cast_optimizer.cpp:39
virtual std::string getId() const override
Returns the ID of the optimizer.
Definition: c_cast_optimizer.h:94
ShPtr< Expression > checkAndOptimize(ShPtr< Expression > dst, ShPtr< Expression > src)
Removes cast expression of source expression, if destination expression doesn't need this cast.
Definition: c_cast_optimizer.cpp:55
virtual void visit(ShPtr< GlobalVarDef > varDef) override
Definition: ordered_all_visitor.cpp:95
bool optimized
true if a part of code has been optimized, false otherwise.
Definition: c_cast_optimizer.h:107
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.