mageec  0.1.0
MAchine Guided Energy Efficient Compilation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
mageec::mageec_framework Class Reference

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...
 

Detailed Description

MAGEEC Framework.

Definition at line 40 of file mageec.h.

Member Function Documentation

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.

Parameters
compiler_versionCompiler and version, e.g. GCC-4.8.
compiler_targetCompiler target, e.g. arm-none-gnueabi.
Returns
0 if MAGEEC successfully set up, 1 otherwise.

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.

Parameters
passPass name.
functionFunction name.
Returns
Decision.

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.

Parameters
filenameName 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.

Parameters
nameFunction name.
featuresFeature vector for function.

Definition at line 60 of file mageec.cpp.


The documentation for this class was generated from the following files: