Home
last modified time | relevance | path

Searched full:opc (Results 1 – 25 of 71) sorted by relevance

123

/arkcompiler/runtime_core/compiler/tests/
Dasm_caller.cpp44 #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 …]
Dgraph_comparator.h107 #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/
Dasm_caller.cpp61 #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 …]
Dinst_generator_test.cpp77 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()
301opc == Opcode::AShrI || opc == Opcode::AndI || opc == Opcode::OrI || opc == Opcode::XorI); in IsImmOps()
304 bool IsUnaryShiftedRegisterOps(Opcode opc) in IsUnaryShiftedRegisterOps() argument
[all …]
Dinst_generator.cpp180 auto opc = inst->GetOpcode(); in GenerateOperation() local
181 if (opc == Opcode::If || opc == Opcode::IfImm) { in GenerateOperation()
217 Inst *GraphCreator::PopulateLoadArrayPair(Graph *graph, BasicBlock *block, Inst *inst, Opcode opc) in PopulateLoadArrayPair() argument
221 if (opc == Opcode::LoadArrayPair) { in PopulateLoadArrayPair()
225 if (opc == Opcode::LoadArrayPair) { in PopulateLoadArrayPair()
235 void GraphCreator::PopulateStoreArrayPair(Graph *graph, Inst *inst, Opcode opc) in PopulateStoreArrayPair() argument
240 if (opc == Opcode::StoreArrayPair) { in PopulateStoreArrayPair()
247 if (opc == Opcode::StoreArrayPair) { in PopulateStoreArrayPair()
476 auto opc = inst->GetOpcode(); in PopulateGraph() local
477 if (opc == Opcode::LoadArrayPair || opc == Opcode::LoadArrayPairI) { in PopulateGraph()
[all …]
Dgraph_comparator.h117 #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/
Dinst_props_helpers_dynamic.inc.erb20 % 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/
Dasm_printer.h193 #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/
Dinst_templates.yaml17 % 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/
Disa.h195 : 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()
Dinsn.h52 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/
Dchecks_elimination.h139 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>
Dchecks_elimination.cpp682 template <Opcode OPC, bool CHECK_FULL_DOM, typename CheckInputs>
686 … if (userInst->GetOpcode() == OPC && userInst != inst && userInst->GetType() == inst->GetType() && in TryRemoveDominatedCheck()
691 …<< GetOpcodeString(OPC) << " with id = " << inst->GetId() << " dominate on " << GetOpcodeString(OP… in TryRemoveDominatedCheck()
697 template <Opcode OPC, bool CHECK_FULL_DOM, typename CheckInputs>
702 if ((OPC != Opcode::NullCheck) && (directUserInst->GetOpcode() == Opcode::NullCheck)) { in TryRemoveDominatedChecks()
705 TryRemoveDominatedCheck<OPC, CHECK_FULL_DOM>(inst, actualUserInst, checkInputs); in TryRemoveDominatedChecks()
708 TryRemoveDominatedCheck<OPC, CHECK_FULL_DOM>(inst, directUserInst, checkInputs); in TryRemoveDominatedChecks()
714 template <Opcode OPC>
721 if (userInst->GetOpcode() == OPC) { in TryRemoveConsecutiveChecks()
723 COMPILER_LOG(DEBUG, CHECKS_ELIM) << "Remove consecutive " << GetOpcodeString(OPC); in TryRemoveConsecutiveChecks()
[all …]
Dbalance_expressions.h73 void SetOpcode(Opcode opc) in SetOpcode() argument
75 opcode_ = opc; in SetOpcode()
/arkcompiler/runtime_core/static_core/libllvmbackend/tests/
Dinst_generator_test.cpp141 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/
Dinst_templates.yaml17 % 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…
Dinst_builder_dyn_gen.cpp.erb281 % 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/
Dinst_templates.yaml17 % 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/
Dencode_visitor.h99 #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);
Dencode.h140 #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/
Dinstruction.rb145 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/
Dcg_cgbb_test.cpp28 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/
Dgraph_checker.h32 for (auto opc : opcs) { variable
33 os << GetOpcodeString(opc) << " ";
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Ddump.cpp192 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/
Dinst_builder_gen.cpp.erb250 % 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 %>: {

123