Lines Matching defs:context

37 std::string Disassemble(const std::string& original, IRContext* context,
40 context->module()->ToBinary(&optimized_bin, true);
51 void Match(const std::string& original, IRContext* context,
53 std::string disassembly = Disassemble(original, context, disassemble_options);
77 std::unique_ptr<IRContext> context =
80 ASSERT_NE(nullptr, context);
83 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
85 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
93 analysis::ConstantManager* const_mrg = context->get_constant_mgr();
941 std::unique_ptr<IRContext> context =
944 ASSERT_NE(nullptr, context);
947 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
950 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
959 analysis::ConstantManager* const_mrg = context->get_constant_mgr();
1051 std::unique_ptr<IRContext> context =
1054 ASSERT_NE(nullptr, context);
1057 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
1059 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
1068 analysis::ConstantManager* const_mrg = context->get_constant_mgr();
1127 std::unique_ptr<IRContext> context =
1130 ASSERT_NE(nullptr, context);
1133 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
1135 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
1144 analysis::ConstantManager* const_mrg = context->get_constant_mgr();
1251 std::unique_ptr<IRContext> context =
1254 ASSERT_NE(nullptr, context);
1257 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
1260 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
1269 analysis::ConstantManager* const_mrg = context->get_constant_mgr();
1393 std::unique_ptr<IRContext> context =
1396 ASSERT_NE(nullptr, context);
1399 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
1401 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
1409 analysis::ConstantManager* const_mgr = context->get_constant_mgr();
1470 std::unique_ptr<IRContext> context =
1473 ASSERT_NE(nullptr, context);
1476 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
1478 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
1488 analysis::ConstantManager* const_mrg = context->get_constant_mgr();
2082 std::unique_ptr<IRContext> context =
2085 ASSERT_NE(nullptr, context);
2088 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
2090 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
2098 analysis::ConstantManager* const_mrg = context->get_constant_mgr();
2515 std::unique_ptr<IRContext> context =
2518 ASSERT_NE(nullptr, context);
2521 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
2523 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
2531 analysis::ConstantManager* const_mrg = context->get_constant_mgr();
3401 std::unique_ptr<IRContext> context =
3404 ASSERT_NE(nullptr, context);
3407 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
3409 inst = context->get_instruction_folder().FoldInstructionToConstant(inst,
3416 analysis::ConstantManager* const_mrg = context->get_constant_mgr();
3449 std::unique_ptr<IRContext> context =
3452 ASSERT_NE(nullptr, context);
3455 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
3457 inst = context->get_instruction_folder().FoldInstructionToConstant(inst,
3466 analysis::ConstantManager* const_mrg = context->get_constant_mgr();
3500 std::unique_ptr<IRContext> context =
3503 ASSERT_NE(nullptr, context);
3506 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
3508 std::unique_ptr<Instruction> original_inst(inst->Clone(context.get()));
3509 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
5169 std::unique_ptr<IRContext> context =
5172 ASSERT_NE(nullptr, context);
5175 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
5177 std::unique_ptr<Instruction> original_inst(inst->Clone(context.get()));
5178 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
5291 std::unique_ptr<IRContext> context =
5294 ASSERT_NE(nullptr, context);
5297 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
5299 std::unique_ptr<Instruction> original_inst(inst->Clone(context.get()));
5300 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
5303 Match(tc.test_body, context.get());
8050 std::unique_ptr<IRContext> context =
8053 ASSERT_NE(nullptr, context);
8057 Function* func = &*context->module()->begin();
8066 std::unique_ptr<Instruction> original_inst(inst->Clone(context.get()));
8067 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
8070 Match(tc.test_body, context.get());
8404 std::unique_ptr<IRContext> context =
8407 ASSERT_NE(nullptr, context);
8411 inst = &*context->module()->entry_points().begin();
8413 std::unique_ptr<Instruction> original_inst(inst->Clone(context.get()));
8414 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
8417 Match(tc.test_body, context.get());
8504 std::unique_ptr<IRContext> context =
8507 ASSERT_NE(nullptr, context);
8510 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
8512 std::unique_ptr<Instruction> original_inst(inst->Clone(context.get()));
8513 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
8516 Match(tc.test_body, context.get());
8617 std::unique_ptr<IRContext> context =
8620 ASSERT_NE(nullptr, context);
8623 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr();
8625 std::unique_ptr<Instruction> original_inst(inst->Clone(context.get()));
8626 bool succeeded = context->get_instruction_folder().FoldInstruction(inst);
8629 Match(tc.test_body, context.get());