| /arkcompiler/runtime_core/libabckit/src/irbuilder_dynamic/templates/ |
| D | inst_templates.yaml | 20 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres… 25 …auto instSaveState = CreateSaveState(compiler::Opcode::SaveState, GetPc(instruction->GetAddress())… 26 …auto instCheck = graph_->CreateInstZeroCheck(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAd… 33 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres… 41 … auto inst = graph_->CreateInstAdd(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 47 … auto inst = graph_->CreateInstCast(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 58 …auto inst = graph_->CreateInstCompare(compiler::DataType::BOOL, GetPc(instruction->GetAddress()), … 60 … auto inst = graph_->CreateInstCmp(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 72 …auto inst = graph_->CreateInstIf(compiler::DataType::NO_TYPE, GetPc(instruction->GetAddress()), Ge… 75 …auto inst = graph_->CreateInstIf(compiler::DataType::NO_TYPE, GetPc(instruction->GetAddress()), Ge… [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
| D | inst_templates.yaml | 20 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres… 25 auto inst_save_state = CreateSaveState(Opcode::SaveState, GetPc(instruction->GetAddress())); 26 …auto inst_check = graph_->CreateInstZeroCheck(<%= get_type(inst.dtype) %>, GetPc(instruction->GetA… 37 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres… 45 … auto inst = graph_->CreateInstAdd(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 55 … auto inst = graph_->CreateInstCast(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 66 …auto inst = graph_->CreateInstCompare(DataType::BOOL, GetPc(instruction->GetAddress()), ConditionC… 68 … auto inst = graph_->CreateInstCmp(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 79 …auto inst = graph_->CreateInstCompare(DataType::BOOL, GetPc(instruction->GetAddress()), <%= get_cc… 87 …auto inst_jump = graph_->CreateInstIfImm(DataType::NO_TYPE, GetPc(instruction->GetAddress()), Cond… [all …]
|
| D | inst_builder-inl.h | 30 auto save_state = CreateSaveState(Opcode::SaveState, GetPc(bc_inst->GetAddress())); in BuildLoadFromPool() 35 inst = GetGraph()->CreateInstLoadString(DataType::REFERENCE, GetPc(bc_inst->GetAddress())); in BuildLoadFromPool() 56 auto box = graph_->CreateInstCastValueToAnyType(GetPc(bc_inst->GetAddress())); in BuildCastToAnyString() 82 auto box = graph_->CreateInstCastValueToAnyType(GetPc(bc_inst->GetAddress())); in BuildCastToAnyNumber()
|
| D | pbc_iterator.h | 66 size_t GetPc(const BytecodeInstruction INST) const in GetPc() function
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/ |
| D | inst_builder-inl.h | 43 pc_ = Builder()->GetPc(bcInst->GetAddress()); in BuildCallHelper() 243 auto saveState = CreateSaveState(Opcode::SaveState, GetPc(bcInst->GetAddress())); in BuildMonitor() 244 auto inst = GetGraph()->CreateInstMonitor(DataType::VOID, GetPc(bcInst->GetAddress())); in BuildMonitor() 250 …auto nullCheck = graph_->CreateInstNullCheck(DataType::REFERENCE, GetPc(bcInst->GetAddress()), def… in BuildMonitor() 289 … auto inst = GetGraph()->CreateInstAbs(GetMethodReturnType(methodId), GetPc(bcInst->GetAddress())); in BuildAbsIntrinsic() 326 …auto inst = CreateBinaryOperation<OPCODE>(GetGraph(), GetMethodReturnType(methodId), GetPc(bcInst-… in BuildBinaryOperationIntrinsic() 338 …auto inst = GetGraph()->CreateInstSqrt(GetMethodReturnType(methodId), GetPc(bcInst->GetAddress())); in BuildSqrtIntrinsic() 354 … auto inst = GetGraph()->CreateInstCompare(DataType::BOOL, GetPc(bcInst->GetAddress()), vreg, vreg, in BuildIsNanIntrinsic() 364 auto bcAddr = GetPc(bcInst->GetAddress()); in BuildStringLengthIntrinsic() 389 auto bcAddr = GetPc(bcInst->GetAddress()); in BuildStringIsEmptyIntrinsic() [all …]
|
| D | inst_templates.yaml | 20 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres… 25 auto inst_save_state = CreateSaveState(Opcode::SaveState, GetPc(instruction->GetAddress())); 26 …auto inst_check = graph_->CreateInstZeroCheck(<%= get_type(inst.dtype) %>, GetPc(instruction->GetA… 41 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres… 65 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres… 75 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres… 80 … auto inst = graph_->CreateInstAdd(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 91 …auto inst = graph_->CreateInstCast(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress()), … 99 …auto inst = graph_->CreateInstCompare(DataType::BOOL, GetPc(instruction->GetAddress()), GetDefinit… 103 …auto inst = graph_->CreateInstCmp(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress()), G… [all …]
|
| D | pbc_iterator.h | 60 size_t GetPc(const BytecodeInstruction inst) const in GetPc() function
|
| /arkcompiler/runtime_core/libabckit/src/templates/abckit_intrinsics/ |
| D | inst_builder_abckit_intrinsics.inc.erb | 72 auto pc = GetPc(bcInst->GetAddress()); 175 …inst = GetGraph()->CreateInstIntrinsic(ark::compiler::DataType::REFERENCE, GetPc(bcInst->GetAddres… 177 …inst = GetGraph()->CreateInstIntrinsic(ark::compiler::DataType::REFERENCE, GetPc(bcInst->GetAddres… 179 …inst = GetGraph()->CreateInstIntrinsic(ark::compiler::DataType::REFERENCE, GetPc(bcInst->GetAddres… 212 …inst = GetGraph()->CreateInstIntrinsic(retType, GetPc(bcInst->GetAddress()), ark::compiler::Runtim… 216 …inst = GetGraph()->CreateInstIntrinsic(retType, GetPc(bcInst->GetAddress()), ark::compiler::Runtim… 220 …inst = GetGraph()->CreateInstIntrinsic(retType, GetPc(bcInst->GetAddress()), ark::compiler::Runtim… 252 …inst = GetGraph()->CreateInstIntrinsic(type, GetPc(bcInst->GetAddress()), ark::compiler::RuntimeIn… 256 …inst = GetGraph()->CreateInstIntrinsic(type, GetPc(bcInst->GetAddress()), ark::compiler::RuntimeIn… 260 …inst = GetGraph()->CreateInstIntrinsic(type, GetPc(bcInst->GetAddress()), ark::compiler::RuntimeIn… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/compiler/ |
| D | ir_build_intrinsics_ets.cpp | 45 …GetGraph()->CreateInstBitcast(itype, GetPc(bcInst->GetAddress()), GetArgDefinition(bcInst, 0, accR… in BuildIsFiniteIntrinsic() 47 …GetGraph()->CreateInstShr(itype, GetPc(bcInst->GetAddress()), bitcast, FindOrCreateConstant(fpFrac… in BuildIsFiniteIntrinsic() 48 …auto mask = GetGraph()->CreateInstAnd(itype, GetPc(bcInst->GetAddress()), shift, FindOrCreateConst… in BuildIsFiniteIntrinsic() 49 auto cmp = GetGraph()->CreateInstCompare(DataType::BOOL, GetPc(bcInst->GetAddress()), mask, in BuildIsFiniteIntrinsic() 59 …GetGraph()->CreateInstCompare(DataType::BOOL, GetPc(bcInst->GetAddress()), GetArgDefinition(bcInst… in BuildStdRuntimeEquals() 67 auto bitcast = GetGraph()->CreateInstBitcast(DataType::INT64, GetPc(bcInst->GetAddress()), in BuildSignbitIntrinsic() 71 …GetGraph()->CreateInstShr(DataType::INT64, GetPc(bcInst->GetAddress()), bitcast, FindOrCreateConst… in BuildSignbitIntrinsic() 80 auto bcAddr = GetPc(bcInst->GetAddress()); in BuildUint8ClampedArraySetIntrinsic() 122 auto bcAddr = GetPc(bcInst->GetAddress()); in BuildTypedArraySet() 135 auto bcAddr = GetPc(bcInst->GetAddress()); in BuildBigInt64ArraySetIntrinsic() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| D | loop_idioms.cpp | 253 return GetGraph()->CreateInstIntrinsic(DataType::VOID, store_.inst->GetPc(), ID); in CreateIntrinsic() 280 return GetGraph()->CreateInstIntrinsic(DataType::VOID, store_.inst->GetPc(), id); in CreateIntrinsic() 313 auto neg = GetGraph()->CreateInstNeg(offset->GetType(), offset->GetPc(), offset); in NegateIfNeeded() 328 … auto add = GetGraph()->CreateInstAdd((*srcEnd)->GetType(), (*srcEnd)->GetPc(), (*srcEnd), one); in PatchRange() 338 … GetGraph()->CreateInstAdd((*srcStart)->GetType(), (*srcStart)->GetPc(), (*srcStart), one); in PatchRange() 339 … auto addEnd = GetGraph()->CreateInstAdd((*srcEnd)->GetType(), (*srcEnd)->GetPc(), (*srcEnd), one); in PatchRange() 349 … auto add = GetGraph()->CreateInstAdd((*srcEnd)->GetType(), (*srcEnd)->GetPc(), (*srcEnd), one); in PatchRange() 370 auto newB = GetGraph()->CreateEmptyBlock(store_.inst->GetPc()); in ReplaceLoopCompletely() 377 … GetGraph()->CreateInstAdd(DataType::INT32, load_.inst->GetPc(), loopInfo_.init, load_.idxOffset); in ReplaceLoopCompletely() 379 …Inst *srcEnd = GetGraph()->CreateInstAdd(DataType::INT32, load_.inst->GetPc(), loopInfo_.test, loa… in ReplaceLoopCompletely() [all …]
|
| D | savestate_optimization.cpp | 46 … sp->GetId(), sp->GetPc()); in RemoveSafePoints() 96 … inst->GetId(), inst->GetPc()); in VisitDefault() 115 … ss->GetId(), ss->GetPc()); in VisitSaveState() 134 … inst->GetId(), inst->GetPc()); in TryToRemoveRedundantSaveState()
|
| D | reserve_string_builder_buffer.cpp | 228 DataType::REFERENCE, ctorCall->GetPc(), CopySaveState(graph, ctorCall->GetSaveState()), in CreateInstructionNewObjectsArray() 236 …auto newObjectsArray = graph->CreateInstNewArray(DataType::REFERENCE, ctorCall->GetPc(), loadClass… in CreateInstructionNewObjectsArray() 246 auto storeArray = graph->CreateInstStoreArray(DataType::REFERENCE, ctorCall->GetPc()); in StoreStringBuilderConstructorArgument() 256 auto lenArray = graph->CreateInstLenArray(DataType::INT32, ctorCall->GetPc(), arg); in CreateStringBuilderConstructorArgumentLength() 259 auto argLength = graph->CreateInstShr(DataType::INT32, ctorCall->GetPc()); in CreateStringBuilderConstructorArgumentLength() 281 …auto storeObject = graph->CreateInstStoreObject(DataType::REFERENCE, ctorCall->GetPc(), instance, … in StoreStringBuilderBufferField() 294 …auto storeObject = graph->CreateInstStoreObject(DataType::INT32, ctorCall->GetPc(), instance, inde… in StoreStringBuilderIndexField() 305 …auto storeObject = graph->CreateInstStoreObject(DataType::INT32, ctorCall->GetPc(), instance, leng… in StoreStringBuilderLengthField() 316 …auto storeObject = graph->CreateInstStoreObject(DataType::BOOL, ctorCall->GetPc(), instance, isCom… in StoreStringBuilderIsCompressedField() 347 … argString = GetGraph()->CreateInstInitString(DataType::REFERENCE, ctorCall->GetPc(), ctorArg, in ReplaceInitialBufferSizeConstantNotInlined()
|
| D | lowering.cpp | 59 …->GetEventWriter().EventLowering(GetOpcodeString(inst->GetOpcode()), inst->GetId(), inst->GetPc()); in VisitCastValueToAnyType() 116 … inst->GetId(), inst->GetPc()); in VisitCast() 304 …graph->CreateInstAShr(inst->GetType(), inst->GetPc(), input0, graph->FindOrCreateConstant(typeSize… in ReplaceSignedDivPowerOfTwo() 306 …auto shr = graph->CreateInstShr(inst->GetType(), inst->GetPc(), ashr, graph->FindOrCreateConstant(… in ReplaceSignedDivPowerOfTwo() 308 auto add = graph->CreateInstAdd(inst->GetType(), inst->GetPc(), shr, input0); in ReplaceSignedDivPowerOfTwo() 310 …Inst *ashr2 = graph->CreateInstAShr(inst->GetType(), inst->GetPc(), add, graph->FindOrCreateConsta… in ReplaceSignedDivPowerOfTwo() 315 result = graph->CreateInstNeg(inst->GetType(), inst->GetPc(), ashr2); in ReplaceSignedDivPowerOfTwo() 343 auto shrInst = graph->CreateInstShr(inst->GetType(), inst->GetPc(), input0, power); in ReplaceUnsignedDivPowerOfTwo() 402 auto divImmInst = graph->CreateInstDivI(inst->GetType(), inst->GetPc(), input0, uValue); in TryReplaceDivModNonPowerOfTwo() 406 auto modImmInst = graph->CreateInstModI(inst->GetType(), inst->GetPc(), input0, uValue); in TryReplaceDivModNonPowerOfTwo() [all …]
|
| D | optimize_string_concat.cpp | 136 … auto ctorCall = graph->CreateInstCallStatic(DataType::VOID, instance->GetPc(), methodId, method); in CreateStringBuilderDefaultConstructorCall() 148 return graph->CreateInstLoadArray(DataType::REFERENCE, array->GetPc(), array, index); in CreateLoadArray() 158 return graph->CreateInstLenArray(DataType::INT32, newArray->GetPc(), newArray); in CreateLenArray() 230 auto pc = instance->GetPc(); in CreateAppendArgsLoop() 306 …auto instance = CreateInstructionStringBuilderInstance(GetGraph(), concatCall->GetPc(), concatCall… in ReplaceStringConcatWithStringBuilderAppend()
|
| D | adjust_arefs.cpp | 173 auto arrData = InsertPointerArithmetic(def, off, head, def->GetPc(), true); in ProcessChain() 253 newBase = InsertPointerArithmetic(base, newOff, mem, mem->GetPc(), true); in ProcessIndex() 256 newBase = InsertPointerArithmetic(base, newOff, mem, mem->GetPc(), false); in ProcessIndex() 263 newBase = InsertPointerArithmetic(base, newOff, mem, mem->GetPc(), true); in ProcessIndex()
|
| D | deoptimize_elimination.cpp | 168 guard->GetPc()); in RemoveGuard() 183 inst->GetPc()); in RemoveDeoptimizeIf() 191 savestate->GetPc()); in RemoveDeoptimizeIf()
|
| /arkcompiler/runtime_core/static_core/bytecode_optimizer/ |
| D | bytecodeopt_peepholes.cpp | 108 …deInstruction(graph->GetRuntime()->GetMethodCode(graph->GetMethod()) + inst->GetPc()).GetFormat()); in VisitNewObject() 109 if (inst->GetBasicBlock()->IsTry() && callInit->GetPc() - inst->GetPc() > newobjSize) { in VisitNewObject() 137 initObject->SetPc(callInit->GetPc()); in VisitNewObject()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ir_builder/ |
| D | ets_inst_builder.cpp | 56 auto pc = GetPc(bcInst->GetAddress()); in BuildLdObjByName() 152 auto pc = GetPc(bcInst->GetAddress()); in BuildStObjByName() 198 …auto cmpInst = graph_->CreateInstCompare(DataType::BOOL, GetPc(bcInst->GetAddress()), GetDefinitio… in BuildIsNullValue() 207 auto pc = GetPc(bcInst->GetAddress()); in BuildEquals() 242 auto pc = GetPc(bcInst->GetAddress()); in BuildTypeof() 262 auto pc = GetPc(bcInst->GetAddress()); in BuildIstrue() 284 auto pc = GetPc(bcInst->GetAddress()); in BuildCallByName()
|
| /arkcompiler/runtime_core/static_core/runtime/jit/ |
| D | profiling_data.h | 163 uintptr_t GetPc() const in GetPc() function 219 uintptr_t GetPc() const in GetPc() function 361 … [](const auto &a, uintptr_t counter) { return a.GetPc() < counter; }); in FindBranchData() 362 if (it == branchData_.end() || it->GetPc() != fromPc) { in FindBranchData() 374 … [](const auto &a, uintptr_t counter) { return a.GetPc() < counter; }); in FindThrowData() 375 if (it == throwData_.end() || it->GetPc() != fromPc) { in FindThrowData()
|
| /arkcompiler/runtime_core/libabckit/src/adapter_static/ |
| D | abckit_inst_builder-inl.h | 108 … inst = GetGraph()->CreateInstUnresolvedLoadType(DataType::REFERENCE, GetPc(bcInst->GetAddress())); in AbcKitBuildLoadFromPool() 114 inst = GetGraph()->CreateInstLoadType(DataType::REFERENCE, GetPc(bcInst->GetAddress())); in AbcKitBuildLoadFromPool() 125 auto saveState = CreateSaveState(Opcode::SaveState, GetPc(bcInst->GetAddress())); in AbcKitBuildLoadFromPool()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ |
| D | ets_intrinsics_peephole.cpp | 71 auto pc = intrinsic->GetPc(); in ReplaceTypeofWithIsInstance() 160 auto pc = intrinsic->GetPc(); in TryInsertFieldInst() 205 auto pc = intrinsic->GetPc(); in TryInsertCallInst() 270 …auto compareNull = graph->CreateInstCompare(DataType::BOOL, intrinsic->GetPc(), input, graph->GetO… in ReplaceWithCompareNullish() 273 …graph->CreateInstCompare(DataType::BOOL, intrinsic->GetPc(), input, graph->GetOrCreateUniqueObject… in ReplaceWithCompareNullish() 276 …auto orInst = graph->CreateInstOr(DataType::BOOL, intrinsic->GetPc(), compareNull, compareUniqueOb… in ReplaceWithCompareNullish() 365 auto pc = intrinsic->GetPc(); in PeepholeDoubleToString() 411 auto loadType = graph->CreateInstLoadType(DataType::REFERENCE, intrinsic->GetPc()); in PeepholeGetTypeInfo() 432 auto pc = intrinsic->GetPc(); in PeepholeStringFromCharCodeSingle() 542 auto pc = intrinsic->GetPc(); in BuildLoadPropertyChain()
|
| D | ets_intrinsics_inlining_expansion.cpp | 29 auto bcAddr = callInst->GetPc(); in ExpandIntrinsicEscompatArrayGet() 67 auto bcAddr = callInst->GetPc(); in ExpandIntrinsicEscompatArraySet()
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
| D | lowering.cpp | 120 auto replace = graph->CreateInstIf(DataType::NO_TYPE, inst->GetPc(), cc); in LowerIf() 128 …->GetEventWriter().EventLowering(GetOpcodeString(inst->GetOpcode()), inst->GetId(), inst->GetPc()); in LowerIf() 146 inst->GetPc()); in InPlaceLowerIfImm()
|
| /arkcompiler/runtime_core/libabckit/src/irbuilder_dynamic/ |
| D | inst_builder_dyn-inl.h | 33 GetGraph()->CreateInstIntrinsic(ark::compiler::DataType::ANY, GetPc(bcInst->GetAddress()), in BuildAbcKitLoadStringIntrinsic()
|
| D | pbc_iterator_dyn.h | 65 size_t GetPc(const BytecodeInst &inst) const in GetPc() function
|