Commit d2afd9d4 authored by mei-ye's avatar mei-ye
Browse files

remove event methods from context for unit tests. Also a format change to suit the odd taste

parent 8e015bd0
...@@ -156,9 +156,7 @@ bool dom_info::is_split_point(instruction_ref ins) ...@@ -156,9 +156,7 @@ bool dom_info::is_split_point(instruction_ref ins)
if(arg_stream >= 0) if(arg_stream >= 0)
stream_set.insert(arg_stream); stream_set.insert(arg_stream);
} }
if(stream_set.size() > 1) return (stream_set.size() > 1) ? true : false;
return true;
return false;
} }
// Identify merge points. A merge point has more than one // Identify merge points. A merge point has more than one
...@@ -172,9 +170,7 @@ bool dom_info::is_merge_point(instruction_ref ins) ...@@ -172,9 +170,7 @@ bool dom_info::is_merge_point(instruction_ref ins)
if(arg_stream >= 0) if(arg_stream >= 0)
stream_set.insert(arg_stream); stream_set.insert(arg_stream);
} }
if(stream_set.size() > 1) return (stream_set.size() > 1) ? true : false;
return true;
return false;
} }
// Propagate split points through the graph and identify concurrent instructions. // Propagate split points through the graph and identify concurrent instructions.
......
...@@ -47,10 +47,6 @@ struct non_computable_cf ...@@ -47,10 +47,6 @@ struct non_computable_cf
struct test_context struct test_context
{ {
void finish() const {} void finish() const {}
void set_stream(int) {}
void create_events(int) {}
void record_event(int) {}
void wait_event(int) {}
}; };
TEST_CASE(literal_test) TEST_CASE(literal_test)
......
...@@ -11,10 +11,6 @@ struct id_target ...@@ -11,10 +11,6 @@ struct id_target
struct context struct context
{ {
void finish() const {} void finish() const {}
void set_stream(int) {}
void create_events(int) {}
void record_event(int) {}
void wait_event(int) {}
}; };
migraphx::context ctx = context{}; migraphx::context ctx = context{};
std::string name() const { return "id"; } std::string name() const { return "id"; }
......
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