Home
last modified time | relevance | path

Searched refs:regs (Results 1 – 25 of 31) sorted by relevance

12

/arkcompiler/ets_frontend/es2panda/compiler/core/
DregAllocator.cpp73 std::array<VReg *, IRNode::MAX_REG_OPERAND> regs {}; in Run() local
74 auto regCnt = ins->Registers(&regs); in Run()
79 auto registers = Span<VReg *>(regs.data(), regs.data() + regCnt); in Run()
91 std::array<VReg *, IRNode::MAX_REG_OPERAND> regs {}; in Run() local
92 auto regCnt = ins->Registers(&regs); in Run()
94 auto registers = Span<VReg *>(regs.data(), regs.data() + regCnt); in Run()
120 std::array<VReg *, IRNode::MAX_REG_OPERAND> regs {}; in AdjustInsRegWhenHasSpill() local
121 auto regCnt = ins->Registers(&regs); in AdjustInsRegWhenHasSpill()
127 auto registers = Span<VReg *>(regs.data(), regs.data() + regCnt); in AdjustInsRegWhenHasSpill()
/arkcompiler/runtime_core/compiler/tests/amd64/
Dregister64_test.cpp70 std::vector<Reg> regs; in TEST_F() local
72 regs.push_back(encoder.AcquireScratchRegister(INT64_TYPE)); in TEST_F()
76 for (auto reg : regs) { in TEST_F()
81 regs.clear(); in TEST_F()
83 regs.push_back(encoder.AcquireScratchRegister(FloatType)); in TEST_F()
88 for (auto reg : regs) { in TEST_F()
/arkcompiler/runtime_core/compiler/tests/aarch32/
Dregister32_test.cpp70 std::vector<Reg> regs; in TEST_F() local
72 regs.push_back(encoder.AcquireScratchRegister(INT64_TYPE)); in TEST_F()
76 for (auto reg : regs) { in TEST_F()
81 regs.clear(); in TEST_F()
83 regs.push_back(encoder.AcquireScratchRegister(FloatType)); in TEST_F()
88 for (auto reg : regs) { in TEST_F()
/arkcompiler/runtime_core/compiler/tests/aarch64/
Dregister64_test.cpp67 std::vector<Reg> regs; in TEST_F() local
69 regs.push_back(encoder.AcquireScratchRegister(INT64_TYPE)); in TEST_F()
73 for (auto reg : regs) { in TEST_F()
78 regs.clear(); in TEST_F()
80 regs.push_back(encoder.AcquireScratchRegister(FloatType)); in TEST_F()
85 for (auto reg : regs) { in TEST_F()
/arkcompiler/runtime_core/assembler/
Dassembly-ins.cpp24 for (const auto &reg : this->regs) { in RegsToString()
89 if (idx >= regs.size()) { in RegToString()
101 if (print_args && regs[idx] >= first_arg_idx) { in RegToString()
102 translator << "a" << regs[idx] - first_arg_idx; in RegToString()
104 translator << "v" << regs[idx]; in RegToString()
Dassembly-ins.h101 std::vector<uint16_t> regs; /* list of arguments - registers */ member
120 return regs.size() + ids.size() + imms.size(); in OperandListLength()
178 return regs; in Uses()
194 ASSERT(static_cast<size_t>(idx) < regs.size()); in Uses()
195 res.emplace_back(regs[idx]); in Uses()
207 return regs[def_idx]; in Def()
218 for (auto reg : regs) { in IsValidToEmit()
Dassembly-parser.cpp675 !curr_func_->ins[v.first - 1].regs.empty()) { in ParseResetFunctionLabelsAndParams()
676 curr_func_->ins[v.first - 1].regs[v.second] += in ParseResetFunctionLabelsAndParams()
679 if (curr_func_->ins[v.first - 1].regs[v.second] >= max_reg_number) { in ParseResetFunctionLabelsAndParams()
727 (static_cast<int>(insn_it->regs.size()) - static_cast<int>(diff) >= 0)) { in ParseResetFunctionTable()
1271 curr_ins_->regs.push_back(static_cast<uint16_t>(number)); in ParseOperandVreg()
1274 curr_ins_->regs.push_back(static_cast<uint16_t>(ToNumber(p))); in ParseOperandVreg()
1275 … context_.function_arguments_list->emplace_back(context_.ins_number, curr_ins_->regs.size() - 1); in ParseOperandVreg()
/arkcompiler/ets_frontend/merge_abc/src/
DassemblyInsProto.cpp22 for (const auto &reg : insn.regs) { in Serialize()
50 insn.regs.reserve(protoInsn.regs_size()); in Deserialize()
51 for (const auto &protoReg : protoInsn.regs()) { in Deserialize()
52 insn.regs.push_back(static_cast<uint16_t>(protoReg)); in Deserialize()
/arkcompiler/runtime_core/disassembler/templates/
Dbc_ins_to_pandasm_ins.cpp.erb45 ins.regs.push_back(bc_ins.GetVReg(<%=reg_count%>));
76 overhead = ins.regs.size() - pda.GetNumArgs();
78 overhead = ins.regs.size() - pda.GetNumArgs() - 1;
80 if (overhead < 0 || overhead > static_cast<int>(ins.regs.size())) {
91 ins.regs.pop_back();
/arkcompiler/runtime_core/assembler/templates/
Dins_emit.h.erb46 % def operands(insn, regs = "regs")
54 % ops << "#{regs}[#{nr}]"
140 if (regs.size() < <%= regs_num %>) {
146 if (regs.size() < <%= regs_num %> || imms.size() < <%= imms_num %>) {
150 if (regs.size() < <%= regs_num %>) {
160 auto registers = regs;
Disa.h.erb45 % regs = insn.operands.select(&:reg?)
46 % dst_idx = regs.index(&:dst?) || 'INVALID_REG_IDX'
47 % use_idxs = regs.size.times.select { |idx| regs[idx].src? } || []
Dins_create_api.h.erb40 <%=group.first.emitter_name%>_.regs.reserve(<%= count_reg %>);
52 <%=group.first.emitter_name%>_.regs.push_back(<%= o.name %>);
/arkcompiler/runtime_core/assembler/tests/
Dassembler_ins_test.cpp130 ins.regs.push_back(reg1);
131 ins.regs.push_back(reg2);
181 ins.regs.clear();
197 ins.regs.push_back(1);
213 ins.regs.push_back(reg1);
214 ins.regs.push_back(reg2);
Dparser_test.cpp36 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[0], 1) << "1 expected"; in TEST()
37 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[1], 2) << "2 expected"; in TEST()
147 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[0], 1) << "1 expected"; in TEST()
149 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[1].regs[0], 10) << "10 expected"; in TEST()
169 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[0], 1) << "1 expected"; in TEST()
170 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[1], 2) << "2 expected"; in TEST()
250 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[0], 120) << "120 expected"; in TEST()
315 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[0], 12) << "12 expected"; in TEST()
363 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[1].regs[0], 0); in TEST()
366 ASSERT_EQ(item.Value().function_table.at(sig_main).ins[2].regs[0], 15); in TEST()
[all …]
Dassembler_parser_test.cpp49 EXPECT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[0], 1) << "1 expected";
50 EXPECT_EQ(item.Value().function_table.at(sig_main).ins[0].regs[1], 2) << "2 expected";
212 EXPECT_EQ(func.ins[3].regs[0], 4U);
213 EXPECT_EQ(func.ins[1].regs[0], 1U);
255 EXPECT_EQ(item.Value().function_table.at(func_name).ins[0].regs[0], 0) << "1 expected";
256 EXPECT_EQ(item.Value().function_table.at(func_name).ins[0].regs[1], 5) << "2 expected";
584 EXPECT_EQ(func_main_at[1].regs[0], 0U);
585 EXPECT_EQ(func_main_at[2].regs[0], 0U);
1328 std::vector<uint16_t> regs {}; variable
1329 EXPECT_EQ(item.Value().function_table.at(sig_f).ins[0].regs, regs);
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/templates/
Disa.h.erb50 size_t Registers([[maybe_unused]] std::array<VReg*, MAX_REG_OPERAND>* regs) override
55 size_t Registers([[maybe_unused]] std::array<const VReg*, MAX_REG_OPERAND>* regs) const override
199 size_t Registers([[maybe_unused]] std::array<VReg*, MAX_REG_OPERAND>* regs) override
203 (*regs)[<%= reg_cnt %>] = &<%= reg %>;
209 size_t Registers([[maybe_unused]] std::array<const VReg*, MAX_REG_OPERAND>* regs) const override
213 (*regs)[<%= reg_cnt %>] = &<%= reg %>;
223 ins->regs.reserve(<%= op_map['reg'].length %>);
232 ins->regs.emplace_back(<%= reg %>);
/arkcompiler/ets_frontend/es2panda/ir/
Dirnode.h121 virtual size_t Registers([[maybe_unused]] std::array<VReg *, MAX_REG_OPERAND> *regs) = 0;
122 …virtual size_t Registers([[maybe_unused]] std::array<const VReg *, MAX_REG_OPERAND> *regs) const =…
/arkcompiler/ets_frontend/ts2panda/src/
Dpandasm.ts49 regs: Array<number> | undefined = undefined,
56 this.r = regs;
/arkcompiler/runtime_core/docs/
Dcfi_directives.md24 In prolog we save `lr`, `fp` and `callee` regs on stack.
27 - to find the right previous `frame` (with `fp` and `lr` regs)
Druntime-compiled_code-interaction.md113 | Caller saved fp regs |
115 A | Caller saved regs |
117 A | Callee saved fp regs |
119 | Callee saved regs |
201 | Callee saved regs |
205 | Callee saved fp regs |
/arkcompiler/ets_frontend/merge_abc/protos/
DassemblyIns.proto30 repeated uint32 regs = 2; field
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
Demitter.cpp112 std::array<const VReg *, IRNode::MAX_REG_OPERAND> regs {}; in MatchFormat() local
113 auto regCnt = node->Registers(&regs); in MatchFormat()
114 auto registers = Span<const VReg *>(regs.data(), regs.data() + regCnt); in MatchFormat()
/arkcompiler/runtime_core/compiler/tests/
Dinst_generator.h52 void SetNumVRegsArgs(size_t regs, size_t args) in SetNumVRegsArgs() argument
54 runtime_.vregs_count = regs; in SetNumVRegsArgs()
/arkcompiler/runtime_core/bytecode_optimizer/tests/
Dcodegen_test.cpp66 EXPECT_EQ(result[0].regs[0], reg);
81 EXPECT_EQ(result[0].regs[0], reg);
/arkcompiler/ets_frontend/es2panda/compiler/debugger/
DdebuginfoDumper.cpp105 WrapArray("regs", ins.regs); in WriteIns()

12