Home
last modified time | relevance | path

Searched refs:BytecodeGen (Results 1 – 20 of 20) sorted by relevance

/arkcompiler/runtime_core/bytecode_optimizer/
Dcodegen.cpp38 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()
75 EmitLabel(BytecodeGen::LabelName(bb->GetId())); in RunImpl()
77 auto label = "end_" + BytecodeGen::LabelName(bb->GetId()); in RunImpl()
119 void BytecodeGen::AddTypeInfoIndexForArguments(TypeInfoComponents *elements) const in AddTypeInfoIndexForArguments()
[all …]
Dcodegen.h39 class BytecodeGen : public compiler::Optimization, public compiler::GraphVisitor {
41 explicit BytecodeGen(compiler::Graph *graph, pandasm::Function *function, in BytecodeGen() function
46 ~BytecodeGen() override = default;
Doptimize_bytecode.cpp337 if (!graph->RunPass<BytecodeGen>(&function, &ir_interface, prog)) { in OptimizeFunction()
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
Dcodegen.cpp76 void BytecodeGen::AppendCatchBlock(uint32_t typeId, const compiler::BasicBlock *tryBegin, in AppendCatchBlock()
84 cb.tryBeginLabel = BytecodeGen::LabelName(tryBegin->GetId()); in AppendCatchBlock()
85 cb.tryEndLabel = "end_" + BytecodeGen::LabelName(tryEnd->GetId()); in AppendCatchBlock()
86 cb.catchBeginLabel = BytecodeGen::LabelName(catchBegin->GetId()); in AppendCatchBlock()
87 …cb.catchEndLabel = catchEnd == nullptr ? cb.catchBeginLabel : "end_" + BytecodeGen::LabelName(catc… in AppendCatchBlock()
91 void BytecodeGen::VisitTryBegin(const compiler::BasicBlock *bb) in VisitTryBegin()
104 void BytecodeGen::AddLineAndColumnNumber(const compiler::Inst *inst, size_t i) in AddLineAndColumnNumber()
112 bool BytecodeGen::RunImpl() in RunImpl()
116 EmitLabel(BytecodeGen::LabelName(bb->GetId())); in RunImpl()
118 auto label = "end_" + BytecodeGen::LabelName(bb->GetId()); in RunImpl()
[all …]
Dcodegen.h46 class BytecodeGen : public compiler::Optimization, public compiler::GraphVisitor {
48 …explicit BytecodeGen(compiler::Graph *graph, pandasm::Function *function, const BytecodeOptIrInter… in BytecodeGen() function
52 ~BytecodeGen() override = default;
53 NO_COPY_SEMANTIC(BytecodeGen);
54 NO_MOVE_SEMANTIC(BytecodeGen);
Doptimize_bytecode.cpp302 if (!graph->RunPass<BytecodeGen>(&function, &irInterface)) { in OptimizeFunction()
/arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/
Dcodegen_test.cpp111 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 …]
Dbitops_bitwise_and_test.cpp124 EXPECT_TRUE(GetGraph()->RunPass<BytecodeGen>(&function, GetIrInterface())); in TEST_F()
Dcommon.h745 EXPECT_TRUE(GetGraph()->RunPass<BytecodeGen>(&function, GetIrInterface())); in CheckOtherPasses()
777 EXPECT_TRUE(GetGraph()->RunPass<BytecodeGen>(&function, GetIrInterface())); in CheckConstArrayFilling()
821 EXPECT_TRUE(GetGraph()->RunPass<BytecodeGen>(&function, GetIrInterface())); in CheckConstArray()
/arkcompiler/runtime_core/bytecode_optimizer/tests/
Dcodegen_test.cpp110 BytecodeGen bc_gen(graph, function, interface, prog); in __anon61fc5db40102()
148 BytecodeGen bc_gen(graph, function, interface, prog); in __anon61fc5db40202()
187 BytecodeGen graph_visitor(graph, function, interface, prog); in __anon61fc5db40302()
195 BytecodeGen::VisitConstant(&graph_visitor, const_inst); in __anon61fc5db40302()
204 BytecodeGen::VisitConstant(&graph_visitor, const_inst1); in __anon61fc5db40302()
213 BytecodeGen::VisitConstant(&graph_visitor, const_inst2); in __anon61fc5db40302()
248 BytecodeGen bc_gen(graph, function, interface, prog); in __anon61fc5db40402()
290 BytecodeGen graph_visitor(graph, function, &interface, prog); in __anon61fc5db40502()
301 BytecodeGen::VisitLoadString(&graph_visitor, inst); in __anon61fc5db40502()
307 BytecodeGen::VisitLoadString(&graph_visitor, inst); in __anon61fc5db40502()
[all …]
Dbitops_bitwise_and_test.cpp121 EXPECT_TRUE(GetGraph()->RunPass<BytecodeGen>(&function, GetIrInterface())); in TEST_F()
Dcommon.h732 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/
Dcodegen_intrinsics.cpp.erb19 void BytecodeGen::VisitIntrinsic(GraphVisitor *visitor, Inst *instBase)
23 auto enc = static_cast<BytecodeGen *>(visitor);
Dinsn_selection.cpp.erb24 [[maybe_unused]] auto enc = static_cast<BytecodeGen*>(v);
Dcodegen_visitors.inc.erb35 [[maybe_unused]] auto lang = static_cast<BytecodeGen*>(v)->GetGraph()->GetLanguage();
/arkcompiler/runtime_core/bytecode_optimizer/templates/
Dcodegen_intrinsics.cpp.erb20 void BytecodeGen::VisitIntrinsic(GraphVisitor *visitor, Inst *inst_base)
24 auto enc = static_cast<BytecodeGen *>(visitor);
Dinsn_selection.cpp.erb23 [[maybe_unused]] auto enc = static_cast<BytecodeGen*>(v);
/arkcompiler/runtime_core/static_core/plugins/ets/bytecode_optimizer/visitors/
Dcodegen_visitors.inc64 auto *enc = static_cast<BytecodeGen *>(visitor);
110 static void VisitEtsLdObjByName(BytecodeGen *enc, compiler::IntrinsicInst *inst)
132 static void VisitEtsStObjByName(BytecodeGen *enc, compiler::IntrinsicInst *inst)
156 auto *enc = static_cast<BytecodeGen *>(visitor);
/arkcompiler/runtime_core/compiler/optimizer/templates/
Dgenerate_ecma.inl.erb19 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/
Dets_codegen_intrinsics_gen.inc.erb38 BytecodeGen::<%= lowering[1] %>(enc, inst);