/arkcompiler/runtime_core/libpandafile/tests/ |
D | bytecode_instruction_tests.cpp | 33 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 41 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 50 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 57 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 65 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 73 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 82 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 89 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 97 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 105 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() [all …]
|
/arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
D | lowering.cpp | 23 ASSERT(inst->GetOpcode() == Opcode::IfImm); in VisitIfImm() 30 ASSERT(cst->GetOpcode() == Opcode::Constant); in ConstantFitsCompareImm() 41 ASSERT(cmp->GetOpcode() == Opcode::Compare); in BetterToSwapCompareInputs() 63 ASSERT(if_inst->GetOpcode() == compiler::Opcode::If); in OptimizeIfInput() 87 if (input->GetOpcode() != Opcode::Compare) { in LowerIf() 92 if (user.GetInst()->GetOpcode() != Opcode::IfImm) { in LowerIf() 130 …graph->GetEventWriter().EventLowering(GetOpcodeString(inst->GetOpcode()), inst->GetId(), inst->Get… in LowerIf() 134 … COMPILER_LOG(DEBUG, LOWERING) << "Lowering is applied for " << GetOpcodeString(inst->GetOpcode()); in LowerIf() 147 …ock()->GetGraph()->GetEventWriter().EventLowering(GetOpcodeString(inst->GetOpcode()), inst->GetId(… in InPlaceLowerIfImm() 149 … COMPILER_LOG(DEBUG, LOWERING) << "Lowering is applied for " << GetOpcodeString(inst->GetOpcode()); in InPlaceLowerIfImm()
|
D | vn.cpp | 26 switch (inst->GetOpcode()) { in AddSpecialTraits() 46 Add(static_cast<uint32_t>(inst->GetOpcode())); in Add()
|
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
D | phi_resolver.h | 46 if (!inst->IsPhi() && inst->GetOpcode() != Opcode::CatchPhi) { in Run() 116 if (user.GetInst()->IsPhi() || user.GetInst()->GetOpcode() == Opcode::CatchPhi) { in FindUsersRec() 131 ASSERT(inst->IsPhi() || inst->GetOpcode() == Opcode::CatchPhi); in FindInputsRec() 143 if (input_inst->IsPhi() || input_inst->GetOpcode() == Opcode::CatchPhi) { in FindInputsRec() 157 ASSERT(phi_inst->GetOpcode() == Opcode::Phi || phi_inst->GetOpcode() == Opcode::CatchPhi); in CheckPhiInputs() 158 if (phi_inst->GetOpcode() == Opcode::Phi) { in CheckPhiInputs()
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
D | ir_constructor.h | 212 auto opc = CurrentInst()->GetOpcode(); in Inputs() 267 switch (inst->GetOpcode()) { 301 switch (inst->GetOpcode()) { in IsArray() 317 switch (inst->GetOpcode()) { in CC() 366 if (inst->GetOpcode() == Opcode::Intrinsic) { in Inlined() 370 ASSERT(inst->GetOpcode() == Opcode::CallStatic || inst->GetOpcode() == Opcode::CallVirtual); in Inlined() 385 switch (inst->GetOpcode()) { in Imm() 444 switch (inst->GetOpcode()) { in Shift() 635 switch (inst->GetOpcode()) { in TypeId() 713 switch (inst->GetOpcode()) { in SetNeedBarrier() [all …]
|
D | visitor.inc | 21 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst); 31 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst); 39 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst); 43 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst);
|
D | dump.cpp | 304 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode() 317 ArenaString opcode(GetOpcodeString(mixin_inst->GetOpcode()), adapter); in DumpOpcodeAnyTypeMixin() 342 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode() 353 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode() 375 … DumpTypedOpcode(out, GetOpcode(), GetTypeId(), GetBasicBlock()->GetGraph()->GetLocalAllocator()); in DumpOpcode() 433 if (GetOpcode() == Opcode::Parameter) { in Dump()
|
D | graph_cloner.cpp | 216 ASSERT(ifimm->GetOpcode() == Opcode::IfImm); in SplitBackEdge() 218 ASSERT(compare->GetOpcode() == Opcode::Compare); in SplitBackEdge() 304 ASSERT(compare->GetOpcode() == Opcode::Compare); in UpdateUsersAfterNoSideExitsUnroll() 501 ASSERT(ifimm->GetOpcode() == Opcode::IfImm); in RemoveLoopBackEdge() 779 ASSERT(ifimm->GetOpcode() == Opcode::IfImm); in PrepareLoopToClone() 781 ASSERT(compare->GetOpcode() == Opcode::Compare); in PrepareLoopToClone() 956 ASSERT(compare->GetOpcode() == Opcode::Compare); in BuildLoopCloneDataFlow() 957 ASSERT(back_edge_compare->GetOpcode() == Opcode::Compare); in BuildLoopCloneDataFlow() 990 ASSERT(ifimm->GetOpcode() == Opcode::IfImm); in IsLoopClonable() 992 ASSERT(compare->GetOpcode() == Opcode::Compare); in IsLoopClonable()
|
D | graph.cpp | 238 ASSERT(last->GetOpcode() == Opcode::If || last->GetOpcode() == Opcode::IfImm); in RemovePredecessors() 465 if (*it != nullptr && it->GetOpcode() != Opcode::Parameter) { in begin() 551 if (last_inst->GetOpcode() == Opcode::IfImm) { in GetBranchCounter() 553 } else if (last_inst->GetOpcode() == Opcode::If) { in GetBranchCounter()
|
D | graph_checker.cpp | 193 ASSERT_DO(inst->GetOpcode() != Opcode::Parameter, in CheckDataFlow() 270 [[maybe_unused]] Opcode opc = inst->GetOpcode(); in CheckStartBlock() 348 switch (inst->GetOpcode()) { in checkSpillFillMultiple() 547 [[maybe_unused]] auto opc = last_inst->GetOpcode(); in CheckBlockEdges() 558 [](Inst *inst) { return inst->GetOpcode() == Opcode::Try; }); in CheckTryBeginBlock() 625 if (ss->GetOpcode() != Opcode::SaveState) { in CheckSaveStatesWithRuntimeCallUsers() 650 if (inst->GetOpcode() == Opcode::Phi) { in CheckSaveStateInputs()
|
/arkcompiler/runtime_core/compiler/tests/ |
D | graph_comparator.h | 83 if (inst1->GetOpcode() != inst2->GetOpcode() || inst1->GetType() != inst2->GetType() || in Compare() 88 if (inst1->GetOpcode() != Opcode::Phi) { in Compare() 122 …if (inst1->GetOpcode() == Opcode::Opc && inst1->CAST(Opc)->Getter() != inst2->CAST(Opc)->Getter())… in Compare() 221 if (inst1->GetOpcode() == Opcode::Constant) { in Compare() 239 … if (inst1->GetOpcode() == Opcode::Cmp && IsFloatType(inst1->GetInput(0).GetInst()->GetType())) { in Compare()
|
D | compiler_inst_test.cpp | 138 if (inst->GetOpcode() != Opcode::Constant) { in __anon7b7a1abf0202() 143 EXPECT_EQ(constInst->GetOpcode(), Opcode::Constant); in __anon7b7a1abf0202() 175 if (inst->GetOpcode() != Opcode::Parameter) { in __anon7b7a1abf0302() 180 EXPECT_EQ(parameterInst->Clone(graph)->GetOpcode(), Opcode::Parameter); in __anon7b7a1abf0302() 345 if (inst->GetOpcode() != Opcode::Compare) { in __anon7b7a1abf0702() 350 EXPECT_EQ(compareInst->Clone(graph)->GetOpcode(), Opcode::Compare); in __anon7b7a1abf0702() 382 if (inst->GetOpcode() != Opcode::SpillFill) { in __anon7b7a1abf0802() 387 EXPECT_EQ(spillFill->Clone(graph)->GetOpcode(), Opcode::SpillFill); in __anon7b7a1abf0802() 445 if (inst->GetOpcode() != Opcode::CatchPhi) { in __anon7b7a1abf0a02() 485 if (inst->GetOpcode() != Opcode::SaveState) { in __anon7b7a1abf0b02() [all …]
|
D | dump_test.cpp | 70 if (inst->GetOpcode() != Opcode::SaveState) { in __anonb8e9e89d0102() 407 if (inst->GetOpcode() != Opcode::Parameter) { in __anonb8e9e89d0602() 450 if (inst->GetOpcode() != Opcode::SpillFill) { in __anonb8e9e89d0702() 484 DumpTypedOpcode(&out, inst->GetOpcode(), typeId, graph->GetLocalAllocator()); in __anonb8e9e89d0802() 515 if (inst->GetOpcode() != Opcode::Compare) { in __anonb8e9e89d0902() 549 if (inst->GetOpcode() != Opcode::IfImm) { in __anonb8e9e89d0a02() 584 if (inst->GetOpcode() != Opcode::IfImm) { in __anonb8e9e89d0b02() 620 if (inst->GetOpcode() != Opcode::Intrinsic) { in __anonb8e9e89d0c02() 657 EXPECT_EQ(loadFromPool.GetOpcode(), Opcode::LoadString); in __anonb8e9e89d0d02() 693 … DumpTypedFieldOpcode(&out, inst->GetOpcode(), typeId, fieldName, graph->GetAllocator()); in __anonb8e9e89d0e02() [all …]
|
D | compiler_optimizations_test.cpp | 92 if (inst->GetOpcode() == Opcode::SaveState) { in __anon2e732b7b0102() 99 if (inst->GetOpcode() == Opcode::Intrinsic) { in __anon2e732b7b0102() 178 if (inst->GetOpcode() == Opcode::Compare) { in __anon2e732b7b0202()
|
D | compiler_regalloc_test.cpp | 762 EXPECT_EQ(inst->GetOpcode(), Opcode::Phi); in __anon5d7559aa1102() 800 if (inst->GetOpcode() != Opcode::SpillFill) { in __anon5d7559aa1202() 871 if (inst->GetOpcode() != Opcode::Phi) { in __anon5d7559aa1302() 972 EXPECT_EQ(inst->GetOpcode(), Opcode::Phi); in __anon5d7559aa1502() 1014 if (inst->GetOpcode() == Opcode::Phi || inst->GetOpcode() == Opcode::CatchPhi || in __anon5d7559aa1602() 1015 inst->GetOpcode() == Opcode::SaveState) { in __anon5d7559aa1602() 1036 EXPECT_EQ(inst->GetOpcode(), Opcode::Phi); in __anon5d7559aa1602()
|
/arkcompiler/runtime_core/bytecode_optimizer/ |
D | codegen.cpp | 207 switch (bb->GetLastInst()->GetOpcode()) { in EmitJump() 286 … [](Inst const *i) { return i->GetOpcode() != compiler::Opcode::CastValueToAnyType; })) { in VisitConstant() 349 << "Codegen for " << compiler::GetOpcodeString(inst->GetOpcode()) << " failed"; in VisitIf() 358 if (inst->GetOpcode() != compiler::Opcode::CastValueToAnyType) { in IsEcmaConstTemplate() 401 …BYTECODE_OPTIMIZER) << "Codegen for " << compiler::GetOpcodeString(inst->GetOpcode()) << " failed"; in IfEcma() 430 << "Codegen for " << compiler::GetOpcodeString(inst->GetOpcode()) << " failed"; in IfEcma() 473 … [](Inst const *i) { return i->GetOpcode() != compiler::Opcode::CastValueToAnyType; })) { in VisitLoadString() 503 << "Codegen for " << compiler::GetOpcodeString(inst->GetOpcode()) << " failed"; in VisitReturn() 520 … [](Inst const *inst) { return inst->GetOpcode() != compiler::Opcode::Return; })) { in VisitCastValueToAnyType() 540 …if (!HasUserPredicate(cvat, [](Inst const *inst) { return inst->GetOpcode() != compiler::Opcode::I… in VisitCastValueToAnyType() [all …]
|
D | reg_acc_alloc.cpp | 78 ASSERT(phi->GetOpcode() == compiler::Opcode::Phi); in IsPhiOptimizable() 146 ASSERT(phi->GetOpcode() == compiler::Opcode::Phi); in IsPhiAccReady()
|
/arkcompiler/runtime_core/compiler/optimizer/analysis/ |
D | linear_order.cpp | 36 if (if_inst->GetOpcode() == Opcode::IfImm) { in HandleIfBlock() 38 } else if (if_inst->GetOpcode() == Opcode::If) { in HandleIfBlock() 54 switch (prev_inst->GetOpcode()) { in HandlePrevInstruction()
|
/arkcompiler/runtime_core/bytecode_optimizer/templates/ |
D | check_width.cpp.erb | 32 …ECODE_OPTIMIZER) << "CheckWidth for " << compiler::GetOpcodeString(inst->GetOpcode()) << " failed"; 49 …ECODE_OPTIMIZER) << "CheckWidth for " << compiler::GetOpcodeString(inst->GetOpcode()) << " failed";
|
/arkcompiler/runtime_core/bytecode_optimizer/tests/ |
D | common.h | 323 if (inst1->GetOpcode() != inst2->GetOpcode() || inst1->GetType() != inst2->GetType() || in Compare() 329 if (inst1->GetOpcode() == Opcode::Intrinsic || inst1->GetOpcode() == Opcode::Builtin) { in Compare() 336 if (inst1->GetOpcode() != Opcode::Phi) { in Compare() 358 …if (inst1->GetOpcode() == Opcode::Opc && inst1->CAST(Opc)->Getter() != inst2->CAST(Opc)->Getter())… in Compare() 401 … if (inst1->GetOpcode() == Opcode::Cmp && IsFloatType(inst1->GetInput(0).GetInst()->GetType())) { in Compare() 785 if (inst->GetOpcode() == Opcode::LoadConstArray) { in CheckConstArray() 789 if (inst->GetOpcode() == Opcode::LoadArray) { in CheckConstArray() 796 EXPECT_TRUE(inst->GetOpcode() != Opcode::LoadConstArray); in CheckConstArray()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | bytecodes.h | 209 inline EcmaOpcode GetOpcode() const in GetOpcode() function 288 static EcmaOpcode GetOpcode(const uint8_t *pc) in GetOpcode() function 665 return metaData_.GetOpcode() == ecmaOpcode; in IsBc() 693 inline EcmaOpcode GetOpcode() const in GetOpcode() function 695 return metaData_.GetOpcode(); in GetOpcode()
|
D | type_recorder.cpp | 95 if (bytecodes_->GetOpcode(pcOffsets_[bcIdx]) == EcmaOpcode::STA_V8) { in CollectLiteralGT() 101 EcmaOpcode ecmaOpcode = bytecodes_->GetOpcode(pcOffsets_[bcIdx]); in CollectLiteralGT() 128 staBc < pcOffsets_.size() && bytecodes_->GetOpcode(pcOffsets_[staBc]) == EcmaOpcode::STA_V8; in CheckTypeMarkForDefineFunc() 161 EcmaOpcode ecmaOpcode = bytecodes_->GetOpcode(pcOffsets_[bcIdx]); in CreateTypesForPGO()
|
/arkcompiler/runtime_core/compiler/optimizer/templates/ |
D | inst_builder_gen.cpp.erb | 169 switch(instruction->GetOpcode()) { 188 switch(inst->GetOpcode()) { 216 switch (bc_inst->GetOpcode()) { 243 … LOG(ERROR, COMPILER) << "Unknown ecma.* opcode: " << static_cast<int>(bc_inst->GetOpcode()); 253 switch (bc_inst->GetOpcode()) { 375 LOG(ERROR,COMPILER) << "unknown Ecma opcode!" << static_cast<int>(bc_inst->GetOpcode());
|
/arkcompiler/runtime_core/libpandafile/ |
D | bytecode_emitter.cpp | 166 auto opcode = insn.GetOpcode(); in ReserveSpaceForOffsets() 195 auto opcode = insn.GetOpcode(); in DoReserveSpaceForOffset() 270 auto longest = GetSizeByOpcode(GetLongestJump(insn.GetOpcode())); in EstimateMaxDistance()
|
/arkcompiler/runtime_core/libpandafile/templates/ |
D | bytecode_instruction-inl_gen.h.erb | 306 inline typename BytecodeInst<Mode>::Opcode BytecodeInst<Mode>::GetOpcode() const { 334 return GetFormat(GetOpcode()); 354 switch(GetOpcode()) { 371 switch(GetOpcode()) { 398 switch(GetOpcode()) { 415 switch(GetOpcode()) { 429 switch(inst.GetOpcode()) {
|