| /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() 189 …ams([[maybe_unused]] T *param1, [[maybe_unused]] T *param2, [[maybe_unused]] T *param3, Opcode opc) in FixParams() argument 191 switch (opc) { in FixParams() 293 ASSERT_DO(0U, std::cerr << static_cast<int>(opc) << "\n"); in FixParams() 297 bool IsImmOps(Opcode opc) in IsImmOps() argument 299 …return (opc == Opcode::AddI || opc == Opcode::SubI || opc == Opcode::ShlI || opc == Opcode::ShrI || in IsImmOps() 300 … opc == Opcode::AShrI || opc == Opcode::AndI || opc == Opcode::OrI || opc == Opcode::XorI); in IsImmOps() 303 bool IsUnaryShiftedRegisterOps(Opcode opc) in IsUnaryShiftedRegisterOps() argument [all …]
|
| D | inst_generator.cpp | 179 auto opc = inst->GetOpcode(); in GenerateOperation() local 180 if (opc == Opcode::If || opc == Opcode::IfImm) { in GenerateOperation() 216 Inst *GraphCreator::PopulateLoadArrayPair(Graph *graph, BasicBlock *block, Inst *inst, Opcode opc) in PopulateLoadArrayPair() argument 220 if (opc == Opcode::LoadArrayPair) { in PopulateLoadArrayPair() 224 if (opc == Opcode::LoadArrayPair) { in PopulateLoadArrayPair() 234 void GraphCreator::PopulateStoreArrayPair(Graph *graph, Inst *inst, Opcode opc) in PopulateStoreArrayPair() argument 239 if (opc == Opcode::StoreArrayPair) { in PopulateStoreArrayPair() 246 if (opc == Opcode::StoreArrayPair) { in PopulateStoreArrayPair() 474 auto opc = inst->GetOpcode(); in PopulateGraph() local 475 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) … argument 120 …if (inst1->GetOpcode() == Opcode::Opc && inst1->CAST(Opc)->Getter() != inst2->CAST(Opc)->Getter())…
|
| D | const_folding_test.cpp | 229 void CheckBinaryMathWithNan(Opcode opc, InputValue input0, InputValue input1, bool isOptimized) in CheckBinaryMathWithNan() argument 255 … INST(6U, opc).f32().Inputs(static_cast<size_t>(input0), static_cast<size_t>(input1)); in CheckBinaryMathWithNan() 258 … INST(6U, opc).f64().Inputs(static_cast<size_t>(input0), static_cast<size_t>(input1)); in CheckBinaryMathWithNan() 263 auto func = GetConstFoldingFunc(opc); in CheckBinaryMathWithNan() 273 void CheckNanBinaryMathManyCases(Opcode opc) in CheckNanBinaryMathManyCases() argument 275 … ASSERT(opc == Opcode::Mul || opc == Opcode::Div || opc == Opcode::Mod || opc == Opcode::Add || in CheckNanBinaryMathManyCases() 276 opc == Opcode::Sub || opc == Opcode::Min || opc == Opcode::Max); in CheckNanBinaryMathManyCases() 278 // opc number and Nan in CheckNanBinaryMathManyCases() 279 CheckBinaryMathWithNan(opc, InputValue::NAN1_F, InputValue::NUMBER_F, true); in CheckNanBinaryMathManyCases() 280 CheckBinaryMathWithNan(opc, InputValue::NAN2_F, InputValue::NUMBER_F, true); in CheckNanBinaryMathManyCases() [all …]
|
| /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 | 97 #define CAST(Opc) CastTo##Opc() in Compare() argument 99 #define CHECK(Opc, Getter) … in Compare() argument 100 …if (inst1->GetOpcode() == Opcode::Opc && inst1->CAST(Opc)->Getter() != inst2->CAST(Opc)->Getter())… in Compare()
|
| /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… 59 % opc = inst.stripped_mnemonic.match regex_arithm 60 % raise "Wrong binop instruction" unless opc 61 % opc = opc[1].chop.capitalize.gsub('Ashr', 'AShr') 62 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres… [all …]
|
| D | inst_builder.cpp | 534 SaveStateInst *InstBuilder::CreateSaveState(Opcode opc, size_t pc) in CreateSaveState() argument 536 ASSERT(opc == Opcode::SaveState || opc == Opcode::SafePoint || opc == Opcode::SaveStateOsr || in CreateSaveState() 537 opc == Opcode::SaveStateDeoptimize); in CreateSaveState() 542 if (opc == Opcode::SaveState) { in CreateSaveState() 544 } else if (opc == Opcode::SaveStateOsr) { in CreateSaveState() 546 } else if (opc == Opcode::SafePoint) { in CreateSaveState()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
| D | isa.h | 197 : opc(op), in InsnDesc() 208 : opc(op), in InsnDesc() 222 : opc(op), in InsnDesc() 237 : opc(op), in InsnDesc() 251 : opc(op), in InsnDesc() 261 MOperator opc; member 407 return opc; in GetOpc() 499 static const InsnDesc &GetAbstractId(MOperator opc) in GetAbstractId() 501 DEBUG_ASSERT(opc < abstract::kMopLast, "op must be lower than kMopLast"); in GetAbstractId() 502 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() 857 …VectorInsn(MemPool &memPool, MOperator opc) : Insn(memPool, opc), regSpecList(localAlloc.Adapter()) in VectorInsn() argument
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| D | checks_elimination.h | 136 template <Opcode OPC, bool CHECK_FULL_DOM, typename CheckInputs> 138 template <Opcode OPC, bool CHECK_FULL_DOM = false, typename CheckInputs = bool (*)(Inst *)> 141 template <Opcode OPC> 143 template <Opcode OPC> 145 template <Opcode OPC, bool CHECK_FULL_DOM = false> 147 template <Opcode OPC>
|
| D | checks_elimination.cpp | 617 template <Opcode OPC, bool CHECK_FULL_DOM, typename CheckInputs> 621 … if (userInst->GetOpcode() == OPC && userInst != inst && userInst->GetType() == inst->GetType() && in TryRemoveDominatedCheck() 626 …<< GetOpcodeString(OPC) << " with id = " << inst->GetId() << " dominate on " << GetOpcodeString(OP… in TryRemoveDominatedCheck() 632 template <Opcode OPC, bool CHECK_FULL_DOM, typename CheckInputs> 637 if ((OPC != Opcode::NullCheck) && (directUserInst->GetOpcode() == Opcode::NullCheck)) { in TryRemoveDominatedChecks() 640 TryRemoveDominatedCheck<OPC, CHECK_FULL_DOM>(inst, actualUserInst, checkInputs); in TryRemoveDominatedChecks() 643 TryRemoveDominatedCheck<OPC, CHECK_FULL_DOM>(inst, directUserInst, checkInputs); in TryRemoveDominatedChecks() 649 template <Opcode OPC> 656 if (userInst->GetOpcode() == OPC) { in TryRemoveConsecutiveChecks() 658 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 | 131 auto opc = static_cast<Opcode>(i); in Generate() local 132 if (opc == Opcode::NOP || opc == Opcode::Intrinsic || opc == Opcode::Builtin) { in Generate() 136 …implementedOpcodeNumber_ += static_cast<int>(statistic_.first.find(opc) != statistic_.first.end()); in Generate()
|
| /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 136 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/maple_be/include/cg/x86_64/ |
| D | x64_cgfunc.h | 191 Opcode opc) override; 193 Opcode opc) override; 195 … RegOperand *SelectVectorCompareZero(Operand *o1, PrimType oty1, Operand *o2, Opcode opc) override; 196 … *SelectVectorCompare(Operand *o1, PrimType oty1, Operand *o2, PrimType oty2, Opcode opc) override; 215 Opcode opc) override; 216 … *SelectVectorShiftImm(PrimType rType, Operand *o1, Operand *imm, int32 sVal, Opcode opc) override;
|
| /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 %>: {
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
| D | hotness_propagation.h | 137 auto opc = loopBlock->GetLastInst()->GetOpcode(); in ProcessInfiniteLoop() local 138 … hasBranches |= (opc == Opcode::If || opc == Opcode::IfImm) && !loopBlock->IsCatch(); in ProcessInfiniteLoop()
|