mageec
0.1.0
MAchine Guided Energy Efficient Compilation
|
MAGEEC Framework. More...
#include <mageec.h>
Public Member Functions | |
int | init (std::string compiler_version, std::string compiler_target) |
Initilizes the MAGEEC Machine Learner. More... | |
void | new_file (std::string filename) |
Informs the framework (and machine learner) that a new file has been loaded. More... | |
void | end_file (void) |
Informs the framework (and machine learner) that the current file has finished processing. More... | |
void | finish (void) |
Disconnects MAGEEC from Machine Learner. More... | |
std::vector< mageec_pass * > | all_passes (void) |
void | take_features (std::string name, std::vector< mageec_feature * > features) |
Pass a feature set to the MAGEEC feature set storage. More... | |
decision | make_decision (std::string pass, std::string function) |
Make a decision based on function name and already stored feature set. More... | |
std::vector< mageec_pass * > mageec_framework::all_passes | ( | void | ) |
Definition at line 55 of file mageec.cpp.
void mageec_framework::end_file | ( | void | ) |
Informs the framework (and machine learner) that the current file has finished processing.
Definition at line 42 of file mageec.cpp.
void mageec_framework::finish | ( | void | ) |
Disconnects MAGEEC from Machine Learner.
Definition at line 49 of file mageec.cpp.
int mageec_framework::init | ( | std::string | compiler_version, |
std::string | compiler_target | ||
) |
Initilizes the MAGEEC Machine Learner.
compiler_version | Compiler and version, e.g. GCC-4.8. |
compiler_target | Compiler target, e.g. arm-none-gnueabi. |
Definition at line 26 of file mageec.cpp.
decision mageec_framework::make_decision | ( | std::string | pass, |
std::string | function | ||
) |
Make a decision based on function name and already stored feature set.
pass | Pass name. |
function | Function name. |
Definition at line 66 of file mageec.cpp.
void mageec_framework::new_file | ( | std::string | filename) |
Informs the framework (and machine learner) that a new file has been loaded.
filename | Name of file being compiled (for logging purposes). |
Definition at line 35 of file mageec.cpp.
void mageec_framework::take_features | ( | std::string | name, |
std::vector< mageec_feature * > | features | ||
) |
Pass a feature set to the MAGEEC feature set storage.
name | Function name. |
features | Feature vector for function. |
Definition at line 60 of file mageec.cpp.