Home
last modified time | relevance | path

Searched refs:GetOpcode (Results 1 – 25 of 186) sorted by relevance

12345678

/arkcompiler/runtime_core/static_core/libpandafile/tests/
Dbytecode_instruction_tests.cpp35 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST()
43 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST()
52 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST()
59 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST()
67 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST()
75 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST()
84 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST()
91 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST()
99 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST()
107 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST()
[all …]
/arkcompiler/runtime_core/libpandafile/tests/
Dbytecode_instruction_tests.cpp33 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/static_core/compiler/optimizer/optimizations/
Ddeoptimize_elimination.cpp58 if (sp->GetOpcode() == Opcode::SafePoint) { in RemoveSafePoints()
62 … block->GetGraph()->GetEventWriter().EventDeoptimizeElimination(GetOpcodeString(sp->GetOpcode()), in RemoveSafePoints()
75 auto opcode = userInst->GetOpcode(); in RequireRegMap()
97 if (userInst->GetOpcode() == Opcode::SafePoint) { in VisitDefault()
112 …lock()->GetGraph()->GetEventWriter().EventDeoptimizeElimination(GetOpcodeString(inst->GetOpcode()), in VisitDefault()
131 …cBlock()->GetGraph()->GetEventWriter().EventDeoptimizeElimination(GetOpcodeString(ss->GetOpcode()), in VisitSaveState()
156 } else if (input->GetOpcode() == Opcode::IsMustDeoptimize) { in VisitDeoptimizeIf()
163 if (userInst != inst && userInst->GetOpcode() == Opcode::DeoptimizeIf && in VisitDeoptimizeIf()
181 … block->GetGraph()->GetEventWriter().EventDeoptimizeElimination(GetOpcodeString(inst->GetOpcode()), in TryToRemoveRedundantSaveState()
197 if (inst->GetOpcode() == Opcode::IsMustDeoptimize) { in CanRemoveGuard()
[all …]
Dvn.cpp34 (inst->GetOpcode() == Opcode::AddI || inst->GetOpcode() == Opcode::SubI); in IsAddressArithmeticInst()
39 if (inst->GetOpcode() != Opcode::LoadAndInitClass && inst->GetOpcode() != Opcode::InitClass && in AddClassInst()
40 inst->GetOpcode() != Opcode::LoadClass) { in AddClassInst()
58 if (inst->GetOpcode() != Opcode::GetGlobalVarAddress) { in AddGlobalVarInst()
70 if (inst->GetOpcode() != Opcode::SelectImm) { in AddSelectImmInst()
114 switch (inst->GetOpcode()) { in AddSpecialTraits()
137 return equivInst->GetOpcode() == Opcode::LoadClass && in IsIrreducibleClassInst()
138 … (inst->GetOpcode() == Opcode::InitClass || inst->GetOpcode() == Opcode::LoadAndInitClass); in IsIrreducibleClassInst()
156 if (inst->GetOpcode() == Opcode::ResolveVirtual) { in AddResolver()
158 } else if (inst->GetOpcode() == Opcode::ResolveStatic) { in AddResolver()
[all …]
Dlowering.cpp59 …graph->GetEventWriter().EventLowering(GetOpcodeString(inst->GetOpcode()), inst->GetId(), inst->Get… in VisitCastValueToAnyType()
60 … COMPILER_LOG(DEBUG, LOWERING) << "Lowering is applied for " << GetOpcodeString(inst->GetOpcode()); in VisitCastValueToAnyType()
115 …st->GetBasicBlock()->GetGraph()->GetEventWriter().EventLowering(GetOpcodeString(inst->GetOpcode()), in VisitCast()
117 … COMPILER_LOG(DEBUG, LOWERING) << "Lowering is applied for " << GetOpcodeString(inst->GetOpcode()); in VisitCast()
162 ASSERT(inst->GetOpcode() == Opcode::SaveState); in VisitSaveState()
168 ASSERT(inst->GetOpcode() == Opcode::SafePoint); in VisitSafePoint()
174 ASSERT(inst->GetOpcode() == Opcode::SaveStateOsr); in VisitSaveStateOsr()
180 ASSERT(inst->GetOpcode() == Opcode::SaveStateDeoptimize); in VisitSaveStateDeoptimize()
186 ASSERT(inst->GetOpcode() == Opcode::BoundsCheck); in VisitBoundsCheck()
192 ASSERT(inst->GetOpcode() == Opcode::LoadArray); in VisitLoadArray()
[all …]
Dpeepholes.cpp54 auto inputOpc = input->GetOpcode(); in VisitNeg()
122 if (inst->GetOpcode() == Opcode::Add) { in VisitAddFinalize()
128 if (input0->GetOpcode() == Opcode::Add && input1->GetOpcode() == Opcode::Sub) { in VisitAddFinalize()
132 if (input0->GetOpcode() == Opcode::Sub && input1->GetOpcode() == Opcode::Add) { in VisitAddFinalize()
138 if (input0->GetOpcode() == Opcode::Sub && input1->GetOpcode() == Opcode::Sub) { in VisitAddFinalize()
249 if (input0->GetOpcode() == Opcode::Neg && input1->GetOpcode() == Opcode::Neg) { in VisitAdd()
281 if (inst->GetOpcode() == Opcode::Sub) { in VisitSubFinalize()
287 if (input0->GetOpcode() == Opcode::Add && input1->GetOpcode() == Opcode::Add) { in VisitSubFinalize()
357 if (input0->GetOpcode() == Opcode::Neg && input1->GetOpcode() == Opcode::Neg) { in VisitSub()
368 if (input1->GetOpcode() == Opcode::Neg) { in VisitSub()
[all …]
Dmemory_coalescing.cpp149 switch (uinst->GetOpcode()) { in AddUsers()
232 if (inst->GetOpcode() == Opcode::SaveState) { in IsNotAcceptableForStore()
240 return inst->GetOpcode() == Opcode::SaveStateDeoptimize; in IsNotAcceptableForStore()
251 if (inst->GetOpcode() == Opcode::SafePoint) { in VisitDefault()
255 if (inst->GetOpcode() == Opcode::SaveStateOsr) { in VisitDefault()
300 switch (inst->GetOpcode()) { in IsPairInst()
435 ASSERT(inst->GetOpcode() == cand->GetOpcode()); in TryAddCoalescedPair()
485 if (cand->IsMarked(mrkInvalid_) || cand->GetOpcode() != inst->GetOpcode()) { in HandleArrayAccessI()
542 if (cand->IsMarked(mrkInvalid_) || cand->GetOpcode() != inst->GetOpcode()) { in HandleArrayAccess()
582 switch (first->GetOpcode()) { in InsertPair()
[all …]
Dobject_type_check_elimination.cpp72 ASSERT(inst->GetOpcode() == Opcode::IsInstance); in TryEliminateIsInstance()
80 if (ref->GetOpcode() == Opcode::NullPtr) { in TryEliminateIsInstance()
126 ASSERT(inst->GetOpcode() == Opcode::CheckCast); in TryEliminateCheckCast()
131 if (ref->GetOpcode() == Opcode::NullPtr) { in TryEliminateCheckCast()
170 switch (userInst->GetOpcode()) { in IsMember()
198 if (userInst->GetOpcode() != Opcode::IfImm) { in IsSuccessfulIsInstance()
Dphi_type_resolving.cpp69 if (user.GetInst()->GetOpcode() == Opcode::SaveStateOsr) { in CheckInputsAnyTypesRec()
86 if (inputInst->GetOpcode() == Opcode::Phi) { in CheckInputsAnyTypesRec()
92 if (inputInst->GetOpcode() != Opcode::CastValueToAnyType) { in CheckInputsAnyTypesRec()
120 if (inputInst->GetOpcode() == Opcode::CastValueToAnyType) { in PropagateTypeToPhi()
127 ASSERT(phi->GetInput(idx).GetInst()->GetOpcode() == Opcode::AnyTypeCheck); in PropagateTypeToPhi()
Dinline_intrinsics.cpp66 if (inst->GetOpcode() == Opcode::CallDynamic) { in RunImpl()
70 if (inst->GetOpcode() != Opcode::Intrinsic) { in RunImpl()
101 switch (inst->GetOpcode()) { in GetAssumedAnyType()
176 } else if (inputInst->GetOpcode() == Opcode::AnyTypeCheck && in TryInline()
202 if (savedInputs_[i]->GetOpcode() == Opcode::AnyTypeCheck) { in TryInline()
Dinlining.cpp62 switch (inst->GetOpcode()) { in CalculateInstructionsCount()
101 } else if (CanReplaceWithCallStatic(callInst->GetOpcode()) || ctx.replaceToStatic) { in EmitEvent()
199 if (nextInst->GetOpcode() == Opcode::Parameter) { in GetNextParam()
242 if (callInst->GetOpcode() == Opcode::CallResolvedVirtual) { in TryInline()
352 ASSERT(ifInst != nullptr && ifInst->GetOpcode() == Opcode::IfImm); in InsertDeoptimizeInst()
405 if (paramInst != nullptr && paramInst->GetOpcode() != Opcode::Parameter) { in UpdateParameterDataflow()
411 if (callInst->GetOpcode() == Opcode::CallResolvedVirtual || in UpdateParameterDataflow()
412 callInst->GetOpcode() == Opcode::CallResolvedStatic) { in UpdateParameterDataflow()
439 if (paramInst != nullptr && paramInst->GetOpcode() != Opcode::Parameter) { in UpdateExternalParameterDataflow()
446 if (callInst->GetOpcode() == Opcode::CallResolvedVirtual || in UpdateExternalParameterDataflow()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
Dlowering.cpp23 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()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dir_constructor.h242 auto opc = CurrentInst()->GetOpcode(); in Inputs()
283 switch (CurrentInst()->GetOpcode()) { in InputsAutoType()
312 switch (inst->GetOpcode()) {
346 switch (inst->GetOpcode()) { in Likely()
364 switch (inst->GetOpcode()) { in Unlikely()
382 switch (inst->GetOpcode()) { in IsArray()
398 switch (inst->GetOpcode()) { in CC()
447 if (inst->GetOpcode() == Opcode::Intrinsic) { in Inlined()
452 … ASSERT(inst->GetOpcode() == Opcode::CallStatic || inst->GetOpcode() == Opcode::CallVirtual || in Inlined()
453 inst->GetOpcode() == Opcode::CallDynamic); in Inlined()
[all …]
Ddump.cpp366 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode()
379 ArenaString opcode(GetOpcodeString(mixinInst->GetOpcode()), adapter); in DumpOpcodeAnyTypeMixin()
420 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode()
434 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode()
454 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode()
482 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode()
490 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode()
500 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode()
511 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode()
522 ArenaString opcode(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode()
[all …]
Dvisitor.inc22 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst);
33 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst);
42 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst);
47 TABLE[static_cast<unsigned>(inst->GetOpcode())](this, inst);
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/
Dets_codegen_extensions.cpp37 if (callInst->GetOpcode() == Opcode::CallResolvedLaunchStatic || in LaunchCallCodegen()
38 callInst->GetOpcode() == Opcode::CallResolvedLaunchVirtual) { in LaunchCallCodegen()
47 if (callInst->GetOpcode() == Opcode::CallResolvedLaunchVirtual) { in LaunchCallCodegen()
57 if (callInst->GetOpcode() == Opcode::CallLaunchStatic) { in LaunchCallCodegen()
61 ASSERT(callInst->GetOpcode() == Opcode::CallLaunchVirtual); in LaunchCallCodegen()
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
Dcommon.cpp28 switch (inst->GetOpcode()) { in AccReadIndex()
51 …ASSERT(binop->GetOpcode() == compiler::Opcode::AddI || binop->GetOpcode() == compiler::Opcode::Sub… in CanConvertToIncI()
87 if (binop->GetOpcode() == compiler::Opcode::SubI) { in CanConvertToIncI()
Dbytecodeopt_peepholes.cpp33 if (inst->GetOpcode() == Opcode::NullCheck) { in FindCtorCall()
36 if (inst->GetOpcode() != Opcode::CallStatic) { in FindCtorCall()
41 if (callFirstArg->GetOpcode() == Opcode::NewObject) { in FindCtorCall()
118 if (i->GetOpcode() != Opcode::SaveState && i->GetOpcode() != Opcode::NullCheck) { in VisitNewObject()
122 if (i->GetOpcode() == Opcode::SaveState) { in VisitNewObject()
Dcheck_resolver.cpp24 auto op = inst->GetOpcode(); in ReplaceCheck()
68 if (inst->GetOpcode() == compiler::Opcode::LenArray) { in RunImpl()
78 switch (inst->GetOpcode()) { in NeedSetNoDCE()
92 switch (inst->GetOpcode()) { in IsCheck()
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
Dphi_resolver.h46 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/
Dir_constructor.h212 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 …]
Dvisitor.inc21 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);
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
Dtypes_analysis.cpp42 if (userInst->GetOpcode() == Opcode::Phi) { in MarkedPhiRec()
55 if (userInst->GetOpcode() == Opcode::Phi) { in VisitCastValueToAnyType()
69 if (input->GetOpcode() == Opcode::Phi) { in VisitAnyTypeCheck()
Dcountable_loop_parser.cpp49 … if (loopInfo_.ifImm->GetOpcode() != Opcode::IfImm && loopInfo_.ifImm->GetOpcode() != Opcode::If) { in Parse()
53 if (loopExitCmp->GetOpcode() != Opcode::Compare) { in Parse()
101 preHeader->GetLastInst()->GetOpcode() != Opcode::IfImm) { in HasPreHeaderCompare()
105 ASSERT(preHeaderIfImm->GetOpcode() == Opcode::IfImm); in HasPreHeaderCompare()
107 if (preHeaderCmp->GetOpcode() != Opcode::Compare) { in HasPreHeaderCompare()
111 ASSERT(backEdgeCmp->GetOpcode() == Opcode::Compare); in HasPreHeaderCompare()
223 ASSERT(loopExitCmp->GetOpcode() == Opcode::Compare); in SetUpdateAndTestInputs()
271 ASSERT(loopExitCmp->GetOpcode() == Opcode::Compare); in SetNormalizedConditionCode()
/arkcompiler/runtime_core/static_core/irtoc/backend/compiler/
Ddangling_pointers_checker.cpp63 if (inst->GetOpcode() != Opcode::AddI) { in IsObjectDef()
74 if (inst->GetOpcode() != Opcode::LiveIn) { in InitLiveIns()
105 if (inst->GetOpcode() == Opcode::LoadI) { in IsFrameDef()
161 if (inst->GetOpcode() != Opcode::LoadI) { in GetAccAndFrameDefs()
192 if (inst->GetOpcode() != Opcode::LoadI) { in IsAccTagDef()
213 if (inst->GetOpcode() != Opcode::AddI) { in IsAccTagPtr()
228 if (inst->GetOpcode() != Opcode::AddI) { in IsAccPtr()
330 … (inputInst->GetOpcode() == Opcode::Bitcast && inputInst->GetInput(0).GetInst()->IsConst())) { in GetPhiAccDef()
363 … (inputInst->GetOpcode() == Opcode::Bitcast && inputInst->GetInput(0).GetInst()->IsConst())) { in GetAccDefFromInputs()
423 if (inst->GetOpcode() != Opcode::StoreI) { in IsSaveAcc()
[all …]

12345678