Home
last modified time | relevance | path

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

/arkcompiler/runtime_core/static_core/bytecode_optimizer/
Dcommon.cpp65 bool CanConvertToIncI(const compiler::BinaryImmOperation *binop) in CanConvertToIncI() argument
67 ASSERT(binop->GetBasicBlock()->GetGraph()->IsRegAllocApplied()); in CanConvertToIncI()
68 …ASSERT(binop->GetOpcode() == compiler::Opcode::AddI || binop->GetOpcode() == compiler::Opcode::Sub… in CanConvertToIncI()
71 if (binop->GetSrcReg(0U) != binop->GetDstReg()) { in CanConvertToIncI()
76 if (binop->GetSrcReg(0U) == compiler::GetAccReg()) { in CanConvertToIncI()
82 for (const auto &user : binop->GetUsers()) { in CanConvertToIncI()
90 …if (uinst->GetInput(index).GetInst() == binop && uinst->GetSrcReg(index) == compiler::GetAccReg())… in CanConvertToIncI()
102 int32_t imm = binop->GetImm() & BITMASK; in CanConvertToIncI()
104 if (binop->GetOpcode() == compiler::Opcode::SubI) { in CanConvertToIncI()
Dcommon.h42 bool CanConvertToIncI(const compiler::BinaryImmOperation *binop);
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
DstringConstantsLowering.cpp55 auto const binOp = node->AsBinaryExpression(); in Perform() local
56 …if (binOp->OperatorType() == lexer::TokenType::PUNCTUATOR_PLUS && binOp->Left()->IsStringLiteral()… in Perform()
57 binOp->Right()->IsStringLiteral()) { in Perform()
58 return FoldConcat(ctx, binOp); in Perform()
DconstantExpressionLowering.cpp931 auto binop = node->AsBinaryExpression(); in FoldConstant() local
932 if (IsSupportedLiteral(binop->Left()) && IsSupportedLiteral(binop->Right())) { in FoldConstant()
933 return FoldBinaryConstant(binop); in FoldConstant()
/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.h547 template <typename Op, typename Binop, typename... Args>
548 static size_t PowerOfOpThenFold(Op op, Binop binop, const Args &...args) in PowerOfOpThenFold() argument
555 auto getProcessedWord = [&op, &binop, numArgs, &args...](size_t idx) { in PowerOfOpThenFold()
558 …return NAry {binop}(std::tuple<std::decay_t<decltype(args.data_[idx])>...> {unop(args.data_[idx]).… in PowerOfOpThenFold()
639 template <const int V, typename Op, typename BinOp, typename... Args>
640 static auto LazyOpThenFoldThenIndicesOf(Op op, BinOp binop, const Args &...args) in LazyOpThenFoldThenIndicesOf() argument
647 auto getProcessedWord = [op, binop, numArgs, &args...](size_t idx) { in LazyOpThenFoldThenIndicesOf()
650 …Word val = NAry {binop}(std::tuple<std::decay_t<decltype(args.data_[idx])>...> {unop(args.data_[id… in LazyOpThenFoldThenIndicesOf()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dmcr_gate_meta_data.h318 TypedBinOp binOp = GetTypedBinOp(); in IsTrustedBooleanType() local
319 switch (binOp) { in IsTrustedBooleanType()
336 TypedBinOp binOp = GetTypedBinOp(); in IsTrustedNumberType() local
337 switch (binOp) { in IsTrustedNumberType()
357 TypedBinOp binOp = GetTypedBinOp(); in IsTrustedStringType() local
358 if (binOp == TypedBinOp::TYPED_ADD) { in IsTrustedStringType()
364 static uint64_t ToValue(ParamType operandType, TypedBinOp binOp) in ToValue() argument
366 return TypedValueBits::Encode(operandType.Value()) | TypedBinOpBits::Encode(binOp); in ToValue()
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()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
Dinst_templates.yaml15 binop: |-
18 % raise "Wrong binop instruction" unless opc
63 % raise "Wrong binop instruction" unless opc
73 % raise "Wrong binop instruction" unless opc
/arkcompiler/runtime_core/libabckit/src/codegen/
Dcodegen_static.cpp37 bool CanConvertToIncI(const compiler::BinaryImmOperation *binop) in CanConvertToIncI() argument
39 ASSERT(binop->GetBasicBlock()->GetGraph()->IsRegAllocApplied()); in CanConvertToIncI()
40 …ASSERT(binop->GetOpcode() == compiler::Opcode::AddI || binop->GetOpcode() == compiler::Opcode::Sub… in CanConvertToIncI()
43 if (binop->GetSrcReg(0U) != binop->GetDstReg()) { in CanConvertToIncI()
48 if (binop->GetSrcReg(0U) == compiler::GetAccReg()) { in CanConvertToIncI()
54 for (const auto &user : binop->GetUsers()) { in CanConvertToIncI()
62 …if (uinst->GetInput(index).GetInst() == binop && uinst->GetSrcReg(index) == compiler::GetAccReg())… in CanConvertToIncI()
74 int32_t imm = binop->GetImm() & BITMASK; in CanConvertToIncI()
76 if (binop->GetOpcode() == compiler::Opcode::SubI) { in CanConvertToIncI()
/arkcompiler/runtime_core/libabckit/src/irbuilder_dynamic/templates/
Dinst_templates.yaml15 binop: |-
18 % raise "Wrong binop instruction" unless opc
Dinst_builder_dyn_gen.cpp.erb106 /(fdiv|fmod|add|sub|mul|and|or|xor|ashr|shr|shl|neg|not)[2i]?$/ => "binop",
/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.cpp67 auto binop = inst->CastTo##opc##I(); \ in ENCODE_INST_WITH_SHIFTED_OPERAND()
70 enc->GetEncoder()->Encode##opc(dst, src0, Imm(binop->GetImm())); \ in ENCODE_INST_WITH_SHIFTED_OPERAND()
93 auto binop = inst->CastTo##opc##I(); \
96 enc->GetEncoder()->Encode##opc(dst, src0, Imm(binop->GetImm()), IsTypeSigned(type)); \
195 auto binop = inst->CastToShrI(); in VisitShrI() local
198 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.h3667 << "binop.v v" << vs1 << ", v" << vs2; in HandleBinaryOpV()
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
Dllvm_ir_constructor.cpp1311 auto op = llvm::AtomicRMWInst::BinOp::Or; in EmitAtomicByteOr()