Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
systemc-clang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
caesr-pub
systemc-clang
Commits
3de49875
Commit
3de49875
authored
Feb 11, 2019
by
rmrf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Focus on ModuleDecl rework
parent
e11f6e1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/ModuleDecl.cpp
src/ModuleDecl.cpp
+7
-2
src/ModuleDecl.h
src/ModuleDecl.h
+3
-1
No files found.
src/ModuleDecl.cpp
View file @
3de49875
...
...
@@ -5,13 +5,18 @@ using namespace scpar;
using
std
::
string
;
ModuleDecl
::
ModuleDecl
()
:
module_name_
{
"NONE"
},
class_decl_
{
nullptr
}
{}
ModuleDecl
::
ModuleDecl
()
:
module_name_
{
"NONE"
},
class_decl_
{
nullptr
},
constructor_stmt_
{
nullptr
}
{}
ModuleDecl
::
ModuleDecl
(
const
string
&
name
,
CXXRecordDecl
*
decl
)
:
module_name_
{
name
},
class_decl_
{
decl
}
{}
ModuleDecl
::~
ModuleDecl
()
{
class_decl_
=
nullptr
;
constructor_stmt_
=
nullptr
;
// Delete all pointers in ports.
for
(
auto
input_port
:
_iports
)
{
// Second is the PortDecl*.
...
...
@@ -113,7 +118,7 @@ void ModuleDecl::addInputOutputInterfaces(FindTLMInterfaces::interfaceType p) {
}
void
ModuleDecl
::
addConstructor
(
Stmt
*
constructor
)
{
_constructorStmt
=
constructor
;
constructor_stmt_
=
constructor
;
}
void
ModuleDecl
::
addProcess
(
FindEntryFunctions
::
entryFunctionVectorType
*
efv
)
{
...
...
src/ModuleDecl.h
View file @
3de49875
...
...
@@ -84,6 +84,8 @@ public:
private:
string
module_name_
;
CXXRecordDecl
*
class_decl_
;
Stmt
*
constructor_stmt_
;
processMapType
_processes
;
portMapType
_iports
;
portMapType
_oports
;
...
...
@@ -92,7 +94,7 @@ private:
interfaceMapType
_ointerfaces
;
interfaceMapType
_iointerfaces
;
signalMapType
_signals
;
Stmt
*
_constructorStmt
;
vector
<
string
>
_instanceList
;
portSignalMapType
_portSignalMap
;
vector
<
EntryFunctionContainer
*>
_vef
;
...
...
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