/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/include/ |
H A D | constantfold.h | 60 std::pair<BaseNode*, std::optional<IntVal>> FoldCompare(CompareNode *node); 106 BaseNode *SimplifyDoubleConstvalCompare(CompareNode &node, bool isRConstval, bool isGtOrLt = false) const; 107 BaseNode *SimplifyDoubleCompare(CompareNode &compareNode) const; 108 CompareNode *FoldConstComparisonReverse(Opcode opcode, PrimType resultType, PrimType opndType, BaseNode &l,
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/ |
H A D | constantfold.cpp | 216 return FoldCompare(static_cast<CompareNode*>(node)); in DispatchFold() 660 CompareNode *ConstantFold::FoldConstComparisonReverse(Opcode opcode, PrimType resultType, PrimType opndType, in FoldConstComparisonReverse() 663 CompareNode *result = nullptr; in FoldConstComparisonReverse() 694 mirModule->CurFuncCodeMemPool()->New<CompareNode>(Opcode(op), PrimType(resultType), PrimType(opndType), &r, &l); in FoldConstComparisonReverse() 1727 BaseNode *ConstantFold::SimplifyDoubleConstvalCompare(CompareNode &node, bool isRConstval, bool isGtOrLt) const in SimplifyDoubleConstvalCompare() 1732 const CompareNode *compNode = static_cast<CompareNode*>(node.Opnd(0)); in SimplifyDoubleConstvalCompare() 1733 return mirModule->CurFuncCodeMemPool()->New<CompareNode>(node.GetOpCode(), in SimplifyDoubleConstvalCompare() 1739 const CompareNode *compNode = static_cast<CompareNode*>(nod in SimplifyDoubleConstvalCompare() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/ |
H A D | switch_lowerer.cpp | 135 CompareNode *SwitchLowerer::BuildCmpNode(Opcode opCode, uint32 idx) in BuildCmpNode() 137 CompareNode *binaryExpr = mirModule.CurFuncCodeMemPool()->New<CompareNode>(opCode); in BuildCmpNode() 194 CompareNode *cmpNode = nullptr; in BuildCodeForSwitchItems()
|
H A D | lower.cpp | 532 auto &cmp = static_cast<CompareNode &>(node); in LowerTypePtr()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/be/ |
H A D | switch_lowerer.h | 59 maple::CompareNode *BuildCmpNode(maple::Opcode opCode, maple::uint32 idx);
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/ |
H A D | x64_MPISel.h | 41 Operand *SelectCmpOp(CompareNode &node, Operand &opnd0, Operand &opnd1, const BaseNode &parent) override;
|
H A D | x64_cgfunc.h | 79 Operand *SelectCmpOp(CompareNode &node, Operand &opnd0, Operand &opnd1, const BaseNode &parent) override;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
H A D | mir_lower.cpp | 299 CompareNode *eqNode = builder->CreateExprCompare( in LowerSwitchStmt() 310 CompareNode *ltNode = builder->CreateExprCompare( in LowerSwitchStmt() 315 CompareNode *gtNode = builder->CreateExprCompare( in LowerSwitchStmt()
|
H A D | mir_builder.cpp | 266 CompareNode *MIRBuilder::CreateExprCompare(Opcode opcode, const MIRType &type, const MIRType &opndType, BaseNode *opnd0, 269 return NewNode<CompareNode>(opcode, type.GetPrimType(), opndType.GetPrimType(), opnd0, opnd1);
|
H A D | mir_nodes.cpp | 194 void CompareNode::Dump(int32 indent) const in Dump()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/mpl2mpl/ |
H A D | constantfold_test.cpp | 112 CompareNode root(opcode_ls[opc_idx], primtyp, opndType, &constvalnode0, &constvalnode1); in TEST() 148 CompareNode root(opcode_ls[opc_idx], primtype, opndType_ls[i], &constvalnode0, &constvalnode1); in TEST()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
H A D | mir_nodes.h | 561 class CompareNode : public BinaryNode { class 563 explicit CompareNode(Opcode o) : BinaryNode(o) {} in CompareNode() function in maple::CompareNode 565 CompareNode(Opcode o, PrimType typ) : BinaryNode(o, typ) {} in CompareNode() function in maple::CompareNode 567 CompareNode(Opcode o, PrimType typ, PrimType otype, BaseNode *l, BaseNode *r) in CompareNode() function in maple::CompareNode 572 virtual ~CompareNode() = default; 579 CompareNode *CloneTree(MapleAllocator &allocator) const override 581 auto *node = allocator.GetMemPool()->New<CompareNode>(*this);
|
H A D | mir_builder.h | 178 CompareNode *CreateExprCompare(Opcode opcode, const MIRType &type, const MIRType &opndType, BaseNode *opnd0,
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
H A D | cgfunc.cpp | 209 targetPtyp = static_cast<const CompareNode &>(parent).GetOpndType(); in HandleCmp() 216 return cgFunc.SelectCmpOp(static_cast<CompareNode &>(expr), *cgFunc.HandleExpr(expr, *expr.Opnd(0)), in HandleCmp() 348 auto *cmpNode = static_cast<CompareNode *>(op0); in HandleCondbr()
|
H A D | isel.cpp | 400 targetPtyp = static_cast<const CompareNode &>(parent).GetOpndType(); in HandleCmp() 407 return iSel.SelectCmpOp(static_cast<CompareNode &>(expr), *iSel.HandleExpr(expr, *expr.Opnd(0)), in HandleCmp()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
H A D | isel.h | 83 virtual Operand *SelectCmpOp(CompareNode &node, Operand &opnd0, Operand &opnd1, const BaseNode &parent) = 0;
|
H A D | cgfunc.h | 214 virtual Operand *SelectCmpOp(CompareNode &node, Operand &opnd0, Operand &opnd1, const BaseNode &parent) = 0;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/ |
H A D | x64_cgfunc.cpp | 184 Operand *X64CGFunc::SelectCmpOp(CompareNode &node, Operand &opnd0, Operand &opnd1, const BaseNode &parent) in SelectCmpOp()
|
H A D | x64_MPIsel.cpp | 505 primType = static_cast<CompareNode &>(condNode).GetOpndType(); in SelectCondGoto() 683 Operand *X64MPIsel::SelectCmpOp(CompareNode &node, Operand &opnd0, Operand &opnd1, const BaseNode &parent) in SelectCmpOp()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/ |
H A D | lmir_builder.cpp | 735 static_cast<CompareNode *>(cmpExpr.GetNode())->SetOpndType(newType); in ICmp()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/ |
H A D | aarch64_cgfunc.cpp | 1021 primType = static_cast<const CompareNode &>(parent).GetOpndType(); in SelectIntConst() 1275 CompareNode *node = static_cast<CompareNode *>(&expr); in SelectCondSpecialCase1() 1293 PrimType pType = static_cast<CompareNode *>(condNode)->GetOpndType(); in SelectCondSpecialCase1() 1310 auto &cmpNode = static_cast<CompareNode &>(expr); in SelectCondSpecialCase2() 1347 pType = static_cast<CompareNode *>(condNode)->GetOpndType(); in SelectCondGoto() 2006 Operand *AArch64CGFunc::SelectCmpOp(CompareNode &node, Operand &opnd0, Operand &opnd1, const BaseNode &parent)
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/ |
H A D | aarch64_cgfunc.h | 140 Operand *SelectCmpOp(CompareNode &node, Operand &o0, Operand &o1, const BaseNode &parent) override;
|