Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
1a4b56e9
Commit
1a4b56e9
authored
Jun 14, 2018
by
Paul
Browse files
Add get_operation command
parent
661e6287
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
src/include/rtg/program.hpp
src/include/rtg/program.hpp
+2
-0
src/program.cpp
src/program.cpp
+5
-0
No files found.
src/include/rtg/program.hpp
View file @
1a4b56e9
...
@@ -15,6 +15,8 @@ namespace rtg {
...
@@ -15,6 +15,8 @@ namespace rtg {
struct
program_impl
;
struct
program_impl
;
const
operation
&
get_operation
(
instruction_ref
ins
);
/**
/**
* @brief Stores the instruction stream
* @brief Stores the instruction stream
*/
*/
...
...
src/program.cpp
View file @
1a4b56e9
...
@@ -12,6 +12,11 @@ struct program_impl
...
@@ -12,6 +12,11 @@ struct program_impl
std
::
list
<
instruction
>
instructions
;
std
::
list
<
instruction
>
instructions
;
};
};
const
operation
&
get_operation
(
instruction_ref
ins
)
{
return
ins
->
op
;
}
program
::
program
()
:
impl
(
std
::
make_unique
<
program_impl
>
())
{}
program
::
program
()
:
impl
(
std
::
make_unique
<
program_impl
>
())
{}
program
::
program
(
program
&&
)
noexcept
=
default
;
program
::
program
(
program
&&
)
noexcept
=
default
;
...
...
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