Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
caesr-pub
systemc-clang
Commits
f85f834d
Commit
f85f834d
authored
Dec 06, 2018
by
rmrf
Browse files
Isolate from TimePlugin
parent
d571755e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
8 deletions
+22
-8
CMakeLists.txt
CMakeLists.txt
+1
-0
driver-tooling.cpp
driver-tooling.cpp
+7
-6
src/CMakeLists.txt
src/CMakeLists.txt
+5
-2
src/SystemCClang.cpp
src/SystemCClang.cpp
+1
-0
src/SystemCClang.h
src/SystemCClang.h
+8
-0
No files found.
CMakeLists.txt
View file @
f85f834d
...
...
@@ -63,6 +63,7 @@ endif(USE_SAUTO)
clangAST
clangLex
clangBasic
clangASTMatchers
)
...
...
driver-tooling.cpp
View file @
f85f834d
#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
;
}
src/CMakeLists.txt
View file @
f85f834d
...
...
@@ -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
)
src/SystemCClang.cpp
View file @
f85f834d
...
...
@@ -19,6 +19,7 @@ bool SystemCConsumer::fire() {
TranslationUnitDecl
*
tu
=
_context
.
getTranslationUnitDecl
();
_systemcModel
=
new
Model
();
SCModules
scmod
(
tu
,
_os
);
...
...
src/SystemCClang.h
View file @
f85f834d
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment