VapourSynth-llvmexpr
Loading...
Searching...
No Matches
StaticAllocReachabilityPass.hpp
Go to the documentation of this file.
1
19
20#ifndef LLVMEXPR_ANALYSIS_STATIC_ALLOC_REACHABILITY_PASS_HPP
21#define LLVMEXPR_ANALYSIS_STATIC_ALLOC_REACHABILITY_PASS_HPP
22
23#include "../framework/Pass.hpp"
24
25#include <set>
26#include <string>
27#include <vector>
28
29namespace analysis {
30
32 std::vector<std::set<std::string>> static_alloc_in;
33 std::vector<std::set<std::string>> static_alloc_out;
34};
35
44 : public AnalysisPass<StaticAllocReachabilityPass,
45 StaticAllocReachabilityResult> {
46 public:
48
49 [[nodiscard]] const char* getName() const override {
50 return "Static Allocation Reachability Pass";
51 }
52
53 Result run(const std::vector<Token>& tokens, AnalysisManager& am) override;
54};
55
56} // namespace analysis
57
58#endif // LLVMEXPR_ANALYSIS_STATIC_ALLOC_REACHABILITY_PASS_HPP
Result run(const std::vector< Token > &tokens, AnalysisManager &am) override
std::vector< std::set< std::string > > static_alloc_in
std::vector< std::set< std::string > > static_alloc_out