retdec
c_array_arg_optimizer.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_LLVMIR2HLL_OPTIMIZER_OPTIMIZERS_C_ARRAY_ARG_OPTIMIZER_H
8 #define RETDEC_LLVMIR2HLL_OPTIMIZER_OPTIMIZERS_C_ARRAY_ARG_OPTIMIZER_H
9 
12 
13 namespace retdec {
14 namespace llvmir2hll {
15 
45 class CArrayArgOptimizer final: public FuncOptimizer {
46 public:
48 
49  virtual std::string getId() const override { return "CArrayArg"; }
50 
54  void visit(ShPtr<CallExpr> expr) override;
56 };
57 
58 } // namespace llvmir2hll
59 } // namespace retdec
60 
61 #endif
Optimizes array arguments of function calls.
Definition: c_array_arg_optimizer.h:45
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: c_array_arg_optimizer.h:49
CArrayArgOptimizer(ShPtr< Module > module)
Constructs a new optimizer.
Definition: c_array_arg_optimizer.cpp:65
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.