Commit f85f834d authored by rmrf's avatar rmrf
Browse files

Isolate from TimePlugin

parent d571755e
......@@ -63,6 +63,7 @@ endif(USE_SAUTO)
clangAST
clangLex
clangBasic
clangASTMatchers
)
......
#include "PluginAction.h"
//#include "SystemCClang.h"
#include "TimeAnalysis.h"
#include "SystemCClang.h"
//#include "TimeAnalysis.h"
#include <iostream>
using namespace scpar;
using namespace std;
//using namespace clang::tooling;
int main(int argc, const char **argv)
{
PluginAction<TimeAnalysis> scc(argc, argv);
int main(int argc, const char **argv) {
PluginAction<SystemCClang> scc(argc, argv);
return 0;
}
......@@ -17,8 +17,8 @@ add_library (libsystemc-clang
SystemCClang.cpp
FindNetlist.cpp
FindArgument.cpp
Automata.cpp
SuspensionAutomata.cpp
#Automata.cpp
#SuspensionAutomata.cpp
# SCuitable/GlobalSuspensionAutomata.cpp
# SCuitable/FindGPUMacro.cpp
####################################
......@@ -37,4 +37,7 @@ add_library (libsystemc-clang
WaitCalls.cpp
NotifyCalls.cpp
EventContainer.cpp
# AST MATCHERS
# matchers/sc_module.cpp
)
......@@ -19,6 +19,7 @@ bool SystemCConsumer::fire() {
TranslationUnitDecl *tu = _context.getTranslationUnitDecl();
_systemcModel = new Model();
SCModules scmod(tu, _os);
......
......@@ -51,6 +51,9 @@ using namespace clang::tooling;
#include "SuspensionAutomata.h"
#include "SCuitable/GlobalSuspensionAutomata.h"
#include "SCuitable/FindGPUMacro.h"
#include "matchers/sc_module.h"
using namespace clang;
namespace scpar
......@@ -86,6 +89,11 @@ namespace scpar
// Rewriter _rewrite;
}; // End class SystemCConsumer
class SystemCClang : public SystemCConsumer {
};
template < typename A > class LightsCameraAction:
public clang::ASTFrontendAction
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment