retdec
goto_stmt_optimizer.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_LLVMIR2HLL_OPTIMIZER_OPTIMIZERS_GOTO_STMT_OPTIMIZER_H
8 #define RETDEC_LLVMIR2HLL_OPTIMIZER_OPTIMIZERS_GOTO_STMT_OPTIMIZER_H
9 
12 
13 namespace retdec {
14 namespace llvmir2hll {
15 
16 class GotoStmtOptimizer final: public FuncOptimizer {
17 public:
19 
20  virtual std::string getId() const override { return "GotoStmt"; }
21 
22 private:
26  virtual void visit(ShPtr<GotoStmt> stmt) override;
28 };
29 
30 } // namespace llvmir2hll
31 } // namespace retdec
32 
33 #endif
A base class of all function optimizers.
Definition: func_optimizer.h:44
Definition: goto_stmt_optimizer.h:16
GotoStmtOptimizer(ShPtr< Module > module)
Constructs a new optimizer.
Definition: goto_stmt_optimizer.cpp:27
virtual std::string getId() const override
Returns the ID of the optimizer.
Definition: goto_stmt_optimizer.h:20
virtual void visit(ShPtr< GlobalVarDef > varDef) override
Definition: ordered_all_visitor.cpp:95
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.