/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | code_info_test.cpp | 73 void CompareVRegs(CodeInfo &codeInfo, StackMap stackMap, int inlineInfoIndex, std::array<VRegInfo, N> vregs) in CompareVRegs() argument 82 ASSERT_EQ(vregsInMap.size(), vregs.size()); in CompareVRegs() 83 for (size_t i = 0; i < vregs.size(); i++) { in CompareVRegs() 85 ASSERT_EQ(vregsInMap[i], vregs[i]); in CompareVRegs() 89 void SingleStackMapDoCheck(CodeInfo &codeInfo, const std::array<VRegInfo, 3U> &vregs); 90 ArenaVector<uint8_t> MultipleStackmapsBuild(const std::array<VRegInfo, 6U> &vregs, void *methodStub); 91 void MultipleStackmapsCheck1(CodeInfo &codeInfo, const std::array<VRegInfo, 6U> &vregs, void *methodStub); 92 void MultipleStackmapsCheck2(CodeInfo &codeInfo, const std::array<VRegInfo, 6U> &vregs); 100 void CodeInfoTest::SingleStackMapDoCheck(CodeInfo &codeInfo, const std::array<VRegInfo, 3U> &vregs) in SingleStackMapDoCheck() argument 125 codeInfo.EnumerateStaticRoots(stackMap, [&mask, &vregs](aut in SingleStackMapDoCheck() 146 std::array vregs = {VRegInfo(1U, VRegInfo::Location::FP_REGISTER, VRegInfo::Type::INT64, VRegInfo::VRegType::VREG), TEST_F() local 181 MultipleStackmapsBuild(const std::array<VRegInfo, 6U> &vregs, void *methodStub) MultipleStackmapsBuild() argument 241 MultipleStackmapsCheck1(CodeInfo &codeInfo, const std::array<VRegInfo, 6U> &vregs, void *methodStub) MultipleStackmapsCheck1() argument 262 MultipleStackmapsCheck2(CodeInfo &codeInfo, const std::array<VRegInfo, 6U> &vregs) MultipleStackmapsCheck2() argument 311 std::array vregs = { TEST_F() local [all...] |
/arkcompiler/runtime_core/compiler/tests/ |
H A D | code_info_test.cpp | 71 void CompareVRegs(CodeInfo &code_info, StackMap stack_map, int inline_info_index, std::array<VRegInfo, N> vregs) in CompareVRegs() argument 80 ASSERT_EQ(vregs_in_map.size(), vregs.size()); in CompareVRegs() 81 for (size_t i = 0; i < vregs.size(); i++) { in CompareVRegs() 83 ASSERT_EQ(vregs_in_map[i], vregs[i]); in CompareVRegs() 95 std::array vregs = {VRegInfo(1, VRegInfo::Location::FP_REGISTER, VRegInfo::Type::INT64, false), in TEST_F() local 99 vregs[1].SetValue((vregs[1].GetValue() << 1) + 1 + regs_count); in TEST_F() 101 vregs[1].SetValue(vregs[1].GetValue() + regs_count); in TEST_F() 111 builder.AddVReg(vregs[ in TEST_F() 166 std::array vregs = { TEST_F() local [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch32/ |
H A D | callconv.cpp | 56 uint8_t Aarch32CallingConvention::PushPopVRegs(VRegMask vregs, bool isPush = true) in PushPopVRegs() argument 61 for (size_t i = 0; i < vregs.size(); ++i) { in PushPopVRegs() 62 if (-1 == first && vregs.test(i)) { in PushPopVRegs() 67 if (vregs.test(i)) { in PushPopVRegs() 68 if (!vregs.test(i - 1)) { in PushPopVRegs() 92 for (int32_t i = vregs.size() - 1; i >= 0; --i) { in PushPopVRegs() 93 if (vregs.test(i)) { in PushPopVRegs() 100 for (size_t i = 0; i < vregs.size(); ++i) { in PushPopVRegs() 101 if (vregs.test(i)) { in PushPopVRegs() 119 uint8_t Aarch32CallingConvention::PushRegs(RegMask regs, VRegMask vregs, boo argument 157 PopRegs(RegMask regs, VRegMask vregs, bool isCallee) PopRegs() argument [all...] |
H A D | target.h | 257 uint8_t PushPopVRegs(VRegMask vregs, bool isPush); 258 uint8_t PushRegs(RegMask regs, VRegMask vregs, bool isCallee); 259 uint8_t PopRegs(RegMask regs, VRegMask vregs, bool isCallee);
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch64/ |
H A D | callconv.cpp | 64 void Aarch64CallingConvention::PrepareToPushPopRegs(vixl::aarch64::CPURegList regs, vixl::aarch64::CPURegList vregs, in PrepareToPushPopRegs() argument 71 if ((vregs.GetCount() % IMM_2) == 1) { in PrepareToPushPopRegs() 74 ASSERT((vregs.GetList() & (UINT64_C(1) << allignmentVreg)) == 0); in PrepareToPushPopRegs() 75 vregs.Combine(allignmentVreg); in PrepareToPushPopRegs() 79 size_t Aarch64CallingConvention::PushRegs(vixl::aarch64::CPURegList regs, vixl::aarch64::CPURegList vregs, in PushRegs() argument 82 PrepareToPushPopRegs(regs, vregs, isCallee); in PushRegs() 83 GetMasm()->PushCPURegList(vregs); in PushRegs() 85 return vregs.GetCount() + regs.GetCount(); in PushRegs() 88 size_t Aarch64CallingConvention::PopRegs(vixl::aarch64::CPURegList regs, vixl::aarch64::CPURegList vregs, bool isCallee) in PopRegs() argument 90 PrepareToPushPopRegs(regs, vregs, isCalle in PopRegs() [all...] |
H A D | target.h | 503 size_t PushRegs(vixl::aarch64::CPURegList regs, vixl::aarch64::CPURegList vregs, bool isCallee); 505 size_t PopRegs(vixl::aarch64::CPURegList regs, vixl::aarch64::CPURegList vregs, bool isCallee); 506 void PrepareToPushPopRegs(vixl::aarch64::CPURegList regs, vixl::aarch64::CPURegList vregs, bool isCallee);
|
/arkcompiler/runtime_core/libpandafile/ |
H A D | code_data_accessor-inl.h | 71 inline const uint8_t *CodeDataAccessor::GetInstructions(const File &pf, File::EntityId code_id, uint32_t *vregs) in GetInstructions() argument 74 *vregs = helpers::ReadULeb128(&sp); in GetInstructions()
|
H A D | code_data_accessor.h | 120 static const uint8_t *GetInstructions(const File &pf, File::EntityId code_id, uint32_t *vregs);
|
/arkcompiler/runtime_core/static_core/libpandafile/ |
H A D | code_data_accessor-inl.h | 72 inline const uint8_t *CodeDataAccessor::GetInstructions(const File &pf, File::EntityId codeId, uint32_t *vregs) in GetInstructions() argument 75 *vregs = helpers::ReadULeb128(&sp); in GetInstructions()
|
H A D | code_data_accessor.h | 120 static const uint8_t *GetInstructions(const File &pf, File::EntityId codeId, uint32_t *vregs);
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
H A D | graph.cpp | 481 const auto &vregs = catch_phi->GetThrowableInsts(); in RemoveThrowableInst() local 482 auto it = std::find(vregs->begin(), vregs->end(), inst); in RemoveThrowableInst() 483 if (it != vregs->end()) { in RemoveThrowableInst() 484 int index = std::distance(vregs->begin(), it); in RemoveThrowableInst() 503 const auto &vregs = catch_phi->GetThrowableInsts(); in ReplaceThrowableInst() local 504 auto iter = std::find(vregs->begin(), vregs->end(), old_inst); in ReplaceThrowableInst() 505 if (iter != vregs->end()) { in ReplaceThrowableInst()
|
H A D | ir_constructor.h | 741 IrConstructor &SrcVregs(std::vector<int> &&vregs) in SrcVregs() argument 744 if (!vregs.empty()) { in SrcVregs() 746 std::max<size_t>(graph_->GetVRegsCount(), *std::max_element(vregs.begin(), vregs.end()))); in SrcVregs() 749 save_state_inst_vregs_map_.emplace(CurrentInstIndex(), std::move(vregs)); in SrcVregs() 926 const auto &vregs {inst->IsSaveState() ? save_state_inst_vregs_map_[insti] : std::vector<int> {}}; 927 ASSERT(!inst->IsSaveState() || inputs.size() == vregs.size()); 945 static_cast<SaveStateInst *>(inst)->SetVirtualRegister(idx, VirtualRegister(vregs[idx], false));
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | graph.cpp | 722 const auto &vregs = catchPhi->GetThrowableInsts(); in RemoveThrowableInst() local 723 if (vregs == nullptr || vregs->empty()) { in RemoveThrowableInst() 726 auto it = std::find(vregs->begin(), vregs->end(), inst); in RemoveThrowableInst() 727 if (it != vregs->end()) { in RemoveThrowableInst() 728 int index = std::distance(vregs->begin(), it); in RemoveThrowableInst() 747 const auto &vregs = catchPhi->GetThrowableInsts(); in ReplaceThrowableInst() local 748 auto iter = std::find(vregs->begin(), vregs in ReplaceThrowableInst() [all...] |
H A D | ir_constructor.h | 932 IrConstructor &SrcVregs(std::vector<int> &&vregs) in SrcVregs() argument 935 if (!vregs.empty()) { in SrcVregs() 937 std::max<size_t>(graph_->GetVRegsCount(), *std::max_element(vregs.begin(), vregs.end()))); in SrcVregs() 940 saveStateInstVregsMap_.emplace(CurrentInstIndex(), std::move(vregs)); in SrcVregs() 956 auto &vregs = saveStateInstVregsMap_[CurrentInstIndex()]; in CleanupInputs() local 960 vregs.erase(vregs.begin() + i); in CleanupInputs() 1244 void ConstructInput(Inst *inst, size_t inputIdx, const std::vector<int> &vregs, size_t idx) 1258 VirtualRegister(vregs[id [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/amd64/ |
H A D | callconv.cpp | 60 size_t Amd64CallingConvention::PushRegs(RegList regs, RegList vregs) in PushRegs() argument 67 if (vregs.Has(ii)) { in PushRegs() 85 size_t Amd64CallingConvention::PopRegs(RegList regs, RegList vregs) in PopRegs() argument 98 if (vregs.Has(i)) { in PopRegs()
|
H A D | target.h | 495 size_t PushRegs(RegList regs, RegList vregs); 497 size_t PopRegs(RegList regs, RegList vregs);
|
/arkcompiler/runtime_core/static_core/libllvmbackend/object_code/ |
H A D | code_info_producer.cpp | 250 auto vregs = vregSlots / VREG_RECORD_SIZE; 253 BuildSingleRegMap(builder, record, methodIdIndex, vregs, stackSize); 268 vregs = vregSlots / VREG_RECORD_SIZE; 272 BuildSingleRegMap(builder, record, methodIdIndex, vregs, stackSize);
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
H A D | reg_alloc_verifier.cpp | 90 BlockStates(size_t regs, size_t vregs, size_t stackSlots, size_t stackParams, ArenaAllocator *allocator) in BlockStates() argument 91 : startState_(regs, vregs, stackSlots, stackParams, allocator), in BlockStates() 92 endState_(regs, vregs, stackSlots, stackParams, allocator) in BlockStates() 204 BlockState::BlockState(size_t regs, size_t vregs, size_t stackSlots, size_t stackParams, ArenaAllocator *alloc) in BlockState() argument 206 vregs_(vregs, alloc->Adapter()), in BlockState()
|
H A D | reg_alloc_verifier.h | 168 BlockState(size_t regs, size_t vregs, size_t stackSlots, size_t stackParams, ArenaAllocator *alloc);
|
/arkcompiler/runtime_core/static_core/irtoc/backend/compiler/ |
H A D | codegen_fastpath.cpp | 213 auto vregs = GetCallerRegsMask(GetArch(), true); in IntrinsicSaveTlabStatsSafe() local 214 GetEncoder()->PushRegisters(regs, vregs); in IntrinsicSaveTlabStatsSafe() 223 GetEncoder()->PopRegisters(regs, vregs); in IntrinsicSaveTlabStatsSafe()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/ |
H A D | debugger.cpp | 899 static void FillRegisters(Frame *interpreterFrame, PandaVector<uint64_t> &vregs, in FillRegisters() argument 906 vregs.reserve(nregs); in FillRegisters() 910 vregs.push_back(GetVRegValue(vregReg)); in FillRegisters()
|