MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / TEST_CASE

Function TEST_CASE

test/propagate_constant_test.cpp:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39TEST_CASE(const_add)
40{
41 migraphx::module m1;
42 auto one = m1.add_literal(1);
43 auto two = m1.add_literal(2);
44 auto sum = m1.add_instruction(migraphx::make_op("add"), one, two);
45 m1.add_instruction(non_const_pass_op{}, sum);
46 run_pass(m1);
47
48 migraphx::module m2;
49 auto total = m2.add_literal(3);
50 m2.add_instruction(non_const_pass_op{}, total);
51 EXPECT(m1 == m2);
52}
53
54TEST_CASE(const_add_parameter)
55{

Callers

nothing calls this directly

Calls 10

generate_literalFunction · 0.85
add_parameterMethod · 0.80
run_passFunction · 0.70
make_opFunction · 0.50
literalClass · 0.50
add_literalMethod · 0.45
add_instructionMethod · 0.45
add_returnMethod · 0.45
sortMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected