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
528449d1
"vscode:/vscode.git/clone" did not exist on "d48533ea03785b9efc5b5273fa38ab778e62e1ea"
Commit
528449d1
authored
Sep 26, 2018
by
Paul
Browse files
Make instruction private again
parent
a3babd1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/include/migraph/instruction.hpp
src/include/migraph/instruction.hpp
+1
-1
src/opt/memory_coloring_impl.cpp
src/opt/memory_coloring_impl.cpp
+2
-2
No files found.
src/include/migraph/instruction.hpp
View file @
528449d1
...
@@ -71,7 +71,7 @@ struct instruction
...
@@ -71,7 +71,7 @@ struct instruction
// internal
// internal
void
replace_argument
(
instruction_ref
old
,
instruction_ref
new_ins
);
void
replace_argument
(
instruction_ref
old
,
instruction_ref
new_ins
);
p
ublic
:
p
rivate
:
operation
op
;
operation
op
;
shape
result
;
shape
result
;
std
::
vector
<
instruction_ref
>
output
;
std
::
vector
<
instruction_ref
>
output
;
...
...
src/opt/memory_coloring_impl.cpp
View file @
528449d1
...
@@ -228,9 +228,9 @@ void memory_coloring_impl::rewrite()
...
@@ -228,9 +228,9 @@ void memory_coloring_impl::rewrite()
if
(
is_allocate
(
ins
))
if
(
is_allocate
(
ins
))
{
{
assert
(
!
ins
->
arguments
.
empty
());
assert
(
!
ins
->
inputs
()
.
empty
());
p_program
->
replace_instruction
(
p_program
->
replace_instruction
(
ins
,
load
{
ins
->
arguments
.
at
(
0
)
->
result
,
offset
},
scratch_param
);
ins
,
load
{
ins
->
inputs
().
at
(
0
)
->
get_shape
()
,
offset
},
scratch_param
);
}
}
else
if
(
is_literal
(
ins
))
else
if
(
is_literal
(
ins
))
{
{
...
...
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