VapourSynth-llvmexpr
Loading...
Searching...
No Matches
VariableUsagePass.hpp
Go to the documentation of this file.
1
19
20#ifndef LLVMEXPR_ANALYSIS_PASSES_VARIABLEUSAGEPASS_HPP
21#define LLVMEXPR_ANALYSIS_PASSES_VARIABLEUSAGEPASS_HPP
22
23#include "../framework/Pass.hpp"
24
25#include <set>
26#include <string>
27
28namespace analysis {
29
31 std::set<std::string> all_vars;
32};
33
43 : public AnalysisPass<VariableUsagePass, VariableUsageResult> {
44 public:
45 VariableUsageResult run(const std::vector<Token>& tokens,
46 AnalysisManager& am) override;
47
48 [[nodiscard]] const char* getName() const override {
49 return "VariableUsagePass";
50 }
51};
52
53} // namespace analysis
54
55#endif // LLVMEXPR_ANALYSIS_PASSES_VARIABLEUSAGEPASS_HPP
const char * getName() const override
VariableUsageResult run(const std::vector< Token > &tokens, AnalysisManager &am) override
std::set< std::string > all_vars