| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | codegen.cpp | 38 void BytecodeGen::AppendCatchBlock(uint32_t type_id, const compiler::BasicBlock *try_begin, in AppendCatchBlock() 46 cb.try_begin_label = BytecodeGen::LabelName(try_begin->GetId()); in AppendCatchBlock() 47 cb.try_end_label = "end_" + BytecodeGen::LabelName(try_end->GetId()); in AppendCatchBlock() 48 cb.catch_begin_label = BytecodeGen::LabelName(catch_begin->GetId()); in AppendCatchBlock() 50 … catch_end == nullptr ? cb.catch_begin_label : "end_" + BytecodeGen::LabelName(catch_end->GetId()); in AppendCatchBlock() 54 void BytecodeGen::VisitTryBegin(const compiler::BasicBlock *bb) in VisitTryBegin() 67 bool BytecodeGen::RunImpl() in RunImpl() 76 EmitLabel(BytecodeGen::LabelName(bb->GetId())); in RunImpl() 78 auto label = "end_" + BytecodeGen::LabelName(bb->GetId()); in RunImpl() 111 void BytecodeGen::EmitJump(const BasicBlock *bb) in EmitJump() [all …]
|
| D | codegen.h | 39 class BytecodeGen : public compiler::Optimization, public compiler::GraphVisitor { 41 explicit BytecodeGen(compiler::Graph *graph, pandasm::Function *function, in BytecodeGen() function 46 ~BytecodeGen() override = default;
|
| D | optimize_bytecode.cpp | 478 if (!graph->RunPass<BytecodeGen>(&function, &ir_interface, prog)) { in OptimizeFunction()
|
| /arkcompiler/runtime_core/static_core/bytecode_optimizer/ |
| D | codegen.cpp | 85 void BytecodeGen::AppendCatchBlock(uint32_t typeId, const compiler::BasicBlock *tryBegin, in AppendCatchBlock() 93 cb.tryBeginLabel = BytecodeGen::LabelName(tryBegin->GetId()); in AppendCatchBlock() 94 cb.tryEndLabel = "end_" + BytecodeGen::LabelName(tryEnd->GetId()); in AppendCatchBlock() 95 cb.catchBeginLabel = BytecodeGen::LabelName(catchBegin->GetId()); in AppendCatchBlock() 96 …cb.catchEndLabel = catchEnd == nullptr ? cb.catchBeginLabel : "end_" + BytecodeGen::LabelName(catc… in AppendCatchBlock() 100 void BytecodeGen::VisitTryBegin(const compiler::BasicBlock *bb) in VisitTryBegin() 113 void BytecodeGen::AddLineAndColumnNumber(const compiler::Inst *inst, size_t idx) in AddLineAndColumnNumber() 121 bool BytecodeGen::RunImpl() in RunImpl() 125 EmitLabel(BytecodeGen::LabelName(bb->GetId())); in RunImpl() 127 auto label = "end_" + BytecodeGen::LabelName(bb->GetId()); in RunImpl() [all …]
|
| D | codegen.h | 47 class BytecodeGen : public compiler::Optimization, public compiler::GraphVisitor { 49 …explicit BytecodeGen(compiler::Graph *graph, pandasm::Function *function, const BytecodeOptIrInter… in BytecodeGen() function 53 ~BytecodeGen() override = default; 54 NO_COPY_SEMANTIC(BytecodeGen); 55 NO_MOVE_SEMANTIC(BytecodeGen);
|
| D | optimize_bytecode.cpp | 305 if (!graph->RunPass<BytecodeGen>(&function, &irInterface)) { in OptimizeFunction()
|
| /arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/ |
| D | codegen_test.cpp | 111 EXPECT_TRUE(graph->RunPass<BytecodeGen>(&function, nullptr)); in TEST_F() 172 EXPECT_TRUE(expected->RunPass<BytecodeGen>(&function, nullptr)); in TEST_F() 204 EXPECT_TRUE(graph->RunPass<BytecodeGen>(&function, nullptr)); in TEST_F() 239 EXPECT_TRUE(graph->RunPass<BytecodeGen>(&function, nullptr)); in TEST_F() 272 EXPECT_TRUE(graph->RunPass<BytecodeGen>(&function, nullptr)); in TEST_F() 307 EXPECT_TRUE(graph->RunPass<BytecodeGen>(&function, nullptr)); in TEST_F() 340 EXPECT_TRUE(graph->RunPass<BytecodeGen>(&function, nullptr)); in TEST_F() 375 EXPECT_TRUE(graph->RunPass<BytecodeGen>(&function, nullptr)); in TEST_F() 407 EXPECT_TRUE(graph->RunPass<BytecodeGen>(&function, nullptr)); in TEST_F() 443 EXPECT_TRUE(graph->RunPass<BytecodeGen>(&function, nullptr)); in TEST_F() [all …]
|
| D | bitops_bitwise_and_test.cpp | 126 EXPECT_TRUE(GetGraph()->RunPass<BytecodeGen>(&function, GetIrInterface())); in TEST_F()
|
| D | common.h | 726 EXPECT_TRUE(GetGraph()->RunPass<BytecodeGen>(&function, GetIrInterface())); in CheckOtherPasses() 758 EXPECT_TRUE(GetGraph()->RunPass<BytecodeGen>(&function, GetIrInterface())); in CheckConstArrayFilling() 810 EXPECT_TRUE(GetGraph()->RunPass<BytecodeGen>(&function, GetIrInterface())); in CheckConstArray()
|
| /arkcompiler/runtime_core/bytecode_optimizer/tests/ |
| D | codegen_test.cpp | 114 BytecodeGen bc_gen(graph, function, interface, prog); in __anon85c438b50102() 152 BytecodeGen bc_gen(graph, function, interface, prog); in __anon85c438b50202() 191 BytecodeGen graph_visitor(graph, function, interface, prog); in __anon85c438b50302() 199 BytecodeGen::VisitConstant(&graph_visitor, const_inst); in __anon85c438b50302() 208 BytecodeGen::VisitConstant(&graph_visitor, const_inst1); in __anon85c438b50302() 217 BytecodeGen::VisitConstant(&graph_visitor, const_inst2); in __anon85c438b50302() 252 BytecodeGen bc_gen(graph, function, interface, prog); in __anon85c438b50402() 294 BytecodeGen graph_visitor(graph, function, &interface, prog); in __anon85c438b50502() 305 BytecodeGen::VisitLoadString(&graph_visitor, inst); in __anon85c438b50502() 311 BytecodeGen::VisitLoadString(&graph_visitor, inst); in __anon85c438b50502() [all …]
|
| D | bitops_bitwise_and_test.cpp | 121 EXPECT_TRUE(GetGraph()->RunPass<BytecodeGen>(&function, GetIrInterface())); in TEST_F()
|
| D | common.h | 732 EXPECT_TRUE(GetGraph()->RunPass<BytecodeGen>(&function, GetIrInterface())); in CheckOtherPasses() 764 EXPECT_TRUE(GetGraph()->RunPass<BytecodeGen>(&function, GetIrInterface())); in CheckConstArrayFilling() 808 EXPECT_TRUE(GetGraph()->RunPass<BytecodeGen>(&function, GetIrInterface())); in CheckConstArray()
|
| /arkcompiler/runtime_core/static_core/bytecode_optimizer/templates/ |
| D | codegen_intrinsics.cpp.erb | 19 void BytecodeGen::VisitIntrinsic(GraphVisitor *visitor, Inst *instBase) 23 auto enc = static_cast<BytecodeGen *>(visitor);
|
| D | insn_selection.cpp.erb | 24 [[maybe_unused]] auto enc = static_cast<BytecodeGen*>(v);
|
| D | codegen_visitors.inc.erb | 29 [[maybe_unused]] auto lang = static_cast<BytecodeGen*>(v)->GetGraph()->GetLanguage();
|
| D | codegen_call_intrinsics.inc.erb | 29 …BytecodeGen::CallHandler(visitor, inst, <%= "#{class_name}.#{intrinsic.method_name}:#{signature};"…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/bytecode_optimizer/visitors/ |
| D | codegen_visitors.inc | 64 auto *enc = static_cast<BytecodeGen *>(visitor); 110 static void VisitEtsLdObjByName(BytecodeGen *enc, compiler::IntrinsicInst *inst) 134 static void VisitEtsStObjByName(BytecodeGen *enc, compiler::IntrinsicInst *inst) 162 auto *enc = static_cast<BytecodeGen *>(visitor); 172 auto *enc = static_cast<BytecodeGen *>(visitor);
|
| /arkcompiler/runtime_core/bytecode_optimizer/templates/ |
| D | codegen_intrinsics.cpp.erb | 20 void BytecodeGen::VisitIntrinsic(GraphVisitor *visitor, Inst *inst_base) 24 auto enc = static_cast<BytecodeGen *>(visitor);
|
| D | insn_selection.cpp.erb | 23 [[maybe_unused]] auto enc = static_cast<BytecodeGen*>(v);
|
| /arkcompiler/runtime_core/compiler/optimizer/templates/ |
| D | generate_ecma.inl.erb | 19 void panda::bytecodeopt::BytecodeGen::VisitEcma(panda::compiler::GraphVisitor *visitor, Inst *inst_… 23 auto enc = static_cast<BytecodeGen *>(visitor);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/bytecode_optimizer/templates/ |
| D | ets_codegen_intrinsics_gen.inc.erb | 39 BytecodeGen::<%= lowering[1] %>(enc, inst);
|