Home
last modified time | relevance | path

Searched refs:pType (Results 1 - 14 of 14) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
H A Dmpl_int_val.h266 /// obtained from pType depending on their original signedness;
270 bool Equal(const IntVal &rhs, PrimType pType) const in Equal()
272 return TruncOrExtend(pType) == rhs.TruncOrExtend(pType); in Equal()
275 bool Less(const IntVal &rhs, PrimType pType) const in Less()
277 return TruncOrExtend(pType) < rhs.TruncOrExtend(pType); in Less()
280 bool Greater(const IntVal &rhs, PrimType pType) const in Greater()
282 return TruncOrExtend(pType) > rhs.TruncOrExtend(pType); in Greater()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
H A Dmir_type.cpp32 const PrimitiveTypeProperty &GetPrimitiveTypeProperty(PrimType pType) in GetPrimitiveTypeProperty() argument
34 switch (pType) { in GetPrimitiveTypeProperty()
480 const auto &pType = static_cast<const MIRPtrType &>(type); in EqualTo() local
481 return pointedTyIdx == pType.GetPointedTyIdx() && typeAttrs == pType.GetTypeAttrs(); in EqualTo()
489 const auto &pType = static_cast<const MIRArrayType &>(type); in EqualTo() local
490 if (dim != pType.GetDim() || eTyIdx != pType.GetElemTyIdx() || typeAttrs != pType.GetTypeAttrs()) { in EqualTo()
494 if (GetSizeArrayItem(i) != pType in EqualTo()
527 const auto &pType = static_cast<const MIRFuncType &>(type); EqualTo() local
[all...]
H A Dglobal_tables.cpp82 MIRType *TypeTable::CreateAndUpdateMirTypeNode(MIRType &pType) in CreateAndUpdateMirTypeNode() argument
84 MIRType *nType = pType.CopyMIRTypeNode(); in CreateAndUpdateMirTypeNode()
88 if (pType.IsMIRPtrType()) { in CreateAndUpdateMirTypeNode()
89 auto &pty = static_cast<MIRPtrType &>(pType); in CreateAndUpdateMirTypeNode()
105 MIRType *TypeTable::GetOrCreateMIRTypeNode(MIRType &pType) in GetOrCreateMIRTypeNode() argument
107 if (pType.IsMIRPtrType()) { in GetOrCreateMIRTypeNode()
108 auto &type = static_cast<MIRPtrType &>(pType); in GetOrCreateMIRTypeNode()
124 return CreateAndUpdateMirTypeNode(pType); in GetOrCreateMIRTypeNode()
129 const auto it = typeHashTable.find(&pType); in GetOrCreateMIRTypeNode()
135 return CreateAndUpdateMirTypeNode(pType); in GetOrCreateMIRTypeNode()
[all...]
H A Dmir_function.cpp454 PrimType pType = mirType->GetPrimType(); in EnterFormals() local
456 if (pType != PTY_ref && pType != PTY_ptr) { in EnterFormals()
458 } else if (pType == PTY_ptr && mirType->IsMIRPtrType()) { in EnterFormals()
464 PregIdx pregIdx = pregTab->EnterPregNo(thepregno, pType, mirType); in EnterFormals()
H A Dmir_const.cpp288 bool IsDivSafe(const MIRIntConst &dividend, const MIRIntConst &divisor, PrimType pType) in IsDivSafe() argument
290 if (IsUnsignedInteger(pType)) { in IsDivSafe()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
H A Dcall_conv.h114 LmbcFormalParamInfo(PrimType pType, uint32 ofst, uint32 sz) in LmbcFormalParamInfo() argument
115 : primType(pType), in LmbcFormalParamInfo()
136 void SetPrimType(PrimType pType) in SetPrimType() argument
138 primType = pType; in SetPrimType()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/
H A Dx64_memlayout.cpp135 PrimType pType = pregTab->PregFromPregIdx(i)->GetPrimType(); in AssignSpillLocationsToPseudoRegisters() local
138 segLocals.SetSize(RoundUp(segLocals.GetSize(), GetPrimTypeSize(pType))); in AssignSpillLocationsToPseudoRegisters()
140 MIRType *mirTy = GlobalTables::GetTypeTable().GetTypeTable()[pType]; in AssignSpillLocationsToPseudoRegisters()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/
H A Dlower.cpp112 BaseNode *CGLowerer::NeedRetypeWhenLowerCallAssigned(PrimType pType) in NeedRetypeWhenLowerCallAssigned() argument
114 BaseNode *retNode = mirModule.GetMIRBuilder()->CreateExprRegread(pType, -kSregRetval0); in NeedRetypeWhenLowerCallAssigned()
115 if (IsPrimitiveInteger(pType) && GetPrimTypeBitSize(pType) <= k32BitSize) { in NeedRetypeWhenLowerCallAssigned()
116 auto newPty = IsPrimitiveUnsigned(pType) ? PTY_u64 : PTY_i64; in NeedRetypeWhenLowerCallAssigned()
117 retNode = mirModule.GetMIRBuilder()->CreateExprTypeCvt(OP_cvt, newPty, pType, *retNode); in NeedRetypeWhenLowerCallAssigned()
132 PrimType pType; in SaveReturnValueInLocal() local
134 pType = PTY_f64; in SaveReturnValueInLocal()
136 pType = GlobalTables::GetTypeTable().GetTypeTable().at(var->GetTyIdx())->GetPrimType(); in SaveReturnValueInLocal()
138 auto *regRead = NeedRetypeWhenLowerCallAssigned(pType); in SaveReturnValueInLocal()
278 PrimType pType = mirPreg->GetPrimType(); GenBlockNode() local
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
H A Dcfg_primitive_types.h107 const PrimitiveTypeProperty &GetPrimitiveTypeProperty(PrimType pType);
H A Dmir_const.h128 [[maybe_unused]] PrimType pType = type.GetPrimType(); in MIRIntConst() local
130 IsPrimitiveInteger(pType) && GetPrimTypeActualBitSize(pType) <= value.GetBitWidth(), in MIRIntConst()
687 bool IsDivSafe(const MIRIntConst &dividend, const MIRIntConst &divisor, PrimType pType);
H A Dmir_type.h702 MIRType(MIRTypeKind kind, PrimType pType) : typeKind(kind), primType(pType) {} in MIRType() argument
706 MIRType(MIRTypeKind kind, PrimType pType, GStrIdx strIdx) : typeKind(kind), primType(pType), nameStrIdx(strIdx) {} in MIRType() argument
H A Dglobal_tables.h156 TyIdx GetOrCreateMIRType(MIRType *pType)
158 return GetOrCreateMIRTypeNode(*pType)->GetTypeIndex();
354 MIRType *CreateAndUpdateMirTypeNode(MIRType &pType);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/be/
H A Dlower.h116 BaseNode *NeedRetypeWhenLowerCallAssigned(PrimType pType);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
H A Daarch64_cgfunc.cpp1293 PrimType pType = static_cast<CompareNode *>(condNode)->GetOpndType(); in SelectCondSpecialCase1() local
1294 isFloat = IsPrimitiveFloat(pType); in SelectCondSpecialCase1()
1297 IsPrimitiveInteger(pType) ? IsSignedInteger(pType) : (IsSignedInteger(condNode->GetPrimType()) ? true : false); in SelectCondSpecialCase1()
1344 PrimType pType; in SelectCondGoto() local
1347 pType = static_cast<CompareNode *>(condNode)->GetOpndType(); in SelectCondGoto()
1349 /* not a compare node; dread for example, take its pType */ in SelectCondGoto()
1351 pType = condNode->GetPrimType(); in SelectCondGoto()
1353 bool signedCond = IsSignedInteger(pType) || IsPrimitiveFloat(pType); in SelectCondGoto()
[all...]

Completed in 20 milliseconds