/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
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;
|
D | verification.h | 63 …void AddPragmaAssignableCheck(const std::string &className, std::string fromType, std::string toTy…
|
D | mir_builder.h | 242 RetypeNode *CreateExprRetype(const MIRType &type, const MIRType &fromType, BaseNode *opnd); 243 RetypeNode *CreateExprRetype(const MIRType &type, PrimType fromType, BaseNode *opnd);
|
D | mir_type.h | 203 bool IsNoCvtNeeded(PrimType toType, PrimType fromType); 210 inline bool IsRefOrPtrAssign(PrimType toType, PrimType fromType) in IsRefOrPtrAssign() argument 212 return (toType == PTY_ref && fromType == PTY_ptr) || (toType == PTY_ptr && fromType == PTY_ref); in IsRefOrPtrAssign()
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/ |
D | pgo_method_type_set.cpp | 29 for (const auto &fromType : info->scalarOpTypeInfos_) { in Merge() local 30 auto iter = scalarOpTypeInfos_.find(fromType); in Merge() 32 const_cast<ScalarOpTypeInfo &>(*iter).Merge(fromType); in Merge() 34 scalarOpTypeInfos_.emplace(fromType); in Merge() 37 for (const auto &fromType : info->rwScalarOpTypeInfos_) { in Merge() local 38 auto iter = rwScalarOpTypeInfos_.find(fromType); in Merge() 40 const_cast<RWScalarOpTypeInfo &>(*iter).Merge(fromType); in Merge() 42 rwScalarOpTypeInfos_.emplace(fromType); in Merge() 45 for (const auto &fromType : info->objDefOpTypeInfos_) { in Merge() local 46 AddDefine(fromType.GetOffset(), fromType.GetType()); in Merge()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/src/ |
D | cast_opt.cpp | 25 CastKind GetCastKindByTwoType(PrimType fromType, PrimType toType) in GetCastKindByTwoType() argument 29 if (toType == PTY_u1 && fromType != PTY_u1) { in GetCastKindByTwoType() 32 const uint32 fromTypeBitSize = GetPrimTypeActualBitSize(fromType); in GetCastKindByTwoType() 35 if (IsPrimitiveInteger(fromType) && IsPrimitiveInteger(toType)) { in GetCastKindByTwoType() 41 return IsSignedInteger(fromType) ? CAST_sext : CAST_zext; in GetCastKindByTwoType() 45 if (IsPrimitiveFloat(fromType) && IsPrimitiveFloat(toType)) { in GetCastKindByTwoType() 55 if (IsPrimitiveInteger(fromType) && IsPrimitiveFloat(toType)) { in GetCastKindByTwoType() 59 if (IsPrimitiveFloat(fromType) && IsPrimitiveInteger(toType)) { in GetCastKindByTwoType() 354 PrimType fromType = cvtExpr->FromType(); in TransformCvtU1ToNe() local 355 auto *fromMIRType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(fromType)); in TransformCvtU1ToNe()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
D | isel.cpp | 1049 PrimType fromType = node.Opnd(0)->GetPrimType(); in SelectExtractbits() local 1057 SelectCopy(resOpnd, opnd0, toType, fromType); in SelectExtractbits() 1061 RegOperand &tmpRegOpnd = SelectCopy2Reg(opnd0, opndType, fromType); in SelectExtractbits() 1072 PrimType fromType = node.Opnd(0)->GetPrimType(); in SelectCvt() local 1074 if (fromType == toType) { in SelectCvt() 1079 if (IsPrimitiveInteger(toType) && IsPrimitiveInteger(fromType)) { in SelectCvt() 1080 SelectIntCvt(*resOpnd, opnd0, toType, fromType); in SelectCvt() 1081 } else if (IsPrimitiveFloat(toType) && IsPrimitiveInteger(fromType)) { in SelectCvt() 1082 SelectCvtInt2Float(*resOpnd, opnd0, toType, fromType); in SelectCvt() 1083 } else if (IsPrimitiveFloat(toType) && IsPrimitiveFloat(fromType)) { in SelectCvt() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/include/ |
D | constantfold.h | 90 ConstvalNode *FoldCeil(const ConstvalNode &cst, PrimType fromType, PrimType toType) const; 91 ConstvalNode *FoldFloor(const ConstvalNode &cst, PrimType fromType, PrimType toType) const; 92 ConstvalNode *FoldRound(const ConstvalNode &cst, PrimType fromType, PrimType toType) const; 93 ConstvalNode *FoldTrunk(const ConstvalNode &cst, PrimType fromType, PrimType toType) const; 94 ConstvalNode *FoldTypeCvt(const ConstvalNode &cst, PrimType fromType, PrimType toType) const;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
D | isel.h | 142 void SelectCopy(Operand &dest, Operand &src, PrimType toType, PrimType fromType); 144 RegOperand &SelectCopy2Reg(Operand &src, PrimType toType, PrimType fromType); 146 void SelectIntCvt(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType); 147 …id SelectCvtInt2Float(RegOperand &resOpnd, Operand &origOpnd0, PrimType toType, PrimType fromType); 148 void SelectFloatCvt(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType); 149 …id SelectCvtFloat2Int(RegOperand &resOpnd, Operand &origOpnd0, PrimType toType, PrimType fromType); 182 …oid SelectRetypeFloat(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType) = 0;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/ |
D | constantfold.cpp | 1086 ConstvalNode *ConstantFold::FoldCeil(const ConstvalNode &cst, PrimType fromType, PrimType toType) c… in FoldCeil() argument 1091 if (fromType == PTY_f32) { in FoldCeil() 1132 MIRConst *ConstantFold::FoldFloorMIRConst(const MIRConst &cst, PrimType fromType, PrimType toType, … in FoldFloorMIRConst() argument 1135 if (fromType == PTY_f32) { in FoldFloorMIRConst() 1160 ConstvalNode *ConstantFold::FoldFloor(const ConstvalNode &cst, PrimType fromType, PrimType toType) … in FoldFloor() argument 1164 resultConst->SetConstVal(FoldFloorMIRConst(*cst.GetConstVal(), fromType, toType)); in FoldFloor() 1168 MIRConst *ConstantFold::FoldRoundMIRConst(const MIRConst &cst, PrimType fromType, PrimType toType) … in FoldRoundMIRConst() argument 1171 if (fromType == PTY_f32) { in FoldRoundMIRConst() 1178 } else if (fromType == PTY_f64) { in FoldRoundMIRConst() 1185 } else if (toType == PTY_f32 && IsPrimitiveInteger(fromType)) { in FoldRoundMIRConst() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/ |
D | lmir_builder.cpp | 931 Expr LMIRBuilder::Trunc(Type *fromType, Type *toType, Expr opnd) in Trunc() argument 933 …return Expr(mirBuilder.CreateExprTypeCvt(OP_cvt, toType->GetPrimType(), fromType->GetPrimType(), *… in Trunc() 937 Expr LMIRBuilder::ZExt(Type *fromType, Type *toType, Expr opnd) in ZExt() argument 940 … GetPrimTypeActualBitSize(fromType->GetPrimType()), opnd.GetNode()), in ZExt() 944 Expr LMIRBuilder::Cvt(Type *fromType, Type *toType, Expr opnd) in Cvt() argument 946 if (fromType->GetPrimType() != toType->GetPrimType()) { in Cvt() 947 … return Expr(mirBuilder.CreateExprTypeCvt(OP_cvt, *toType, *fromType, opnd.GetNode()), toType); in Cvt() 952 Expr LMIRBuilder::SExt(Type *fromType, Type *toType, Expr opnd) in SExt() argument 955 … GetPrimTypeActualBitSize(fromType->GetPrimType()), opnd.GetNode()), in SExt() 959 Expr LMIRBuilder::BitCast(Type *fromType, Type *toType, Expr opnd) in BitCast() argument [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/litecg/ |
D | lmir_builder.h | 486 Expr Trunc(Type *fromType, Type *toType, Expr opnd); 487 Expr ZExt(Type *fromType, Type *toType, Expr opnd); 488 Expr SExt(Type *fromType, Type *toType, Expr opnd); 489 Expr BitCast(Type *fromType, Type *toType, Expr opnd); 490 Expr Cvt(Type *fromType, Type *toType, Expr opnd);
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
D | verification.cpp | 203 void VerifyResult::AddPragmaAssignableCheck(const std::string &className, std::string fromType, std… in AddPragmaAssignableCheck() argument 211 allocator.GetMemPool()->New<AssignableCheckPragma>(std::move(fromType), std::move(toType)); in AddPragmaAssignableCheck()
|
D | mir_type.cpp | 173 bool IsNoCvtNeeded(PrimType toType, PrimType fromType) in IsNoCvtNeeded() argument 175 if (toType == fromType) { in IsNoCvtNeeded() 180 return fromType == PTY_i16 || fromType == PTY_i8; in IsNoCvtNeeded() 182 return fromType == PTY_u16 || fromType == PTY_u8; in IsNoCvtNeeded() 186 return fromType == PTY_u32; in IsNoCvtNeeded() 189 return fromType == PTY_i32; in IsNoCvtNeeded() 194 … return fromType == PTY_ptr || fromType == PTY_u64 || fromType == PTY_a64 || fromType == PTY_i64; in IsNoCvtNeeded()
|
D | mir_builder.cpp | 774 TypeCvtNode *MIRBuilder::CreateExprTypeCvt(Opcode o, const MIRType &type, const MIRType &fromType, … in CreateExprTypeCvt() argument 776 return CreateExprTypeCvt(o, type.GetPrimType(), fromType.GetPrimType(), *opnd); in CreateExprTypeCvt() 797 RetypeNode *MIRBuilder::CreateExprRetype(const MIRType &type, const MIRType &fromType, BaseNode *op… in CreateExprRetype() argument 799 return CreateExprRetype(type, fromType.GetPrimType(), opnd); in CreateExprRetype() 802 RetypeNode *MIRBuilder::CreateExprRetype(const MIRType &type, PrimType fromType, BaseNode *opnd) in CreateExprRetype() argument 804 …return GetCurrentFuncCodeMp()->New<RetypeNode>(type.GetPrimType(), fromType, type.GetTypeIndex(), … in CreateExprRetype()
|
D | mir_parser.cpp | 3118 PrimType fromType = GetPrimitiveType(lexer.GetTokenKind()); in ParseExprTyconvert() local 3119 if (fromType == kPtyInvalid) { in ParseExprTyconvert() 3123 cvtNode->SetFromType(fromType); in ParseExprTyconvert()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/ |
D | x64_MPISel.h | 105 …void SelectRetypeFloat(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType) ov…
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/ |
D | aarch64_cgfunc.cpp | 5660 …GFunc::SelectCvtInt2Float(Operand &resOpnd, Operand &origOpnd0, PrimType toType, PrimType fromType) in SelectCvtInt2Float() argument 5665 uint32 fsize = GetPrimTypeBitSize(fromType); in SelectCvtInt2Float() 5667 …PrimType itype = (GetPrimTypeBitSize(fromType) == k64BitSize) ? (IsSignedInteger(fromType) ? PTY_i… in SelectCvtInt2Float() 5668 … : (IsSignedInteger(fromType) ? PTY_i32 : PTY_u32); in SelectCvtInt2Float() 5675 if (IsSignedInteger(fromType) && (fsize < k32BitSize)) { in SelectCvtInt2Float() 5851 PrimType fromType = node.Opnd(0)->GetPrimType(); in SelectRetype() local 5853 …DEBUG_ASSERT(GetPrimTypeSize(fromType) == GetPrimTypeSize(toType), "retype bit widith doesn' match… in SelectRetype() 5854 if (LIsPrimitivePointer(fromType) && LIsPrimitivePointer(toType)) { in SelectRetype() 5857 if (IsPrimitiveVector(fromType) || IsPrimitiveVector(toType)) { in SelectRetype() 5862 if (IsPrimitiveInteger(fromType) || IsPrimitiveFloat(fromType)) { in SelectRetype() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/ |
D | x64_MPIsel.cpp | 1583 …4MPIsel::SelectRetypeFloat(RegOperand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType) in SelectRetypeFloat() argument 1585 uint32 fromSize = GetPrimTypeBitSize(fromType); in SelectRetypeFloat() 1588 RegOperand ®Opnd0 = SelectCopy2Reg(opnd0, fromType); in SelectRetypeFloat() 1591 mOp = IsPrimitiveFloat(fromType) ? x64::MOP_movd_fr_r : x64::MOP_begin; in SelectRetypeFloat() 1593 mOp = IsPrimitiveFloat(fromType) ? x64::MOP_movq_fr_r : x64::MOP_movq_r_fr; in SelectRetypeFloat()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | litecg_ir_builder.cpp | 952 LiteCGType *fromType = ConvertLiteCGTypeFromGate(e1); in VisitZExtInt() local 954 Expr result = lmirBuilder_->ZExt(fromType, toType, GetExprFromGate(e1)); in VisitZExtInt() 1362 LiteCGType *fromType = ConvertLiteCGTypeFromGate(e1); in VisitBitCast() local 1365 Expr result = lmirBuilder_->BitCast(fromType, toType, e1Value); in VisitBitCast() 1722 LiteCGType *fromType = ConvertLiteCGTypeFromGate(e1); in VisitSExtInt() local 1724 Expr result = lmirBuilder_->SExt(fromType, toType, e1Value); in VisitSExtInt()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/ |
D | aarch64_cgfunc.h | 945 …void SelectCvtInt2Int(const BaseNode *parent, Operand *&resOpnd, Operand *opnd0, PrimType fromType, 947 void SelectCvtFloat2Float(Operand &resOpnd, Operand &opnd0, PrimType fromType, PrimType toType); 949 void SelectCvtInt2Float(Operand &resOpnd, Operand &opnd0, PrimType toType, PrimType fromType);
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/ |
D | lower.cpp | 2576 MIRType *fromType = GlobalTables::GetTypeTable().GetPrimType(sType); in MergeToCvtType() local 2579 return mirBuilder->CreateExprRetype(*toType, *fromType, &src); in MergeToCvtType() 2584 return mirBuilder->CreateExprCompare(OP_ne, *toType, *fromType, &src, in MergeToCvtType() 2587 return mirBuilder->CreateExprTypeCvt(OP_cvt, *toType, *fromType, &src); in MergeToCvtType() 2589 return mirBuilder->CreateExprTypeCvt(OP_cvt, *toType, *fromType, &src); in MergeToCvtType() 2598 return mirBuilder->CreateExprTypeCvt(OP_cvt, *toType, *fromType, &src); in MergeToCvtType() 2710 PrimType fromType = cvtExpr.FromType(); in LowerExpr() local 2711 auto *fromMIRType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(fromType)); in LowerExpr()
|