Spicy
optimizer.h
1 // Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2 
3 #pragma once
4 
5 #include <memory>
6 #include <utility>
7 #include <vector>
8 
9 #include <hilti/ast/id.h>
10 #include <hilti/compiler/unit.h>
11 
12 namespace hilti {
13 
14 struct Optimizer {
15 public:
16  Optimizer(const std::vector<std::shared_ptr<Unit>>& units) : _units(units) {}
17  ~Optimizer() {}
18 
19  void run();
20 
21 private:
22  const std::vector<std::shared_ptr<Unit>>& _units;
23 };
24 
25 } // namespace hilti
Definition: optimizer.h:14