pinapa-tree-decoration.h File Reference

GCC's AST additional decoration for the SystemC parser. More...

#include "pinapa-parser-all.h"
#include <ext/hash_set>
#include "pinapa-hash.h"
#include "pinapa-tree.h"
#include "pinapa-tree-utils.h"
#include "pinapa-sensitivity-list.h"
#include "pinapa-systemc-light.h"
#include "pinapa-decoration-base.h"
#include "pinapa-c-value.h"
#include "pinapa-interface-plus.h"
#include "pinapa-primitives.def"

Go to the source code of this file.

Namespaces

namespace  pinapa

Classes

class  pinapa::st_deco_first< deco, tree_node >
class  pinapa::key_assoc_tree_handle
struct  pinapa::equal_to_key_assoc_tree_handle
struct  pinapa::hash_key_assoc_tree_handle
class  pinapa::st_tree_instance_deco_t
class  pinapa::st_tree_deco_t
class  pinapa::st_dependant_deco
class  pinapa::st_read_deco
class  pinapa::st_write_deco
class  pinapa::st_func_decl_deco
class  pinapa::st_tlm_write_deco
class  pinapa::st_type_deco
class  pinapa::st_data_member_decl_deco
class  pinapa::st_inst_dependant_deco
class  pinapa::st_event_tree_deco
class  pinapa::st_wait_deco

Defines

#define PINAPA_NO_DEBUG
#define PINAPA_BEGIN_DOX
#define PINAPA_END_DOX
#define PINAPA_DECLARE_PRIMITIVE(prim, com)   PINAPA_BEGIN_DOX com PINAPA_END_DOX prim,

Typedefs

typedef st_tree_deco_t * pinapa::tree_deco_t
typedef st_dependant_deco * pinapa::dependant_deco
typedef st_type_deco * pinapa::type_deco
typedef st_data_member_decl_deco * pinapa::data_member_decl_deco
typedef st_event_tree_deco * pinapa::event_tree_deco
typedef st_inst_dependant_deco * pinapa::inst_dependant_deco
typedef st_deco_first< st_tree_deco_t,
tree_node > 
pinapa::st_tree_deco
typedef st_tree_deco * pinapa::tree_deco
typedef st_deco_first< st_tree_deco_t,
tree_node > 
pinapa::st_tree_deco
typedef st_tree_deco * pinapa::tree_deco
typedef st_deco_first< st_tree_instance_deco_t,
key_assoc_tree_handle > 
pinapa::st_tree_instance_deco
typedef st_tree_instance_deco * pinapa::tree_instance_deco
typedef hash_map< key_assoc_tree_handle,
tree_instance_deco, hash_key_assoc_tree_handle,
equal_to_key_assoc_tree_handle > 
pinapa::assoc_tree_handle
typedef st_wait_deco * pinapa::wait_deco

Enumerations

enum  pinapa::sc_primitive_t {
  pinapa::CPP_STANDARD, pinapa::CPP_FUNC_DECL, pinapa::CPP_DATA_MEMBER, pinapa::SC_VARIABLE_DECL,
  pinapa::PINAPA_TYPE, pinapa::SC_PORT, pinapa::SC_WRITE, pinapa::SC_READ,
  pinapa::SC_MODULE, pinapa::SC_WAIT, pinapa::PINAPA_BASIC_SEQ_WRITE, pinapa::PINAPA_BASIC_ARBITER_WRITE,
  pinapa::PINAPA_BASIC_SEQ_READ, pinapa::PINAPA_BASIC_ARBITER_READ, pinapa::PINAPA_TAC_ROUTER_READ, pinapa::PINAPA_TAC_ARBITER_READ,
  pinapa::PINAPA_TAC_SEQ_READ, pinapa::PINAPA_TAC_ROUTER_WRITE, pinapa::PINAPA_TAC_ARBITER_WRITE, pinapa::PINAPA_TAC_SEQ_WRITE,
  pinapa::PINAPA_TAC_SET_ACCESS_ERROR, pinapa::TLM_IS_ERROR, pinapa::TLM_IS_OK, pinapa::TLM_IS_OVERLAP,
  pinapa::TLM_IS_NO_RESPONSE, pinapa::TLM_SET_OK, pinapa::TLM_SET_ERROR, pinapa::SC_NOTIFY,
  pinapa::SC_NEXT_TRIGGER, pinapa::PINAPA_TLM_BASIC_READ, pinapa::PINAPA_TLM_BASIC_WRITE, pinapa::PINAPA_TLM_TAC_READ,
  pinapa::PINAPA_TLM_TAC_WRITE, pinapa::TLM_PV_WAIT, pinapa::TLM_PV_NEXT_TRIGGER, pinapa::TLM_IS_SYNCHRO
}
enum  pinapa::type_of_type { pinapa::PINAPA_TLM_ADDRESS_TYPE, pinapa::PINAPA_TLM_DATA_TYPE, pinapa::PINAPA_STANDARD_TYPE }

Functions

char * pinapa::get_name (sc_primitive_t prim)
char * pinapa::get_doc (sc_primitive_t prim)
template<>
void * pinapa::get_decoration< key_assoc_tree_handle > (key_assoc_tree_handle &th)
template<>
void pinapa::set_decoration< key_assoc_tree_handle > (key_assoc_tree_handle &th, void *d)
void pinapa::gdb_dump_instance_deco ()
void pinapa::print_primitive (sc_primitive_t sc_primitive)

Variables

hash_map< tree, tree_decopinapa::tree_decoration_map
assoc_tree_handle pinapa::instances_deco


Detailed Description

GCC's AST additional decoration for the SystemC parser.

A field has been added to each node of the trees from GCC. (This is the void * decoration; in the structure tree_type in the file tree.h

This file provides high level functions to manipulate this decoration.


Define Documentation

#define PINAPA_BEGIN_DOX

#define PINAPA_DECLARE_PRIMITIVE ( prim,
com   )     PINAPA_BEGIN_DOX com PINAPA_END_DOX prim,

#define PINAPA_END_DOX

#define PINAPA_NO_DEBUG

Generated by
Matthieu Moy <Matthieu.Moy@st.com>
Back to Pinapa Home Page