Commit e98aecb1 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 34e90169
......@@ -83,7 +83,10 @@ struct instruction
static void backreference(instruction_ref ref);
static void replace_argument(instruction_ref ins, instruction_ref old, instruction_ref new_ins, bool stop = false);
static void replace_argument(instruction_ref ins,
instruction_ref old,
instruction_ref new_ins,
bool stop = false);
static void replace_mod_argument(instruction_ref ins, module_ref old, module_ref new_mod);
......
......@@ -88,7 +88,8 @@ struct module
std::vector<instruction_ref> args,
std::vector<module_ref> module_args) MIGRAPHX_TIDY_CONST;
instruction_ref replace_instruction(instruction_ref ins, instruction_ref rep, bool stop = false);
instruction_ref
replace_instruction(instruction_ref ins, instruction_ref rep, bool stop = false);
instruction_ref remove_instruction(instruction_ref ins);
instruction_ref remove_instructions(instruction_ref first, instruction_ref last);
......
......@@ -39,7 +39,8 @@ void instruction::replace(const shape& r, bool stop)
if(r != result)
{
result = r;
if(stop and not r.standard()) return;
if(stop and not r.standard())
return;
for(auto&& ins : output)
{
......
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