Lines Matching defs:context
36 std::unique_ptr<IRContext> context =
39 ASSERT_NE(context, nullptr);
41 Type* struct_type_1 = context->get_type_mgr()->GetType(1);
44 context->get_constant_mgr()->GetDefiningInstruction(&struct_const_1, 1);
47 Type* struct_type_2 = context->get_type_mgr()->GetType(2);
50 context->get_constant_mgr()->GetDefiningInstruction(&struct_const_2, 2);
63 std::unique_ptr<IRContext> context =
66 ASSERT_NE(context, nullptr);
68 Type* struct_type_1 = context->get_type_mgr()->GetType(1);
71 context->get_constant_mgr()->GetDefiningInstruction(&struct_const_1, 1);
75 Type* struct_type_2 = context->get_type_mgr()->GetType(2);
78 context->get_constant_mgr()->GetDefiningInstruction(&struct_const_2, 2);
90 std::unique_ptr<IRContext> context =
93 ASSERT_NE(context, nullptr);
96 context->module()->SetIdBound(context->max_id_bound());
98 Type* int_type = context->get_type_mgr()->GetType(1);
101 context->get_constant_mgr()->GetDefiningInstruction(&int_constant, 1);