Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
c0527225
Commit
c0527225
authored
Sep 18, 2019
by
bouazizrahma
Committed by
Jerome Hugues
Sep 18, 2019
Browse files
map data subcomponent of a thread
parent
2f1b0e03
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/backends/po_hi_c/ocarina-backends-po_hi_c-activity.adb
View file @
c0527225
...
...
@@ -364,7 +364,7 @@ package body Ocarina.Backends.PO_HI_C.Activity is
Impl_Kind
:
constant
Supported_Thread_Implementation
:=
Get_Thread_Implementation_Kind
(
E
);
Call_Parameters
:
List_Id
;
N
:
Node_Id
;
N
,
N1
:
Node_Id
;
procedure
Make_Wait_Event
;
procedure
Make_Call_Sequence
;
...
...
@@ -1232,6 +1232,39 @@ package body Ocarina.Backends.PO_HI_C.Activity is
Check_Thread_Consistency
(
E
);
-- Visit the data subcomponents of the thread
if
not
AAU
.
Is_Empty
(
Subcomponents
(
E
))
then
N1
:=
First_Node
(
Subcomponents
(
E
));
while
Present
(
N1
)
loop
if
AAU
.
Is_Data
(
Corresponding_Instance
(
N1
))
then
N
:=
Make_Variable_Declaration
(
Map_C_Defining_Identifier
(
N1
),
Map_C_Data_Type_Designator
(
Corresponding_Instance
(
N1
)));
Append_Node_To_List
(
N
,
Declarations
);
end
if
;
N1
:=
Next_Node
(
N1
);
end
loop
;
end
if
;
if
not
AAU
.
Is_Empty
(
Subcomponents
(
E
))
then
N1
:=
First_Node
(
Subcomponents
(
E
));
while
Present
(
N1
)
loop
if
not
AAU
.
Is_Data
(
Corresponding_Instance
(
N1
))
then
Visit
(
Corresponding_Instance
(
N1
));
end
if
;
N1
:=
Next_Node
(
N1
);
end
loop
;
end
if
;
if
Has_Ports
(
E
)
then
-- Make the __po_hi_gqueue_init call
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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