docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
optimization_report.h
Go to the documentation of this file.
1#pragma once
2
3#include <nlohmann/json.hpp>
4#include <nlohmann/json_fwd.hpp>
5#include <string>
6#include <tuple>
7
10
11
12namespace sdfg {
13
16 bool applied;
17 std::string reason;
18 nlohmann::json info;
19};
20
22private:
23 StructuredSDFG& sdfg_;
24 nlohmann::json report_;
25 bool aggregate_;
26
27public:
28 OptimizationReport(StructuredSDFG& sdfg, bool aggregate = true);
29
30 void add_pass_entry(const std::string& pass_name, long duration, bool applied);
31
33 int loopnest_index, const std::string& transformation_name, long apply_duration, const TransformReport& report
34 );
35
36 void add_target_test(size_t loopnest_index, const std::string& target_name, bool success);
37
38 nlohmann::json get_report();
39};
40
41} // namespace sdfg
void add_target_test(size_t loopnest_index, const std::string &target_name, bool success)
OptimizationReport(StructuredSDFG &sdfg, bool aggregate=true)
void add_transformation_entry(int loopnest_index, const std::string &transformation_name, long apply_duration, const TransformReport &report)
void add_pass_entry(const std::string &pass_name, long duration, bool applied)
nlohmann::json get_report()
Definition structured_sdfg.h:30
Definition analysis.h:7
Definition optimization_report.h:14
bool applied
Definition optimization_report.h:16
nlohmann::json info
Definition optimization_report.h:18
bool possible
Definition optimization_report.h:15
std::string reason
Definition optimization_report.h:17