Commit 528449d1 authored by Paul's avatar Paul
Browse files

Make instruction private again

parent a3babd1f
...@@ -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);
public: private:
operation op; operation op;
shape result; shape result;
std::vector<instruction_ref> output; std::vector<instruction_ref> output;
......
...@@ -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))
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment