Home
last modified time | relevance | path

Searched full:binop (Results 1 – 13 of 13) sorted by relevance

/arkcompiler/runtime_core/bytecode_optimizer/
Dcommon.cpp48 bool CanConvertToIncI(const compiler::BinaryImmOperation *binop) in CanConvertToIncI() argument
50 ASSERT(binop->GetBasicBlock()->GetGraph()->IsRegAllocApplied()); in CanConvertToIncI()
51 …ASSERT(binop->GetOpcode() == compiler::Opcode::AddI || binop->GetOpcode() == compiler::Opcode::Sub… in CanConvertToIncI()
54 if (binop->GetSrcReg(0) != binop->GetDstReg()) { in CanConvertToIncI()
59 if (binop->GetSrcReg(0) == compiler::ACC_REG_ID) { in CanConvertToIncI()
65 for (const auto &user : binop->GetUsers()) { in CanConvertToIncI()
73 …if (uinst->GetInput(index).GetInst() == binop && uinst->GetSrcReg(index) == compiler::ACC_REG_ID) { in CanConvertToIncI()
83 int32_t imm = binop->GetImm() & bitmask; in CanConvertToIncI()
85 if (binop->GetOpcode() == compiler::Opcode::SubI) { in CanConvertToIncI()
Dcommon.h36 bool CanConvertToIncI(const compiler::BinaryImmOperation *binop);
/arkcompiler/runtime_core/verification/util/
Dfunction_traits.h86 template <typename BinOp>
89 using sig = function_signature<BinOp>;
100 n_ary(BinOp op) : binop {op} {}
104 return binop(lhs, rhs);
110 return binop(lhs, operator()(std::forward<Args>(args)...));
126 BinOp binop;
Dbit_vector.h547 template <typename Op, typename Binop, typename... Args>
548 static size_t power_of_op_then_fold(Op op, Binop binop, const Args &... args) in power_of_op_then_fold() argument
555 auto get_processed_word = [&op, &binop, num_args, &args...](size_t idx) { in power_of_op_then_fold()
558 …return n_ary {binop}(std::tuple<std::decay_t<decltype(args.data_[idx])>...> {unop(args.data_[idx])… in power_of_op_then_fold()
640 template <const int V, typename Op, typename BinOp, typename... Args>
641 static auto lazy_op_then_fold_then_indices_of(Op op, BinOp binop, const Args &... args) in lazy_op_then_fold_then_indices_of() argument
647 auto get_processed_word = [op, binop, num_args, &args...](size_t idx) { in lazy_op_then_fold_then_indices_of()
650 …Word val = n_ary {binop}(std::tuple<std::decay_t<decltype(args.data_[idx])>...> {unop(args.data_[i… in lazy_op_then_fold_then_indices_of()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dgate_meta_data_builder.h116 const GateMetaData* TypedBinaryOp(uint64_t value, TypedBinOp binOp) in TypedBinaryOp() argument
118 return new (chunk_) TypedBinaryMegaData(value, binOp); in TypedBinaryOp()
Dcircuit.h129 const GateMetaData* TypedBinaryOp(uint64_t value, TypedBinOp binOp) in TypedBinaryOp() argument
131 return metaBuilder_.TypedBinaryOp(value, binOp); in TypedBinaryOp()
Dgate_meta_data.h515 TypedBinaryMegaData(uint64_t value, TypedBinOp binOp) in TypedBinaryMegaData() argument
517 binOp_(binOp) in TypedBinaryMegaData()
Dcircuit_builder.cpp289 GateRef CircuitBuilder::TypedBinaryOperator(MachineType type, TypedBinOp binOp, GateType typeLeft, … in TypedBinaryOperator() argument
293 return GetCircuit()->NewGate(circuit_->TypedBinaryOp(operandTypes, binOp), in TypedBinaryOperator()
Dcircuit_builder.h230 …GateRef TypedBinaryOperator(MachineType type, TypedBinOp binOp, GateType typeLeft, GateType typeRi…
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
Dinst_templates.yaml15 binop: |-
18 % raise "Wrong binop instruction" unless opc
/arkcompiler/runtime_core/compiler/optimizer/templates/
Dinst_builder_gen.cpp.erb106 /(fdiv|fmod|add|sub|mul|and|or|xor|ashr|shr|shl|neg|not)[2i]?$/ => "binop",
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dinstructions.yaml30 Properties of the instruction, such as: arithmetic, binop, throw, etc
/arkcompiler/runtime_core/compiler/optimizer/code_generator/
Dcodegen.cpp2366 …auto binop = inst->CastTo##opc##I(); … in ENCODE_INST_WITH_SHIFTED_OPERAND()
2371 …enc->GetEncoder()->Encode##opc(dst, src0, enc->GetCodegen()->ConvertImm(binop->GetImm(), DataType:… in ENCODE_INST_WITH_SHIFTED_OPERAND()
2470 auto binop = inst->CastToShrI(); in VisitShrI() local
2475 …enc->GetEncoder()->EncodeShr(dst, src0, enc->GetCodegen()->ConvertImm(binop->GetImm(), DataType::I… in VisitShrI()