Commit 25f560c3 authored by Paul's avatar Paul
Browse files

Formatting

parent 30aad12f
...@@ -99,25 +99,13 @@ struct instruction ...@@ -99,25 +99,13 @@ struct instruction
return lit; return lit;
} }
const operation& get_operator() const const operation& get_operator() const { return op; }
{
return op;
}
std::string name() const std::string name() const { return op.name(); }
{
return op.name();
}
const std::vector<instruction_ref>& inputs() const const std::vector<instruction_ref>& inputs() const { return arguments; }
{
return arguments;
}
const std::vector<instruction_ref>& outputs() const const std::vector<instruction_ref>& outputs() const { return output; }
{
return output;
}
friend bool operator==(instruction_ref ref, const instruction& i) { return i == ref; } friend bool operator==(instruction_ref ref, const instruction& i) { return i == ref; }
...@@ -150,7 +138,7 @@ struct instruction ...@@ -150,7 +138,7 @@ struct instruction
std::replace(arguments.begin(), arguments.end(), old, new_ins); std::replace(arguments.begin(), arguments.end(), old, new_ins);
old->remove_output(*this); old->remove_output(*this);
} }
// internal // internal
void replace(operation o, const shape& r, std::vector<instruction_ref> args) void replace(operation o, const shape& r, std::vector<instruction_ref> args)
{ {
......
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