mageec  0.1.0
MAchine Guided Energy Efficient Compilation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
gcc-plugin.cpp File Reference

GCC Plugin Interface. More...

#include "gcc-plugin.h"
#include "tree-pass.h"
#include "mageec/mageec.h"
#include "mageec-plugin.h"

Go to the source code of this file.

Functions

int plugin_init (struct plugin_name_args *plugin_info, struct plugin_gcc_version *version)
 Initilizes GCC Plugin by calling mageec_init. More...
 

Variables

int plugin_is_GPL_compatible
 Declared to allow GCC to load. More...
 
std::map< std::string, int > mageec_config
 MAGEEC Plugin Configuration. More...
 
const char * mageec_gcc_plugin_name
 Stored GCC Plugin name for future register_callbacks. More...
 
mageec_framework mageec_inst
 MAGEEC Instance. More...
 

Detailed Description

GCC Plugin Interface.

Definition in file gcc-plugin.cpp.

Function Documentation

int plugin_init ( struct plugin_name_args *  plugin_info,
struct plugin_gcc_version *  version 
)

Initilizes GCC Plugin by calling mageec_init.

Parameters
plugin_name_argsGCC plugin information.
plugin_gcc_versionGCC version information.
Returns
0 if MAGEEC successfully set up, 1 otherwise.

Definition at line 78 of file gcc-plugin.cpp.

Variable Documentation

std::map<std::string, int> mageec_config

MAGEEC Plugin Configuration.

Definition at line 45 of file gcc-plugin.cpp.

const char* mageec_gcc_plugin_name

Stored GCC Plugin name for future register_callbacks.

The plugin base_name for our hooks to use to schedule new passes.

Definition at line 51 of file gcc-plugin.cpp.

mageec_framework mageec_inst

MAGEEC Instance.

Definition at line 54 of file gcc-plugin.cpp.

int plugin_is_GPL_compatible

Declared to allow GCC to load.

Definition at line 36 of file gcc-plugin.cpp.