Home
last modified time | relevance | path

Searched refs:UnaryNode (Results 1 - 17 of 17) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/include/
H A Dconstantfold.h65 std::pair<BaseNode*, std::optional<IntVal>> FoldUnary(UnaryNode *node);
100 BaseNode *Negate(UnaryNode *node) const;
103 UnaryNode *NewUnaryNode(UnaryNode *old, Opcode op, PrimType primType, BaseNode *expr) const;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
H A Disel.h55 Operand *SelectNeg(const UnaryNode &node, Operand &opnd0, const BaseNode &parent);
58 virtual Operand *SelectAbs(UnaryNode &node, Operand &opnd0);
86 Operand *SelectBnot(const UnaryNode &node, Operand &opnd0, const BaseNode &parent);
87 virtual Operand *SelectLnot(const UnaryNode &node, Operand &opnd0, const BaseNode &parent) = 0;
92 virtual Operand *SelectSqrt(UnaryNode &node, Operand &opnd0, const BaseNode &parent) = 0;
H A Dcgfunc.h219 virtual Operand *SelectAbs(UnaryNode &node, Operand &opnd0) = 0;
220 virtual Operand *SelectBnot(UnaryNode &node, Operand &opnd0, const BaseNode &parent) = 0;
223 virtual Operand *SelectLnot(UnaryNode &node, Operand &opnd0, const BaseNode &parent) = 0;
224 virtual Operand *SelectNeg(UnaryNode &node, Operand &opnd0, const BaseNode &parent) = 0;
225 virtual Operand *SelectSqrt(UnaryNode &node, Operand &opnd0, const BaseNode &parent) = 0;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/
H A Dx64_cgfunc.h84 Operand *SelectAbs(UnaryNode &node, Operand &opnd0) override;
85 Operand *SelectBnot(UnaryNode &node, Operand &opnd0, const BaseNode &parent) override;
88 Operand *SelectLnot(UnaryNode &node, Operand &opnd0, const BaseNode &parent) override;
89 Operand *SelectNeg(UnaryNode &node, Operand &opnd0, const BaseNode &parent) override;
90 Operand *SelectSqrt(UnaryNode &node, Operand &opnd0, const BaseNode &parent) override;
H A Dx64_MPISel.h42 Operand *SelectLnot(const UnaryNode &node, Operand &opnd0, const BaseNode &parent) override;
47 Operand *SelectSqrt(UnaryNode &node, Operand &opnd0, const BaseNode &parent) override;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
H A Dmir_nodes.h216 class UnaryNode : public BaseNode { class
218 explicit UnaryNode(Opcode o) : BaseNode(o, 1) {} in UnaryNode() function in maple::UnaryNode
220 UnaryNode(Opcode o, PrimType typ) : BaseNode(o, typ, 1) {} in UnaryNode() function in maple::UnaryNode
222 UnaryNode(Opcode o, PrimType typ, BaseNode *expr) : BaseNode(o, typ, 1), uOpnd(expr) {} in UnaryNode() function in maple::UnaryNode
224 virtual ~UnaryNode() override = default;
232 UnaryNode *CloneTree(MapleAllocator &allocator) const override
234 auto *node = allocator.GetMemPool()->New<UnaryNode>(*this);
268 class TypeCvtNode : public UnaryNode {
270 explicit TypeCvtNode(Opcode o) : UnaryNode(o) {} in TypeCvtNode()
272 TypeCvtNode(Opcode o, PrimType typ) : UnaryNode(
[all...]
H A Dmir_builder.h180 UnaryNode *CreateExprUnary(Opcode opcode, const MIRType &type, BaseNode *opnd);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/
H A Dx64_cgfunc.cpp207 Operand *X64CGFunc::SelectAbs(UnaryNode &node, Operand &opnd0) in SelectAbs()
212 Operand *X64CGFunc::SelectBnot(UnaryNode &node, Operand &opnd0, const BaseNode &parent) in SelectBnot()
227 Operand *X64CGFunc::SelectLnot(UnaryNode &node, Operand &opnd0, const BaseNode &parent) in SelectLnot()
232 Operand *X64CGFunc::SelectNeg(UnaryNode &node, Operand &opnd0, const BaseNode &parent) in SelectNeg()
237 Operand *X64CGFunc::SelectSqrt(UnaryNode &node, Operand &opnd0, const BaseNode &parent) in SelectSqrt()
H A Dx64_MPIsel.cpp656 Operand *X64MPIsel::SelectLnot(const UnaryNode &node, Operand &opnd0, const BaseNode &parent) in SelectLnot()
893 Operand *X64MPIsel::SelectSqrt(UnaryNode &node, Operand &src, const BaseNode &parent) in SelectSqrt()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
H A Daarch64_cgfunc.h159 Operand *SelectAbsSub(Insn &lastInsn, const UnaryNode &node, Operand &newOpnd0);
160 Operand *SelectAbs(UnaryNode &node, Operand &opnd0) override;
161 Operand *SelectBnot(UnaryNode &node, Operand &opnd0, const BaseNode &parent) override;
164 Operand *SelectLnot(UnaryNode &node, Operand &opnd0, const BaseNode &parent) override;
165 Operand *SelectNeg(UnaryNode &node, Operand &opnd0, const BaseNode &parent) override;
168 Operand *SelectSqrt(UnaryNode &node, Operand &opnd0, const BaseNode &parent) override;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/
H A Dconstantfold.cpp122 UnaryNode *ConstantFold::NewUnaryNode(UnaryNode *old, Opcode op, PrimType primType, BaseNode *expr) const in NewUnaryNode()
125 UnaryNode *result = nullptr; in NewUnaryNode()
129 result = mirModule->CurFuncCodeMemPool()->New<UnaryNode>(op, primType, expr); in NewUnaryNode()
145 BaseNode *r = static_cast<UnaryNode*>(pair.first)->Opnd(0); in PairToExpr()
183 return FoldUnary(static_cast<UnaryNode*>(node)); in DispatchFold()
227 return mirModule->CurFuncCodeMemPool()->New<UnaryNode>(OP_neg, PrimType(node->GetPrimType()), node); in Negate()
230 BaseNode *ConstantFold::Negate(UnaryNode *node) const in Negate()
256 return Negate(static_cast<UnaryNode*>(node)); in NegateTree()
831 std::pair<BaseNode*, std::optional<IntVal>> ConstantFold::FoldUnary(UnaryNode *nod
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/mpl2mpl/
H A Dconstantfold_test.cpp183 UnaryNode root(opcode_ls[0][opc_idx], primtype_ls[i], &constvalnode); in TEST()
193 UnaryNode root(opcode_ls[1][opc_idx], primtype_ls[i], &constvalnode); in TEST()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
H A Dmir_nodes.cpp108 void UnaryNode::DumpOpnd(const MIRModule &, int32 indent) const in DumpOpnd()
113 void UnaryNode::DumpOpnd(int32 indent) const in DumpOpnd()
122 void UnaryNode::Dump(int32 indent) const in Dump()
H A Dmir_builder.cpp230 UnaryNode *MIRBuilder::CreateExprUnary(Opcode opcode, const MIRType &type, BaseNode *opnd)
232 return NewNode<UnaryNode>(opcode, type.GetPrimType(), opnd);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
H A Dcgfunc.cpp128 return cgFunc.SelectAbs(static_cast<UnaryNode &>(expr), *cgFunc.HandleExpr(expr, *expr.Opnd(0))); in HandleAbs()
133 return cgFunc.SelectBnot(static_cast<UnaryNode &>(expr), *cgFunc.HandleExpr(expr, *expr.Opnd(0)), parent); in HandleBnot()
154 return cgFunc.SelectLnot(static_cast<UnaryNode &>(expr), *cgFunc.HandleExpr(expr, *expr.Opnd(0)), parent); in HandleLnot()
172 return cgFunc.SelectSqrt(static_cast<UnaryNode &>(expr), *cgFunc.HandleExpr(expr, *expr.Opnd(0)), parent); in HandleSqrt()
H A Disel.cpp387 return iSel.SelectBnot(static_cast<UnaryNode &>(expr), *iSel.HandleExpr(expr, *expr.Opnd(0)), parent); in HandleBnot()
392 return iSel.SelectLnot(static_cast<UnaryNode &>(expr), *iSel.HandleExpr(expr, *expr.Opnd(0)), parent); in HandleLnot()
413 return iSel.SelectAbs(static_cast<UnaryNode &>(expr), *iSel.HandleExpr(expr, *expr.Opnd(0))); in HandleAbs()
449 return iSel.SelectSqrt(static_cast<UnaryNode &>(expr), *iSel.HandleExpr(expr, *expr.Opnd(0)), parent); in HandleSqrt()
1099 Operand *MPISel::SelectAbs(UnaryNode &node, Operand &opnd0) in SelectAbs()
1245 Operand *MPISel::SelectBnot(const UnaryNode &node, Operand &opnd0, const BaseNode &parent) in SelectBnot()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
H A Daarch64_cgfunc.cpp2422 Operand *AArch64CGFunc::SelectAbsSub(Insn &lastInsn, const UnaryNode &node, Operand &newOpnd0)
2445 Operand *AArch64CGFunc::SelectAbs(UnaryNode &node, Operand &opnd0)
2484 Operand *AArch64CGFunc::SelectBnot(UnaryNode &node, Operand &opnd0, const BaseNode &parent)
2571 Operand *AArch64CGFunc::SelectLnot(UnaryNode &node, Operand &srcOpnd, const BaseNode &parent)
2582 Operand *AArch64CGFunc::SelectNeg(UnaryNode &node, Operand &opnd0, const BaseNode &parent)
2621 Operand *AArch64CGFunc::SelectSqrt(UnaryNode &node, Operand &src, const BaseNode &parent)

Completed in 28 milliseconds