VapourSynth-llvmexpr
Loading...
Searching...
No Matches
CoordinateUsagePass.cpp
Go to the documentation of this file.
1
19
23
24namespace analysis {
25
27CoordinateUsagePass::run(const std::vector<Token>& tokens,
28 [[maybe_unused]] AnalysisManager& am) {
30 for (const auto& token : tokens) {
31 if (token.type == TokenType::ConstantX) {
32 result.uses_x = true;
33 }
34 if (token.type == TokenType::ConstantY) {
35 result.uses_y = true;
36 }
37 if (result.uses_x && result.uses_y) {
38 break;
39 }
40 }
41 return result;
42}
43
44} // namespace analysis
CoordinateUsageResult run(const std::vector< Token > &tokens, AnalysisManager &am) override