systemc-clang 2.0.0
Parsing SystemC constructs
|
This is the main consumer class that beings the parsing of SystemC. More...
#include <SystemCClang.h>
Public Member Functions | |
SystemCConsumer (clang::CompilerInstance &, std::string top="!none") | |
SystemCConsumer (clang::ASTUnit *from_ast, std::string top="!none") | |
virtual | ~SystemCConsumer () |
void | processNetlist (FindSCMain *scmain, ModuleDeclarationMatcher *module_declaration_handler) |
Model * | getSystemCModel () |
const std::string & | getTopModule () const |
void | setTopModule (const std::string &top_module_decl) |
clang::ASTContext & | getContext () const |
clang::SourceManager & | getSourceManager () const |
virtual bool | fire () |
virtual bool | preFire () |
virtual bool | postFire () |
virtual void | HandleTranslationUnit (clang::ASTContext &context) |
Public Attributes | |
llvm::raw_ostream & | os_ |
Private Attributes | |
std::string | top_ |
Model * | systemc_model_ |
clang::ASTContext & | context_ |
clang::SourceManager & | sm_ |
This is the main consumer class that beings the parsing of SystemC.
This class drives the AST consumer for parsing SystemC constructs. Forward declarations
Definition at line 46 of file SystemCClang.h.
SystemCConsumer::SystemCConsumer | ( | clang::CompilerInstance & | ci, |
std::string | top = "!none" ) |
Definition at line 209 of file SystemCClang.cpp.
SystemCConsumer::SystemCConsumer | ( | clang::ASTUnit * | from_ast, |
std::string | top = "!none" ) |
Definition at line 202 of file SystemCClang.cpp.
|
virtual |
Definition at line 216 of file SystemCClang.cpp.
|
virtual |
Process the module declaration first.
Process the base classes for the module declaration.
Definition at line 55 of file SystemCClang.cpp.
clang::ASTContext & SystemCConsumer::getContext | ( | ) | const |
Definition at line 231 of file SystemCClang.cpp.
clang::SourceManager & SystemCConsumer::getSourceManager | ( | ) | const |
Definition at line 233 of file SystemCClang.cpp.
Model * SystemCConsumer::getSystemCModel | ( | ) |
Definition at line 227 of file SystemCClang.cpp.
const std::string & SystemCConsumer::getTopModule | ( | ) | const |
Definition at line 229 of file SystemCClang.cpp.
|
virtual |
Definition at line 181 of file SystemCClang.cpp.
|
virtual |
Reimplemented in SAPlugin, systemc_hdl::HDLMain, and TimeAnalysis.
Definition at line 22 of file SystemCClang.cpp.
|
virtual |
Definition at line 20 of file SystemCClang.cpp.
void SystemCConsumer::processNetlist | ( | FindSCMain * | scmain, |
ModuleDeclarationMatcher * | module_declaration_handler ) |
Definition at line 24 of file SystemCClang.cpp.
void SystemCConsumer::setTopModule | ( | const std::string & | top_module_decl | ) |
Definition at line 223 of file SystemCClang.cpp.
|
private |
Definition at line 76 of file SystemCClang.h.
llvm::raw_ostream& systemc_clang::SystemCConsumer::os_ |
Definition at line 50 of file SystemCClang.h.
|
private |
Definition at line 77 of file SystemCClang.h.
|
private |
Definition at line 75 of file SystemCClang.h.
|
private |
Definition at line 74 of file SystemCClang.h.