/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
H A D | verify_pragma_info.h | 77 AssignableCheckPragma(std::string fromType, std::string toType) in AssignableCheckPragma() argument 78 : VerifyPragmaInfo(), fromType(std::move(fromType)), toType(std::move(toType)) in AssignableCheckPragma() 90 return fromType == pragma.GetFromType() && toType == pragma.GetToType(); in IsEqualTo() 95 return fromType; in GetFromType() 104 std::string fromType; member in maple::AssignableCheckPragma
|
H A D | mir_type.h | 153 bool IsNoCvtNeeded(PrimType toType, PrimType fromType); 158 inline bool IsRefOrPtrAssign(PrimType toType, PrimType fromType) in IsRefOrPtrAssign() argument 160 return (toType == PTY_ref && fromType == PTY_ptr) || (toType == PTY_ptr && fromType == PTY_ref); in IsRefOrPtrAssign()
|
H A D | mir_builder.h | 184 RetypeNode *CreateExprRetype(const MIRType &type, const MIRType &fromType, BaseNode *opnd); 185 RetypeNode *CreateExprRetype(const MIRType &type, PrimType fromType, BaseNode *opnd);
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/ |
H A D | pgo_method_type_set.cpp | 23 for (const auto &fromType : info->scalarOpTypeInfos_) { in Merge() 24 auto iter = scalarOpTypeInfos_.find(fromType); in Merge() 26 const_cast<ScalarOpTypeInfo &>(*iter).Merge(fromType); in Merge() 28 scalarOpTypeInfos_.emplace(fromType); in Merge() 31 for (const auto &fromType : info->rwScalarOpTypeInfos_) { in Merge() 32 auto iter = rwScalarOpTypeInfos_.find(fromType); in Merge() 34 const_cast<RWScalarOpTypeInfo &>(*iter).Merge(fromType); in Merge() 36 rwScalarOpTypeInfos_.emplace(fromType); in Merge() 39 for (const auto &fromType : info->objDefOpTypeInfos_) { in Merge() 40 AddDefine(fromType in Merge() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
H A D | isel.cpp | 857 PrimType fromType = node.Opnd(0)->GetPrimType(); in SelectExtractbits() local 865 SelectCopy(resOpnd, opnd0, toType, fromType); in SelectExtractbits() 869 RegOperand &tmpRegOpnd = SelectCopy2Reg(opnd0, opndType, fromType); in SelectExtractbits() 880 PrimType fromType = node.Opnd(0)->GetPrimType(); in SelectCvt() local 882 if (fromType == toType) { in SelectCvt() 887 if (IsPrimitiveInteger(toType) && IsPrimitiveInteger(fromType)) { in SelectCvt() 888 SelectIntCvt(*resOpnd, opnd0, toType, fromType); in SelectCvt() 889 } else if (IsPrimitiveFloat(toType) && IsPrimitiveInteger(fromType)) { in SelectCvt() 890 SelectCvtInt2Float(*resOpnd, opnd0, toType, fromType); in SelectCvt() 891 } else if (IsPrimitiveFloat(toType) && IsPrimitiveFloat(fromType)) { in SelectCvt() 901 SelectCvtFloat2Int(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType) SelectCvtFloat2Int() argument 926 SelectCvtInt2Float(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType) SelectCvtInt2Float() argument 955 SelectIntCvt(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType) SelectIntCvt() argument 977 SelectFloatCvt(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType) SelectFloatCvt() argument 1172 SelectCopy2Reg(Operand &src, PrimType toType, PrimType fromType) SelectCopy2Reg() argument 1202 SelectCopy(Operand &dest, Operand &src, PrimType toType, PrimType fromType) SelectCopy() argument 1295 PrimType fromType = node.Opnd(0)->GetPrimType(); SelectRetype() local [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
H A D | mir_type.cpp | 90 bool IsNoCvtNeeded(PrimType toType, PrimType fromType) in IsNoCvtNeeded() argument 92 if (toType == fromType) { in IsNoCvtNeeded() 97 return fromType == PTY_i16 || fromType == PTY_i8; in IsNoCvtNeeded() 99 return fromType == PTY_u16 || fromType == PTY_u8; in IsNoCvtNeeded() 103 return fromType == PTY_u32; in IsNoCvtNeeded() 106 return fromType == PTY_i32; in IsNoCvtNeeded() 111 return fromType == PTY_ptr || fromType in IsNoCvtNeeded() [all...] |
H A D | mir_builder.cpp | 240 TypeCvtNode *MIRBuilder::CreateExprTypeCvt(Opcode o, const MIRType &type, const MIRType &fromType, BaseNode *opnd) 242 return CreateExprTypeCvt(o, type.GetPrimType(), fromType.GetPrimType(), *opnd); 251 RetypeNode *MIRBuilder::CreateExprRetype(const MIRType &type, const MIRType &fromType, BaseNode *opnd) 253 return CreateExprRetype(type, fromType.GetPrimType(), opnd); 256 RetypeNode *MIRBuilder::CreateExprRetype(const MIRType &type, PrimType fromType, BaseNode *opnd) 258 return NewNode<RetypeNode>(type.GetPrimType(), fromType, type.GetTypeIndex(), opnd);
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/include/ |
H A D | constantfold.h | 47 MIRConst *FoldFloorMIRConst(const MIRConst &cst, PrimType fromType, PrimType toType, bool isFloor = true) const; 48 MIRConst *FoldRoundMIRConst(const MIRConst &cst, PrimType fromType, PrimType toType) const; 49 MIRConst *FoldTypeCvtMIRConst(const MIRConst &cst, PrimType fromType, PrimType toType) const; 67 ConstvalNode *FoldCeil(const ConstvalNode &cst, PrimType fromType, PrimType toType) const; 68 ConstvalNode *FoldFloor(const ConstvalNode &cst, PrimType fromType, PrimType toType) const; 69 ConstvalNode *FoldRound(const ConstvalNode &cst, PrimType fromType, PrimType toType) const; 70 ConstvalNode *FoldTrunc(const ConstvalNode &cst, PrimType fromType, PrimType toType) const; 71 ConstvalNode *FoldTypeCvt(const ConstvalNode &cst, PrimType fromType, PrimType toType) const;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/ |
H A D | lmir_builder.cpp | 765 Expr LMIRBuilder::Trunc(Type *fromType, Type *toType, Expr opnd) in Trunc() argument 767 if (fromType->GetPrimType() == toType->GetPrimType() && in Trunc() 768 (fromType->GetPrimType() == PTY_f64 || fromType->GetPrimType() == PTY_f32)) { in Trunc() 769 return Expr(mirBuilder.CreateExprTypeCvt(OP_trunc, *toType, *fromType, opnd.GetNode()), toType); in Trunc() 771 return Expr(mirBuilder.CreateExprTypeCvt(OP_cvt, toType->GetPrimType(), fromType->GetPrimType(), *opnd.GetNode()), in Trunc() 775 Expr LMIRBuilder::ZExt(Type *fromType, Type *toType, Expr opnd) in ZExt() argument 778 GetPrimTypeActualBitSize(fromType->GetPrimType()), opnd.GetNode()), in ZExt() 782 Expr LMIRBuilder::Cvt(Type *fromType, Type *toType, Expr opnd) in Cvt() argument 784 if (fromType in Cvt() 790 SExt(Type *fromType, Type *toType, Expr opnd) SExt() argument 797 Floor(Type *fromType, Type *toType, Expr opnd) Floor() argument 802 Ceil(Type *fromType, Type *toType, Expr opnd) Ceil() argument 807 BitCast(Type *fromType, Type *toType, Expr opnd) BitCast() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
H A D | isel.h | 123 void SelectCopy(Operand &dest, Operand &src, PrimType toType, PrimType fromType); 125 RegOperand &SelectCopy2Reg(Operand &src, PrimType toType, PrimType fromType); 127 void SelectIntCvt(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType); 128 void SelectCvtInt2Float(RegOperand &resOpnd, Operand &origOpnd0, PrimType toType, PrimType fromType); 129 void SelectFloatCvt(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType); 130 void SelectCvtFloat2Int(RegOperand &resOpnd, Operand &origOpnd0, PrimType toType, PrimType fromType); 161 virtual void SelectRetypeFloat(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType) = 0;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/litecg/ |
H A D | lmir_builder.h | 424 // Type of opnd should be consistent with fromType: no implicient conversion 425 Expr Trunc(Type *fromType, Type *toType, Expr opnd); 426 Expr ZExt(Type *fromType, Type *toType, Expr opnd); 427 Expr SExt(Type *fromType, Type *toType, Expr opnd); 428 Expr BitCast(Type *fromType, Type *toType, Expr opnd); 429 Expr Cvt(Type *fromType, Type *toType, Expr opnd); 430 Expr Floor(Type *fromType, Type *toType, Expr opnd); 431 Expr Ceil(Type *fromType, Type *toType, Expr opnd);
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/ |
H A D | constantfold.cpp | 924 ConstvalNode *ConstantFold::FoldCeil(const ConstvalNode &cst, PrimType fromType, PrimType toType) const in FoldCeil() argument 929 if (fromType == PTY_f32) { in FoldCeil() 976 MIRConst *ConstantFold::FoldFloorMIRConst(const MIRConst &cst, PrimType fromType, PrimType toType, bool isFloor) const in FoldFloorMIRConst() argument 979 if (fromType == PTY_f32) { in FoldFloorMIRConst() 1011 ConstvalNode *ConstantFold::FoldFloor(const ConstvalNode &cst, PrimType fromType, PrimType toType) const in FoldFloor() argument 1015 resultConst->SetConstVal(FoldFloorMIRConst(*cst.GetConstVal(), fromType, toType)); in FoldFloor() 1019 MIRConst *ConstantFold::FoldRoundMIRConst(const MIRConst &cst, PrimType fromType, PrimType toType) const in FoldRoundMIRConst() argument 1022 if (fromType == PTY_f32) { in FoldRoundMIRConst() 1029 } else if (fromType == PTY_f64) { in FoldRoundMIRConst() 1037 } else if (toType == PTY_f32 && IsPrimitiveInteger(fromType)) { in FoldRoundMIRConst() 1071 FoldRound(const ConstvalNode &cst, PrimType fromType, PrimType toType) const FoldRound() argument 1079 FoldTrunc(const ConstvalNode &cst, PrimType fromType, PrimType toType) const FoldTrunc() argument 1112 FoldTypeCvtMIRConst(const MIRConst &cst, PrimType fromType, PrimType toType) const FoldTypeCvtMIRConst() argument 1172 FoldTypeCvt(const ConstvalNode &cst, PrimType fromType, PrimType toType) const FoldTypeCvt() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/ |
H A D | aarch64_cgfunc.cpp | 2675 void AArch64CGFunc::SelectCvtInt2Float(Operand &resOpnd, Operand &origOpnd0, PrimType toType, PrimType fromType) 2680 uint32 fsize = GetPrimTypeBitSize(fromType); 2682 PrimType itype = (GetPrimTypeBitSize(fromType) == k64BitSize) ? (IsSignedInteger(fromType) ? PTY_i64 : PTY_u64) 2683 : (IsSignedInteger(fromType) ? PTY_i32 : PTY_u32); 2690 if (IsSignedInteger(fromType) && (fsize < k32BitSize)) { 2770 PrimType fromType = node.Opnd(0)->GetPrimType(); 2772 DEBUG_ASSERT(GetPrimTypeSize(fromType) == GetPrimTypeSize(toType), "retype bit widith doesn' match"); 2773 if (LIsPrimitivePointer(fromType) && LIsPrimitivePointer(toType)) { 2782 bool isFromInt = IsPrimitiveInteger(fromType); [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/ |
H A D | x64_MPISel.h | 72 void SelectRetypeFloat(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType) override;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/ |
H A D | x64_MPIsel.cpp | 872 void X64MPIsel::SelectRetypeFloat(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType) in SelectRetypeFloat() argument 874 uint32 fromSize = GetPrimTypeBitSize(fromType); in SelectRetypeFloat() 877 RegOperand ®Opnd0 = SelectCopy2Reg(opnd0, fromType); in SelectRetypeFloat() 880 mOp = IsPrimitiveFloat(fromType) ? x64::MOP_movd_fr_r : x64::MOP_movd_r_fr; in SelectRetypeFloat() 882 mOp = IsPrimitiveFloat(fromType) ? x64::MOP_movq_fr_r : x64::MOP_movq_r_fr; in SelectRetypeFloat()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/ |
H A D | aarch64_cgfunc.h | 601 void SelectCvtInt2Int(const BaseNode *parent, Operand *&resOpnd, Operand *opnd0, PrimType fromType, 603 void SelectCvtFloat2Float(Operand &resOpnd, Operand &opnd0, PrimType fromType, PrimType toType); 605 void SelectCvtInt2Float(Operand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType);
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/ |
H A D | lower.cpp | 710 PrimType fromType = cvtExpr.FromType(); in LowerExpr() local 711 auto *fromMIRType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(fromType)); in LowerExpr()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/ |
H A D | litecg_ir_builder.cpp | 1387 LiteCGType *fromType = ConvertLiteCGTypeFromGate(e1); in VisitZExtInt() local 1389 Expr result = lmirBuilder_->ZExt(fromType, toType, GetExprFromGate(e1)); in VisitZExtInt() 1809 LiteCGType *fromType = ConvertLiteCGTypeFromGate(e1); in VisitBitCast() local 1812 Expr result = lmirBuilder_->BitCast(fromType, toType, e1Value); in VisitBitCast() 2156 LiteCGType *fromType = ConvertLiteCGTypeFromGate(e1); in VisitSExtInt() local 2158 Expr result = lmirBuilder_->SExt(fromType, toType, e1Value); in VisitSExtInt()
|