| /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 | graph_comparator.h | 107 #define CAST(Opc) CastTo##Opc() in Compare() argument 109 #define CHECK_INST(Opc, Getter) … in Compare() argument 110 …if (inst1->GetOpcode() == Opcode::Opc && inst1->CAST(Opc)->Getter() != inst2->CAST(Opc)->Getter())… in Compare()
|
| /arkcompiler/runtime_core/static_core/compiler/tests/ |
| D | asm_caller.cpp | 61 #define C_EXTERN_ONE_PARAM(opc, param) \ argument 62 extern "C" std::uint8_t test_##opc##_8(std::uint8_t); \ 63 extern "C" std::uint16_t test_##opc##_16(std::uint16_t); \ 64 extern "C" std::uint32_t test_##opc##_32(std::uint32_t); \ 65 extern "C" std::uint64_t test_##opc##_64(std::uint64_t) 70 #define C_EXTERN_TWO_PARAM(opc, param) \ argument 71 extern "C" std::uint8_t test_##opc##_8(std::uint8_t, std::uint8_t); \ 72 extern "C" std::uint16_t test_##opc##_16(std::uint16_t, std::uint16_t); \ 73 extern "C" std::uint32_t test_##opc##_32(std::uint32_t, std::uint32_t); \ 74 extern "C" std::uint64_t test_##opc##_64(std::uint64_t, std::uint64_t) [all …]
|
| D | inst_generator_test.cpp | 77 auto opc = static_cast<Opcode>(i); in Generate() local 78 if (opc == Opcode::NOP || opc == Opcode::Intrinsic || opc == Opcode::Builtin) { in Generate() 82 …implementedOpcodeNumber_ += static_cast<int>(statistic_.first.find(opc) != statistic_.first.end()); in Generate() 190 …ams([[maybe_unused]] T *param1, [[maybe_unused]] T *param2, [[maybe_unused]] T *param3, Opcode opc) in FixParams() argument 192 switch (opc) { in FixParams() 294 ASSERT_DO(0U, std::cerr << static_cast<int>(opc) << "\n"); in FixParams() 298 bool IsImmOps(Opcode opc) in IsImmOps() argument 300 …return (opc == Opcode::AddI || opc == Opcode::SubI || opc == Opcode::ShlI || opc == Opcode::ShrI || in IsImmOps() 301 … opc == Opcode::AShrI || opc == Opcode::AndI || opc == Opcode::OrI || opc == Opcode::XorI); in IsImmOps() 304 bool IsUnaryShiftedRegisterOps(Opcode opc) in IsUnaryShiftedRegisterOps() argument [all …]
|
| D | inst_generator.cpp | 182 auto opc = inst->GetOpcode(); in GenerateOperation() local 183 if (opc == Opcode::If || opc == Opcode::IfImm) { in GenerateOperation() 219 Inst *GraphCreator::PopulateLoadArrayPair(Graph *graph, BasicBlock *block, Inst *inst, Opcode opc) in PopulateLoadArrayPair() argument 223 if (opc == Opcode::LoadArrayPair) { in PopulateLoadArrayPair() 227 if (opc == Opcode::LoadArrayPair) { in PopulateLoadArrayPair() 237 void GraphCreator::PopulateStoreArrayPair(Graph *graph, Inst *inst, Opcode opc) in PopulateStoreArrayPair() argument 242 if (opc == Opcode::StoreArrayPair) { in PopulateStoreArrayPair() 249 if (opc == Opcode::StoreArrayPair) { in PopulateStoreArrayPair() 478 auto opc = inst->GetOpcode(); in PopulateGraph() local 479 if (opc == Opcode::LoadArrayPair || opc == Opcode::LoadArrayPairI) { in PopulateGraph() [all …]
|
| D | graph_comparator.h | 117 #define CAST(Opc) CastTo##Opc() argument 119 #define CHECK_OR_RETURN(Opc, Getter) /* CC-OFFNXT(G.PRE.02) namespace member */ … argument 120 …if (inst1->GetOpcode() == Opcode::Opc && inst1->CAST(Opc)->Getter() != inst2->CAST(Opc)->Getter())…
|
| /arkcompiler/runtime_core/libabckit/src/adapter_dynamic/templates/ |
| D | inst_props_helpers_dynamic.inc.erb | 20 % res = Opcodes.find{|opc| opc.bc_opcode == inst.mnemonic} 36 % res = Opcodes.find{|opc| opc.bc_opcode == inst.mnemonic} 76 % res = Opcodes.find{|opc| opc.bc_opcode == inst.mnemonic } 95 % res = Opcodes.find{|opc| opc.bc_opcode == inst.mnemonic } 111 % res = Opcodes.find{|opc| opc.bc_opcode == inst.mnemonic } 127 % res = Opcodes.find{|opc| opc.bc_opcode == inst.mnemonic && !inst.operands.find {|op| op.literal…
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/ |
| D | asm_printer.h | 193 #define UNARY_OPERATION(opc) \ argument 194 void Encode##opc(Reg dst, Reg src) override \ 199 enc_->Encode##opc(dst, src); \ 205 #define BINARY_OPERATION(opc) \ argument 206 void Encode##opc(Reg dst, Reg src0, Reg src1) override \ 211 enc_->Encode##opc(dst, src0, src1); \ 217 #define BINARY_SHIFTED_REGISTER_OPERATION(opc) \ argument 218 void Encode##opc(Reg dst, Reg src, Shift sh) override \ 223 enc_->Encode##opc(dst, src, sh); \ 239 #define BINARY_OPERATION(opc) \ argument [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/ |
| 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' 41 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres… 62 % opc = inst.stripped_mnemonic.match regex_arithm 63 % raise "Wrong binop instruction" unless opc 64 % opc = opc[1].chop.capitalize.gsub('Ashr', 'AShr') 65 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres… [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
| D | isa.h | 195 : opc(op), in InsnDesc() 206 : opc(op), in InsnDesc() 220 : opc(op), in InsnDesc() 235 : opc(op), in InsnDesc() 249 : opc(op), in InsnDesc() 259 MOperator opc; member 400 return opc; in GetOpc() 492 static const InsnDesc &GetAbstractId(MOperator opc) in GetAbstractId() 494 DEBUG_ASSERT(opc < abstract::kMopLast, "op must be lower than kMopLast"); in GetAbstractId() 495 return abstractId[opc]; in GetAbstractId()
|
| D | insn.h | 52 Insn(MemPool &memPool, MOperator opc) in Insn() argument 53 : mOp(opc), in Insn() 61 Insn(MemPool &memPool, MOperator opc, Operand &opnd0) : Insn(memPool, opc) in Insn() argument 65 Insn(MemPool &memPool, MOperator opc, Operand &opnd0, Operand &opnd1) : Insn(memPool, opc) in Insn() argument 70 …Insn(MemPool &memPool, MOperator opc, Operand &opnd0, Operand &opnd1, Operand &opnd2) : Insn(memPo… in Insn() argument 76 …Insn(MemPool &memPool, MOperator opc, Operand &opnd0, Operand &opnd1, Operand &opnd2, Operand &opn… in Insn() argument 77 : Insn(memPool, opc) in Insn() 84 …Insn(MemPool &memPool, MOperator opc, Operand &opnd0, Operand &opnd1, Operand &opnd2, Operand &opn… in Insn() argument 86 : Insn(memPool, opc) in Insn()
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| D | checks_elimination.h | 139 template <Opcode OPC, bool CHECK_FULL_DOM, typename CheckInputs> 141 template <Opcode OPC, bool CHECK_FULL_DOM = false, typename CheckInputs = bool (*)(Inst *)> 144 template <Opcode OPC> 146 template <Opcode OPC> 148 template <Opcode OPC, bool CHECK_FULL_DOM = false> 150 template <Opcode OPC>
|
| D | checks_elimination.cpp | 687 template <Opcode OPC, bool CHECK_FULL_DOM, typename CheckInputs> 691 … if (userInst->GetOpcode() == OPC && userInst != inst && userInst->GetType() == inst->GetType() && in TryRemoveDominatedCheck() 696 …<< GetOpcodeString(OPC) << " with id = " << inst->GetId() << " dominate on " << GetOpcodeString(OP… in TryRemoveDominatedCheck() 702 template <Opcode OPC, bool CHECK_FULL_DOM, typename CheckInputs> 707 if ((OPC != Opcode::NullCheck) && (directUserInst->GetOpcode() == Opcode::NullCheck)) { in TryRemoveDominatedChecks() 710 TryRemoveDominatedCheck<OPC, CHECK_FULL_DOM>(inst, actualUserInst, checkInputs); in TryRemoveDominatedChecks() 713 TryRemoveDominatedCheck<OPC, CHECK_FULL_DOM>(inst, directUserInst, checkInputs); in TryRemoveDominatedChecks() 719 template <Opcode OPC> 726 if (userInst->GetOpcode() == OPC) { in TryRemoveConsecutiveChecks() 728 COMPILER_LOG(DEBUG, CHECKS_ELIM) << "Remove consecutive " << GetOpcodeString(OPC); in TryRemoveConsecutiveChecks() [all …]
|
| D | balance_expressions.h | 73 void SetOpcode(Opcode opc) in SetOpcode() argument 75 opcode_ = opc; in SetOpcode()
|
| /arkcompiler/runtime_core/static_core/libllvmbackend/tests/ |
| D | inst_generator_test.cpp | 141 auto opc = static_cast<Opcode>(i); in Generate() local 142 if (opc == Opcode::NOP || opc == Opcode::Intrinsic || opc == Opcode::Builtin) { in Generate() 146 …implementedOpcodeNumber_ += static_cast<int>(statistic_.first.find(opc) != statistic_.first.end()); in Generate()
|
| /arkcompiler/runtime_core/libabckit/src/irbuilder_dynamic/templates/ |
| 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' 33 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres…
|
| D | inst_builder_dyn_gen.cpp.erb | 281 % opc = inst.opcode.upcase 282 % name = opc 286 % iname = inst.intrinsic_name ? inst.intrinsic_name : opc 288 % intrinsic_external_js_id = "ark::compiler::RuntimeInterface::IntrinsicId::DYN_" + opc 289 case BytecodeInst::Opcode::<%= opc %>:
|
| /arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
| 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…
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
| D | encode_visitor.h | 99 #define BINARY_IMM_OPERATION(opc) static void Visit##opc##I(GraphVisitor *visitor, Inst *inst) argument 119 #define BINARY_SIGN_UNSIGN_OPERATION(opc) static void Visit##opc(GraphVisitor *visitor, Inst *inst) argument 135 #define BINARY_SHIFTED_REGISTER_OPERATION_DEF(opc, ignored) \ argument 137 static void Visit##opc##SR(GraphVisitor *visitor, Inst *inst);
|
| D | encode.h | 140 #define UNARY_OPERATION(opc) \ argument 141 virtual void Encode##opc(Reg, Reg) \ 148 #define BINARY_OPERATION(opc) \ argument 149 virtual void Encode##opc(Reg, Reg, Reg) \ 153 virtual void Encode##opc(Reg, Reg, Imm) \ 160 #define BINARY_SHIFTED_REGISTER_OPERATION(opc) \ argument 161 virtual void Encode##opc(Reg, Reg, Shift) \
|
| /arkcompiler/runtime_core/static_core/irtoc/lang/ |
| D | instruction.rb | 145 opc = opcode() 156 opc = :If if IsWhile? 157 opc = :Phi if IsWhilePhi? 158 ss = "INST(#{@index}, Opcode::#{opc})" 184 "Inst(id=#{@index}, opc=#{@name})"
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/maple_be/ |
| D | cg_cgbb_test.cpp | 28 static maplebe::Insn CreateInsnObj(std::string poolName, maple::uint32 opc) in CreateInsnObj() argument 32 maplebe::Insn Insn_obj(memPool, opc); in CreateInsnObj()
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | graph_checker.h | 32 for (auto opc : opcs) { variable 33 os << GetOpcodeString(opc) << " ";
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
| D | dump.cpp | 192 ArenaString opc(GetOpcodeString(opcode), adapter); in DumpTypedFieldOpcode() local 194 (*out) << std::setw(INDENT_OPCODE) << opc + space + id + space + fieldName + space; in DumpTypedFieldOpcode() 200 ArenaString opc(GetOpcodeString(opcode), allocator->Adapter()); in DumpTypedOpcode() local 202 (*out) << std::setw(INDENT_OPCODE) << opc + space + id + space; in DumpTypedOpcode() 209 ArenaString opc(GetOpcodeString(opcode), allocator->Adapter()); in DumpTypedOpcode() local 211 (*out) << std::setw(INDENT_OPCODE) << opc + flags + space + id + space; in DumpTypedOpcode() 595 ArenaString opc(GetOpcodeString(GetOpcode()), adapter); in DumpOpcode() local 604 (*out) << std::setw(INDENT_OPCODE) << opc + space + size + space + id + space; in DumpOpcode() 627 Opcode opc; member in ark::compiler::ObjectPairParams 664 ArenaString opc(GetOpcodeString(params.opc), adapter); in DumpObjectPairOpcode() local [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/templates/ |
| D | inst_builder_gen.cpp.erb | 250 % opc = inst.opcode.upcase 251 % name = opc 255 % iname = inst.intrinsic_name ? inst.intrinsic_name : opc 257 % intrinsic_external_js_id = "compiler::RuntimeInterface::IntrinsicId::" + opc 258 case BytecodeInstruction::Opcode::<%= opc %>: {
|