Home
last modified time | relevance | path

Searched refs:GetImm (Results 1 – 17 of 17) sorted by relevance

/arkcompiler/runtime_core/libpandafile/tests/
Dbytecode_instruction_tests.cpp35 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), -6); in TEST()
43 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), 0x2); in TEST()
51 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST()
58 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), 0x21); in TEST()
67 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST()
75 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST()
83 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM16, 0>()), 0x12f2); in TEST()
90 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM16, 0>()), static_cast<int16_t>(0xf212)); in TEST()
99 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM16, 0>()), 0x12f2); in TEST()
107 …EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM16, 0>()), static_cast<int16_t>(0xf212)); in TEST()
[all …]
/arkcompiler/runtime_core/compiler/tests/
Dgraph_comparator.h136 CHECK(IfImm, GetImm) in Compare()
143 CHECK(SelectImm, GetImm) in Compare()
146 CHECK(LoadArrayI, GetImm) in Compare()
147 CHECK(LoadArrayPairI, GetImm) in Compare()
148 CHECK(LoadPairPart, GetImm) in Compare()
149 CHECK(StoreArrayI, GetImm) in Compare()
150 CHECK(StoreArrayPairI, GetImm) in Compare()
151 CHECK(BoundsCheckI, GetImm) in Compare()
152 CHECK(ReturnI, GetImm) in Compare()
153 CHECK(AddI, GetImm) in Compare()
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/tests/
Dcommon.h375 CHECK(IfImm, GetImm) in Compare()
378 CHECK(LoadArrayI, GetImm) in Compare()
379 CHECK(LoadArrayPairI, GetImm) in Compare()
380 CHECK(LoadPairPart, GetImm) in Compare()
381 CHECK(StoreArrayI, GetImm) in Compare()
382 CHECK(StoreArrayPairI, GetImm) in Compare()
383 CHECK(BoundsCheckI, GetImm) in Compare()
384 CHECK(ReturnI, GetImm) in Compare()
385 CHECK(AddI, GetImm) in Compare()
386 CHECK(SubI, GetImm) in Compare()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dbytecode_info_collector.cpp448 auto imm = bcIns.GetImm<BytecodeInstruction::Format::PREF_IMM16>(); in CollectMethodInfoFromBC()
460 auto imm = bcIns.GetImm<BytecodeInstruction::Format::PREF_IMM16>(); in CollectMethodInfoFromBC()
465 auto imm = bcIns.GetImm<BytecodeInstruction::Format::IMM8>(); in CollectMethodInfoFromBC()
470 auto imm = bcIns.GetImm<BytecodeInstruction::Format::IMM8_ID16>(); in CollectMethodInfoFromBC()
475 auto imm = bcIns.GetImm<BytecodeInstruction::Format::PREF_IMM16>(); in CollectMethodInfoFromBC()
480 auto imm = bcIns.GetImm<BytecodeInstruction::Format::PREF_IMM16_ID16>(); in CollectMethodInfoFromBC()
514 auto imm = bcIns.GetImm<BytecodeInstruction::Format::IMM8>(); in CollectModuleInfoFromBC()
522 auto imm = bcIns.GetImm<BytecodeInstruction::Format::PREF_IMM16>(); in CollectModuleInfoFromBC()
529 auto imm = bcIns.GetImm<BytecodeInstruction::Format::IMM8>(); in CollectModuleInfoFromBC()
534 auto imm = bcIns.GetImm<BytecodeInstruction::Format::PREF_IMM16>(); in CollectModuleInfoFromBC()
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
Dlowering.cpp81 ASSERT(inst->GetImm() == 0); in LowerIf()
113 if (inst->GetCc() == ConditionCode::CC_EQ && inst->GetImm() == 0) { in LowerIf()
/arkcompiler/runtime_core/disassembler/templates/
Dbc_ins_to_pandasm_ins.cpp.erb38 …ins.imms.push_back(static_cast<int64_t>(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pre…
40 …ins.imms.push_back(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upcase%>, <%=imm_…
/arkcompiler/runtime_core/compiler/optimizer/templates/
Dinst_builder_gen.cpp.erb41 …return "FindOrCreateConstant(instruction->GetImm<#{get_format}, #{get_input_idx(index, :imm?)}>())…
193 return inst->GetImm<BytecodeInstruction::Format::<%= inst.format.pretty.upcase %>, 0>();
294 …size_t args_count = <%= num_inputs %>U + static_cast<size_t>(bc_inst->GetImm<<%= format %>, <%= ha…
317 …auto imm<%= imm_index %> = static_cast<uint32_t>(bc_inst->GetImm<<%= format %>, <%= imm_index %>>(…
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dpanda_file_translator.cpp1153 … uint16_t imm = static_cast<uint16_t>(inst.GetImm<OldBytecodeInst::Format::PREF_IMM16_V8>() - 1); in FixOpcode()
1342 … uint16_t imm = static_cast<uint16_t>(inst.GetImm<OldBytecodeInst::Format::PREF_ID16_IMM16_V8>()); in FixOpcode()
1361 … uint16_t imm = static_cast<uint16_t>(inst.GetImm<OldBytecodeInst::Format::PREF_ID16_IMM16_V8>()); in FixOpcode()
1555 auto imm = bcIns.GetImm<OldBytecodeInst::Format::PREF_IMM16>(); in TranslateBytecode()
1562 auto imm = bcIns.GetImm<OldBytecodeInst::Format::PREF_IMM16>(); in TranslateBytecode()
1572 auto imm = bcIns.GetImm<OldBytecodeInst::Format::PREF_ID16_IMM16_IMM16_V8_V8>(); in TranslateBytecode()
/arkcompiler/runtime_core/libpandafile/
Dbytecode_instruction.h249 auto GetImm() const;
/arkcompiler/runtime_core/libpandafile/templates/
Dbytecode_instruction-inl_gen.h.erb248 inline auto BytecodeInst<Mode>::GetImm() const { // NOLINTNEXTLINE(readability-function-size)
436 % op_str = "\"#{sep}\" << inst.template GetImm<BytecodeInst<Mode>::Format::#{inst.format.pretty…
/arkcompiler/runtime_core/compiler/docs/
Dir_builder.md135 …inst->SetInput(1, FindOrCreateConstant(instruction->GetImm<BytecodeInstruction::Format::IMM8, 0>()…
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dinst.cpp470 ASSERT(GetImm() == 0); in GetTrueInputEdgeIdx()
Ddump.cpp231 (*out) << ", 0x" << std::hex << GetImm() << std::dec; in DumpInputs()
Dgraph_checker.cpp803 [[maybe_unused]] auto op2 = inst->CastToIfImm()->GetImm(); in VisitIfImm()
Dinst.h1554 auto GetImm() const in GetImm() function
2752 clone->CastToIfImm()->SetImm(GetImm()); in Clone()
/arkcompiler/runtime_core/bytecode_optimizer/
Dcodegen.cpp441 auto imm = inst->GetImm(); in VisitIfImm()
/arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/
Dold_instruction.h107 auto GetImm() const in GetImm() function