"include/ck/utility/math.hpp" did not exist on "30072aec376a2fc6c6a465fe632bc7be050ec5ea"
Commit e98aecb1 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 34e90169
...@@ -83,7 +83,10 @@ struct instruction ...@@ -83,7 +83,10 @@ struct instruction
static void backreference(instruction_ref ref); 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); static void replace_mod_argument(instruction_ref ins, module_ref old, module_ref new_mod);
......
...@@ -88,7 +88,8 @@ struct module ...@@ -88,7 +88,8 @@ struct module
std::vector<instruction_ref> args, std::vector<instruction_ref> args,
std::vector<module_ref> module_args) MIGRAPHX_TIDY_CONST; 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_instruction(instruction_ref ins);
instruction_ref remove_instructions(instruction_ref first, instruction_ref last); instruction_ref remove_instructions(instruction_ref first, instruction_ref last);
......
...@@ -39,7 +39,8 @@ void instruction::replace(const shape& r, bool stop) ...@@ -39,7 +39,8 @@ void instruction::replace(const shape& r, bool stop)
if(r != result) if(r != result)
{ {
result = r; result = r;
if(stop and not r.standard()) return; if(stop and not r.standard())
return;
for(auto&& ins : output) for(auto&& ins : output)
{ {
...@@ -59,9 +60,9 @@ void instruction::replace(operation o) ...@@ -59,9 +60,9 @@ void instruction::replace(operation o)
recompute_shape(); recompute_shape();
} }
void instruction::recompute_shape(bool non_std_stop) void instruction::recompute_shape(bool non_std_stop)
{ {
replace(compute_shape(op, arguments, module_args), non_std_stop); replace(compute_shape(op, arguments, module_args), non_std_stop);
} }
void instruction::clear_arguments() void instruction::clear_arguments()
......
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