Home
last modified time | relevance | path

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

/arkcompiler/runtime_core/static_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(0U) != binop->GetDstReg()) { in CanConvertToIncI()
59 if (binop->GetSrcReg(0U) == 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()
85 int32_t imm = binop->GetImm() & BITMASK; in CanConvertToIncI()
87 if (binop->GetOpcode() == compiler::Opcode::SubI) { in CanConvertToIncI()
Dcommon.h37 bool CanConvertToIncI(const compiler::BinaryImmOperation *binop);
/arkcompiler/runtime_core/static_core/verification/util/
Dfunction_traits.h86 template <typename BinOp>
89 using Sig = FunctionSignature<BinOp>;
100 explicit NAry(BinOp op) : binop_ {op} {}
126 BinOp binop_;
Dbit_vector.h554 template <typename Op, typename Binop, typename... Args>
555 static size_t PowerOfOpThenFold(Op op, Binop binop, const Args &...args) in PowerOfOpThenFold() argument
562 auto getProcessedWord = [&op, &binop, numArgs, &args...](size_t idx) { in PowerOfOpThenFold()
565 …return NAry {binop}(std::tuple<std::decay_t<decltype(args.data_[idx])>...> {unop(args.data_[idx]).… in PowerOfOpThenFold()
646 template <const int V, typename Op, typename BinOp, typename... Args>
647 static auto LazyOpThenFoldThenIndicesOf(Op op, BinOp binop, const Args &...args) in LazyOpThenFoldThenIndicesOf() argument
654 auto getProcessedWord = [op, binop, numArgs, &args...](size_t idx) { in LazyOpThenFoldThenIndicesOf()
657 …Word val = NAry {binop}(std::tuple<std::decay_t<decltype(args.data_[idx])>...> {unop(args.data_[id… in LazyOpThenFoldThenIndicesOf()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dinduction_variable_analysis.cpp43 TypedBinOp binOp = acc_.GetTypedBinaryOp(valueGate); in IsInductionVariable() local
44 if (binOp != TypedBinOp::TYPED_ADD && binOp != TypedBinOp::TYPED_SUB) { in IsInductionVariable()
82 [[maybe_unused]]TypedBinOp binOp = acc_.GetTypedBinaryOp(valueGate); in GetStartAndStride() local
83 ASSERT(binOp == TypedBinOp::TYPED_ADD || binOp == TypedBinOp::TYPED_SUB); in GetStartAndStride()
Drange_analysis.cpp335 auto binOp = acc_.GetTypedBinaryOp(gate); in PrintRangeInfo() local
336 switch (binOp) { in PrintRangeInfo()
Dmcr_gate_meta_data.h283 static uint64_t ToValue(ParamType operandType, TypedBinOp binOp) in ToValue() argument
285 return TypedValueBits::Encode(operandType.Value()) | TypedBinOpBits::Encode(binOp); in ToValue()
Dtype_info_accessors.cpp69 TypedBinOp binOp = accessor.GetTypedBinOp(); in IsTrustedBooleanType() local
70 switch (binOp) { in IsTrustedBooleanType()
123 TypedBinOp binOp = accessor.GetTypedBinOp(); in IsTrustedNumberType() local
124 switch (binOp) { in IsTrustedNumberType()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
Dinst_templates.yaml15 binop: |-
18 % raise "Wrong binop instruction" unless opc
60 % raise "Wrong binop instruction" unless opc
70 % raise "Wrong binop instruction" unless opc
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
Dinst_templates.yaml15 binop: |-
18 % raise "Wrong binop instruction" unless opc
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dinstructions.yaml30 Properties of the instruction, such as: arithmetic, binop, throw, etc
/arkcompiler/runtime_core/static_core/compiler/optimizer/templates/
Dinst_builder_gen.cpp.erb96 /(fdiv|fmod|add|sub|mul|and|or|xor|ashr|shr|shl|neg|not)[2i]?(iv)?$/ => "binop",
/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/static_core/compiler/optimizer/code_generator/
Dencode_visitor.cpp65 auto binop = inst->CastTo##opc##I(); \ in ENCODE_INST_WITH_SHIFTED_OPERAND()
68 enc->GetEncoder()->Encode##opc(dst, src0, Imm(binop->GetImm())); \ in ENCODE_INST_WITH_SHIFTED_OPERAND()
91 auto binop = inst->CastTo##opc##I(); \
94 enc->GetEncoder()->Encode##opc(dst, src0, Imm(binop->GetImm()), IsTypeSigned(type)); \
192 auto binop = inst->CastToShrI(); in VisitShrI() local
195 enc->GetEncoder()->EncodeShr(dst, src0, Imm(binop->GetImm())); in VisitShrI()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dinstructions.yaml30 Properties of the instruction, such as: arithmetic, binop, throw, etc
/arkcompiler/runtime_core/static_core/runtime/interpreter/
Dinterpreter-inl.h3651 << "binop.v v" << vs1 << ", v" << vs2; in HandleBinaryOpV()
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
Dllvm_ir_constructor.cpp944 auto op = llvm::AtomicRMWInst::BinOp::Or; in EmitAtomicByteOr()