| /arkcompiler/runtime_core/compiler/tests/ |
| D | asm_caller.cpp | 44 #define C_EXTERN_ONE_PARAM(opc, param) \ argument 45 extern "C" std::uint8_t test_##opc##_8(std::uint8_t); \ 46 extern "C" std::uint16_t test_##opc##_16(std::uint16_t); \ 47 extern "C" std::uint32_t test_##opc##_32(std::uint32_t); \ 48 extern "C" std::uint64_t test_##opc##_64(std::uint64_t); 52 #define C_EXTERN_TWO_PARAM(opc, param) \ argument 53 extern "C" std::uint8_t test_##opc##_8(std::uint8_t, std::uint8_t); \ 54 extern "C" std::uint16_t test_##opc##_16(std::uint16_t, std::uint16_t); \ 55 extern "C" std::uint32_t test_##opc##_32(std::uint32_t, std::uint32_t); \ 56 extern "C" std::uint64_t test_##opc##_64(std::uint64_t, std::uint64_t); [all …]
|
| D | inst_generator_test.cpp | 81 auto opc = static_cast<Opcode>(i); in Generate() local 82 if (opc == Opcode::NOP || opc == Opcode::Intrinsic || opc == Opcode::Builtin) { in Generate() 86 implemented_opcode_number_ += (statistic_.first.find(opc) != statistic_.first.end()); in Generate() 173 …([[maybe_unused]] T *param_1, [[maybe_unused]] T *param_2, [[maybe_unused]] T *param_3, Opcode opc) in FixParams() argument 175 switch (opc) { in FixParams() 277 ASSERT_DO(0, std::cerr << (int)opc << "\n"); in FixParams() 281 bool isImmOps(Opcode opc) in isImmOps() argument 283 …return (opc == Opcode::AddI || opc == Opcode::SubI || opc == Opcode::ShlI || opc == Opcode::ShrI || in isImmOps() 284 … opc == Opcode::AShrI || opc == Opcode::AndI || opc == Opcode::OrI || opc == Opcode::XorI); in isImmOps() 287 bool isUnaryShiftedRegisterOps(Opcode opc) in isUnaryShiftedRegisterOps() argument [all …]
|
| D | inst_generator.cpp | 175 auto opc = inst->GetOpcode(); in GenerateOperation() local 176 if (opc == Opcode::If || opc == Opcode::IfImm) { in GenerateOperation() 184 switch (opc) { in GenerateOperation() 211 if (opc == Opcode::LoadArrayPair || opc == Opcode::LoadArrayPairI) { in GenerateOperation() 214 if (opc == Opcode::LoadArrayPair) { in GenerateOperation() 218 if (opc == Opcode::LoadArrayPair) { in GenerateOperation() 232 } else if (opc == Opcode::StoreArrayPairI || opc == Opcode::StoreArrayPair) { in GenerateOperation() 236 if (opc == Opcode::StoreArrayPair) { in GenerateOperation() 243 if (opc == Opcode::StoreArrayPair) { in GenerateOperation() 248 } else if (opc == Opcode::ReturnInlined) { in GenerateOperation() [all …]
|
| D | graph_comparator.h | 119 #define CAST(Opc) CastTo##Opc() in Compare() argument 121 #define CHECK(Opc, Getter) … in Compare() argument 122 …if (inst1->GetOpcode() == Opcode::Opc && inst1->CAST(Opc)->Getter() != inst2->CAST(Opc)->Getter())… in Compare()
|
| /arkcompiler/runtime_core/compiler/optimizer/code_generator/target/ |
| D | asm_printer.h | 193 #define UnaryOperation(opc) \ argument 194 void Encode##opc(Reg dst, Reg src) override \ 199 enc_->Encode##opc(dst, src); \ 206 #define BinaryOperation(opc) \ argument 207 void Encode##opc(Reg dst, Reg src0, Reg src1) override \ 212 enc_->Encode##opc(dst, src0, src1); \ 217 void Encode##opc(Reg dst, Reg src, Imm imm) override \ 222 enc_->Encode##opc(dst, src, imm); \ 229 #define BinaryShiftedRegisterOperation(opc) \ argument 230 void Encode##opc(Reg dst, Reg src, Shift sh) override \ [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
| D | inst_builder.cpp | 270 SaveStateInst *InstBuilder::CreateSaveState(Opcode opc, size_t pc) in CreateSaveState() argument 272 ASSERT(opc == Opcode::SaveState || opc == Opcode::SafePoint || opc == Opcode::SaveStateOsr || in CreateSaveState() 273 opc == Opcode::SaveStateDeoptimize); in CreateSaveState() 278 if (opc == Opcode::SaveState) { in CreateSaveState() 280 } else if (opc == Opcode::SaveStateOsr) { in CreateSaveState() 282 } else if (opc == Opcode::SafePoint) { in CreateSaveState()
|
| D | inst_templates.yaml | 17 % opc = inst.stripped_mnemonic.match regex_arithm 18 % raise "Wrong binop instruction" unless opc 19 % opc = opc[1].capitalize.gsub('Ashr', 'AShr').gsub('Fdiv', 'Div').gsub('Fmod', 'Mod') 20 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres… 24 % opc = inst.stripped_mnemonic =~ /div/ ? 'Div' : 'Mod' 37 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres…
|
| D | inst_builder.h | 125 SaveStateInst *CreateSaveState(Opcode opc, size_t pc);
|
| /arkcompiler/runtime_core/irtoc/lang/ |
| D | instruction.rb | 101 opc = opcode() 112 opc = :If if IsWhile? 113 opc = :Phi if IsWhilePhi? 114 ss = "INST(#{@index}, Opcode::#{opc})" 139 "Inst(id=#{@index}, opc=#{@name})"
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
| D | balance_expressions.h | 73 void SetOpcode(Opcode opc) in SetOpcode() argument 75 opcode_ = opc; in SetOpcode()
|
| /arkcompiler/runtime_core/compiler/optimizer/code_generator/target/aarch64/ |
| D | target.h | 473 #define UnaryOperation(opc) void Encode##opc(Reg dst, Reg src0) override; argument 475 #define BinaryOperationReg(opc) void Encode##opc(Reg dst, Reg src0, Reg src1) override; argument 477 #define BinaryOperationImm(opc) void Encode##opc(Reg dst, Reg src0, Imm src1) override; argument 479 #define BinaryOperation(opc) BinaryOperationReg(opc) BinaryOperationImm(opc) argument
|
| /arkcompiler/runtime_core/compiler/optimizer/templates/ |
| D | inst_builder_gen.cpp.erb | 257 % opc = inst.opcode.upcase 258 % name = opc 262 % iname = inst.intrinsic_name ? inst.intrinsic_name : opc 264 % intrinsic_external_js_id = "compiler::RuntimeInterface::IntrinsicId::" + opc 265 case BytecodeInstruction::Opcode::<%= opc %>: {
|
| /arkcompiler/runtime_core/compiler/optimizer/code_generator/target/aarch32/ |
| D | target.h | 524 #define UnaryOperation(opc) void Encode##opc(Reg dst, Reg src0) override; argument 526 #define BinaryOperationRegRegReg(opc) void Encode##opc(Reg dst, Reg src0, Reg src1) override; argument 528 #define BinaryOperationRegRegImm(opc) void Encode##opc(Reg dst, Reg src0, Imm src1) override; argument 530 #define BinaryOperation(opc) BinaryOperationRegRegReg(opc) BinaryOperationRegRegImm(opc) argument
|
| /arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/ |
| D | assembler_aarch64.cpp | 187 uint32_t opc = GetOpcFromScale(vt.GetScale(), true); in Ldp() local 188 uint32_t instructionCode = opc | op | LoadAndStorePairImm(imm) | Rt2(vt2.GetId()) | in Ldp() 230 uint32_t opc = GetOpcFromScale(vt.GetScale(), true); in Stp() local 231 uint32_t instructionCode = opc | op | LoadAndStorePairImm(imm) | Rt2(vt2.GetId()) | in Stp() 241 uint32_t opc = 0; in GetOpcFromScale() local 246 opc = 1; in GetOpcFromScale() 249 opc = ispair ? 0 : 1; in GetOpcFromScale() 252 opc = 1; in GetOpcFromScale() 255 // 3 : means opc bit is 11 in GetOpcFromScale() 256 opc = ispair ? 1 : 3; in GetOpcFromScale() [all …]
|
| D | assembler_aarch64_constants.h | 285 V(LDR_STR, Opc, 23, 22) \ 297 V(LDP_STP, Opc, 31, 30) \
|
| /arkcompiler/runtime_core/compiler/optimizer/code_generator/ |
| D | encode.h | 143 #define UnaryOperation(opc) \ argument 144 virtual void Encode##opc(Reg, Reg) \ 151 #define BinaryOperation(opc) \ argument 152 virtual void Encode##opc(Reg, Reg, Reg) \ 156 virtual void Encode##opc(Reg, Reg, Imm) \ 163 #define BinaryShiftedRegisterOperation(opc) \ argument 164 virtual void Encode##opc(Reg, Reg, Shift) \
|
| D | codegen.h | 604 #define BinaryImmOperation(opc) static void Visit##opc##I(GraphVisitor *visitor, Inst *inst); argument 615 #define BinarySignUnsignOperation(opc) static void Visit##opc(GraphVisitor *visitor, Inst *inst); argument 626 #define BinaryShiftedRegisterOperationDef(opc, ignored) static void Visit##opc##SR(GraphVisitor *vi… argument
|
| /arkcompiler/runtime_core/bytecode_optimizer/tests/ |
| D | common.h | 355 #define CAST(Opc) CastTo##Opc() in Compare() argument 357 #define CHECK(Opc, Getter) … in Compare() argument 358 …if (inst1->GetOpcode() == Opcode::Opc && inst1->CAST(Opc)->Getter() != inst2->CAST(Opc)->Getter())… in Compare()
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | graph_checker.h | 34 for (auto opc : opcs) { variable 35 os << GetOpcodeString(opc) << " "; 356 auto opc = node.GetInst()->GetOpcode(); in CheckThrows() local 357 has_opc &= std::find(opcs.begin(), opcs.end(), opc) != opcs.end(); in CheckThrows()
|
| D | graph_checker.cpp | 203 auto opc = inst->GetOpcode(); in CheckDataFlow() local 205 …if (inst->GetType() == DataType::REFERENCE && !inst->IsClassInst() && opc != Opcode::GetInstanceCl… in CheckDataFlow() 360 [[maybe_unused]] Opcode opc = inst->GetOpcode(); in CheckDataFlow() local 362 opc == Opcode::Constant || opc == Opcode::Parameter || opc == Opcode::SafePoint || in CheckDataFlow() 363 … opc == Opcode::SpillFill || opc == Opcode::NullPtr || opc == Opcode::NOP || opc == Opcode::LiveIn, in CheckDataFlow() 367 if (opc == Opcode::Parameter) { in CheckDataFlow() 375 if (opc == Opcode::NullPtr) { in CheckDataFlow() 667 [[maybe_unused]] auto opc = last_inst->GetOpcode(); in CheckDataFlow() local 737 auto opc = inst->GetOpcode(); in CheckDataFlow() local 738 return inst->IsCheck() || inst->IsConst() || opc == Opcode::NullPtr || inst->IsClassInst() || in CheckDataFlow() [all …]
|
| D | dump.cpp | 187 ArenaString opc(GetOpcodeString(opcode), adapter); in DumpTypedFieldOpcode() local 189 (*out) << std::setw(INDENT_OPCODE) << opc + space + id + space + field_name + space; in DumpTypedFieldOpcode() 195 ArenaString opc(GetOpcodeString(opcode), allocator->Adapter()); in DumpTypedOpcode() local 197 (*out) << std::setw(INDENT_OPCODE) << opc + space + id; in DumpTypedOpcode() 569 ArenaString opc(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode() local 572 (*out) << std::setw(INDENT_OPCODE) << opc + space + qt + class_name + qt << " "; in DumpOpcode()
|
| D | inst.cpp | 258 template <Opcode opc, size_t input_idx> 262 for (Opcode opcode = input_inst->GetOpcode(); opcode == opc; opcode = input_inst->GetOpcode()) { in SkipInstructions()
|
| /arkcompiler/runtime_core/compiler/optimizer/code_generator/target/amd64/ |
| D | target.h | 678 #define UnaryOperation(opc) void Encode##opc(Reg dst, Reg src0) override; argument 680 #define BinaryOperation(opc) \ argument 681 void Encode##opc(Reg dst, Reg src0, Reg src1) override; \ 682 void Encode##opc(Reg dst, Reg src0, Imm src1) override;
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | codegen.cpp | 346 pandasm::Opcode opc; in EncodeSta() local 349 opc = pandasm::Opcode::STA; in EncodeSta() 357 sta.opcode = opc; in EncodeSta()
|
| /arkcompiler/runtime_core/compiler/docs/ |
| D | codegen_doc.md | 97 switch (inst->Opc()) {
|