Home
last modified time | relevance | path

Searched refs:structType (Results 1 – 25 of 35) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/include/
Dclass_hierarchy.h64 return structType->GetKind() == kTypeInterface; in IsInterface()
69 return structType->GetKind() == kTypeInterfaceIncomplete; in IsInterfaceIncomplete()
75 return structType->GetKind() == kTypeClass; in IsClass()
80 return structType->GetKind() == kTypeClassIncomplete; in IsClassIncomplete()
99 return structType->GetNameStrIdx(); in GetKlassNameStrIdx()
104 return structType->GetName(); in GetKlassName()
109 return structType->GetTypeIndex(); in GetTypeIdx()
114 return structType; in GetMIRStructType()
120 return static_cast<MIRClassType *>(structType); in GetMIRClassType()
126 return static_cast<MIRInterfaceType *>(structType); in GetMIRInterfaceType()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/
Dbecommon.cpp130 auto &structType = static_cast<MIRStructType &>(ty); in ComputeStructTypeSizesAligns() local
131 const FieldVector &fields = structType.GetFields(); in ComputeStructTypeSizesAligns()
134 SetStructFieldCount(structType.GetTypeIndex(), fields.size()); in ComputeStructTypeSizesAligns()
136 if (structType.IsCPlusPlus()) { in ComputeStructTypeSizesAligns()
145 auto structAttr = structType.GetTypeAttrs(); in ComputeStructTypeSizesAligns()
164 …AppendStructFieldCount(structType.GetTypeIndex(), GetStructFieldCount(subStructType->GetTypeIndex(… in ComputeStructTypeSizesAligns()
166 if (structType.GetKind() != kTypeUnion) { in ComputeStructTypeSizesAligns()
447 bool BECommon::IsRefField(MIRStructType &structType, FieldID fieldID) const in IsRefField() argument
449 if (structType.GetKind() == kTypeClass) { in IsRefField()
450 CHECK_FATAL(HasJClassLayout(static_cast<MIRClassType &>(structType)), in IsRefField()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
Dproepilog.cpp106 auto &structType = static_cast<const MIRStructType &>(type); in IncludeArray() local
108 auto num = static_cast<uint8>(structType.GetFieldsSize()); in IncludeArray()
110 MIRType *elemType = structType.GetElemType(i); in IncludeArray()
Dcg.cpp263 std::vector<int64> CG::GetReferenceOffsets64(const BECommon &beCommon, MIRStructType &structType) in GetReferenceOffsets64() argument
267 if (structType.GetKind() == kTypeClass) { in GetReferenceOffsets64()
268 for (auto fieldInfo : beCommon.GetJClassLayout(static_cast<MIRClassType &>(structType))) { in GetReferenceOffsets64()
273 … } else if (structType.GetKind() != kTypeInterface) { /* interface doesn't have reference fields */ in GetReferenceOffsets64()
275 AppendReferenceOffsets64(beCommon, structType, curOffset, result); in GetReferenceOffsets64()
Demit.cpp799 MIRStructType *structType = static_cast<MIRStructType *>(symAddrSym->GetType()); in EmitScalarConstant() local
800 … DEBUG_ASSERT(structType != nullptr, "EmitScalarConstant: non-zero fieldID for non-structure"); in EmitScalarConstant()
802 … Globals::GetInstance()->GetBECommon()->GetFieldOffset(*structType, symAddr.GetFieldID()).first); in EmitScalarConstant()
1296 MIRStructType &structType = static_cast<MIRStructType &>(ty); in GetFieldOffsetValue() local
1298 Globals::GetInstance()->GetBECommon()->GetFieldOffset(structType, fieldIdx); in GetFieldOffsetValue()
1774 MIRStructType &structType = static_cast<MIRStructType &>(mirType); in EmitStructConstant() local
1775 auto structPack = static_cast<uint8>(structType.GetTypeAttrs().GetPack()); in EmitStructConstant()
1778 if (structType.GetKind() == kTypeUnion) { in EmitStructConstant()
1781 num = static_cast<uint8>(structType.GetFieldsSize()); in EmitStructConstant()
1785 uint32 size = beCommon->GetTypeSize(structType.GetTypeIndex()); in EmitStructConstant()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
Dmir_builder.cpp29 void MIRBuilder::AddAddrofFieldConst(const MIRStructType &structType, MIRAggConst &newConst, uint32… in AddAddrofFieldConst() argument
34 … *structType.GetElemType(fieldID - 1)); in AddAddrofFieldConst()
39 void MIRBuilder::AddAddroffuncFieldConst(const MIRStructType &structType, MIRAggConst &newConst, ui… in AddAddroffuncFieldConst() argument
45 …fieldConst = GlobalTables::GetIntConstTable().GetOrCreateIntConst(0, *structType.GetElemType(field… in AddAddroffuncFieldConst()
50 … *structType.GetElemType(fieldID - 1)); in AddAddroffuncFieldConst()
57 bool MIRBuilder::TraverseToNamedField(MIRStructType &structType, GStrIdx nameIdx, uint32 &fieldID) in TraverseToNamedField() argument
60 …return TraverseToNamedFieldWithTypeAndMatchStyle(structType, nameIdx, tid, fieldID, kMatchAnyField… in TraverseToNamedField()
64 void MIRBuilder::TraverseToNamedFieldWithType(MIRStructType &structType, GStrIdx nameIdx, TyIdx typ… in TraverseToNamedFieldWithType() argument
67 if (structType.IsIncomplete()) { in TraverseToNamedFieldWithType()
68 (void)incompleteTypeRefedSet.insert(structType.GetTypeIndex()); in TraverseToNamedFieldWithType()
[all …]
Dmir_module.cpp251 auto *structType = static_cast<MIRStructType *>(type); in DumpGlobals() local
254 … externStructTypeSet.find(structType->GetTypeIndex()) == externStructTypeSet.end()) { in DumpGlobals()
257 if (structType->IsImported()) { in DumpGlobals()
414 auto *structType = static_cast<MIRStructType *>(type); in DumpDefType() local
415 if (structType->IsImported()) { in DumpDefType()
523 auto *structType = static_cast<MIRStructType *>(type); in DumpToHeaderFile() local
525 if (!structType->IsImported() && !structType->IsIncomplete()) { in DumpToHeaderFile()
Dparser.cpp828 MIRStructType structType(tkind, strIdx); in ParseStructType() local
830 if (!ParseTypeAttrs(structType.GetTypeAttrs())) { in ParseStructType()
840 structType.SetIsCPlusPlus(true); in ParseStructType()
842 if (!ParseFields(structType)) { in ParseStructType()
849 … if (static_cast<MIRStructType *>(prevType)->IsIncomplete() && !(structType.IsIncomplete())) { in ParseStructType()
850 structType.SetNameStrIdx(prevType->GetNameStrIdx()); in ParseStructType()
851 structType.SetTypeIndex(styIdx); in ParseStructType()
852 GlobalTables::GetTypeTable().SetTypeWithTyIdx(styIdx, *structType.CopyMIRTypeNode()); in ParseStructType()
861 structType.SetTypeIndex(prevTypeIdx); in ParseStructType()
862 … GlobalTables::GetTypeTable().SetTypeWithTyIdx(prevTypeIdx, *structType.CopyMIRTypeNode()); in ParseStructType()
[all …]
Dglobal_tables.cpp320 void TypeTable::AddFieldToStructType(MIRStructType &structType, const std::string &fieldName, const… in AddFieldToStructType() argument
325structType.GetFields().push_back(FieldPair(strIdx, TyIdxFieldAttrPair(fieldType.GetTypeIndex(), fi… in AddFieldToStructType()
Dmir_nodes.cpp102 auto *structType = static_cast<MIRStructType *>(ty); in CheckNode() local
103 TyIdx fTyIdx = structType->GetFieldTyIdx(fieldID); in CheckNode()
1882 MIRTypeKind GetFieldTypeKind(MIRStructType *structType, FieldID fieldId) in GetFieldTypeKind() argument
1886 MIRType *mirType = structType->GetFieldType(fieldId); in GetFieldTypeKind()
1889 DEBUG_ASSERT(static_cast<unsigned>(-fieldId) < structType->GetParentFieldsSize() + 1, in GetFieldTypeKind()
1891 fieldTyIdx = structType->GetParentFieldsElemt(-fieldId - 1).second.first; in GetFieldTypeKind()
Dbin_mpl_export.cpp873 auto *structType = static_cast<MIRStructType *>(type); in WriteTypeField() local
875 if (!structType->IsImported() && !structType->IsIncomplete()) { in WriteTypeField()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
Daarch64_call_conv.cpp103 uint32 ProcessStructWhenClassifyAggregate(const BECommon &be, MIRStructType &structType, in ProcessStructWhenClassifyAggregate() argument
109 … static_cast<uint32>(RoundUp(be.GetTypeSize(structType.GetTypeIndex()), k8ByteSize) >> k8BitShift); in ProcessStructWhenClassifyAggregate()
113 for (uint32 f = 0; f < structType.GetFieldsSize(); ++f) { in ProcessStructWhenClassifyAggregate()
114 TyIdx fieldTyIdx = structType.GetFieldsElemt(f).second.first; in ProcessStructWhenClassifyAggregate()
191 MIRStructType &structType = static_cast<MIRStructType &>(mirType); in ClassifyAggregate() local
192 …return static_cast<int32>(ProcessStructWhenClassifyAggregate(be, structType, classes, classesLengt… in ClassifyAggregate()
205 uint32 AArch64CallConvImpl::FloatParamRegRequired(MIRStructType &structType, uint32 &fpSize) in FloatParamRegRequired() argument
207 if (structType.GetSize() > k32ByteSize) { in FloatParamRegRequired()
211 …uint32 numRegs = ProcessStructWhenClassifyAggregate(beCommon, structType, classes, kMaxRegCount, f… in FloatParamRegRequired()
Daarch64_cgfunc.cpp1069 MIRStructType *structType = static_cast<MIRStructType *>(symbol->GetType()); in SelectDassign() local
1070 DEBUG_ASSERT(structType != nullptr, "SelectDassign: non-zero fieldID for non-structure"); in SelectDassign()
1071 offset = GetBecommon().GetFieldOffset(*structType, fieldId).first; in SelectDassign()
1080 MIRStructType *structType = static_cast<MIRStructType *>(type); in SelectDassign() local
1081 type = structType->GetFieldType(fieldId); in SelectDassign()
1657 MIRStructType *structType = static_cast<MIRStructType *>(lhsSymbol->GetType()); in SelectAggDassign() local
1658 DEBUG_ASSERT(structType != nullptr, "SelectAggDassign: non-zero fieldID for non-structure"); in SelectAggDassign()
1659 lhsType = structType->GetFieldType(stmt.GetFieldID()); in SelectAggDassign()
1660 …lhsOffset = static_cast<uint32>(GetBecommon().GetFieldOffset(*structType, stmt.GetFieldID()).first… in SelectAggDassign()
1661 bothUnion |= (structType->GetKind() == kTypeUnion); in SelectAggDassign()
[all …]
Daarch64_color_ra.cpp154 MIRStructType *structType = static_cast<MIRStructType *>(symbol->GetType()); in IsRematerializable() local
155 … DEBUG_ASSERT(structType != nullptr, "Rematerialize: non-zero fieldID for non-structure"); in IsRematerializable()
156 symType = structType->GetFieldType(fieldID)->GetPrimType(); in IsRematerializable()
157 offset = cgFunc.GetBecommon().GetFieldOffset(*structType, fieldID).first; in IsRematerializable()
202 MIRStructType *structType = static_cast<MIRStructType *>(symbol->GetType()); in Rematerialize() local
203 … DEBUG_ASSERT(structType != nullptr, "Rematerialize: non-zero fieldID for non-structure"); in Rematerialize()
204 symType = structType->GetFieldType(fieldID)->GetPrimType(); in Rematerialize()
205 offset = cgFunc->GetBecommon().GetFieldOffset(*structType, fieldID).first; in Rematerialize()
219 MIRStructType *structType = static_cast<MIRStructType *>(symbol->GetType()); in Rematerialize() local
220 … DEBUG_ASSERT(structType != nullptr, "Rematerialize: non-zero fieldID for non-structure"); in Rematerialize()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/be/
Dbecommon.h96 std::pair<int32, int32> GetFieldOffset(MIRStructType &structType, FieldID fieldID);
98 bool IsRefField(MIRStructType &structType, FieldID fieldID) const;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/
Dclass_hierarchy.cpp49 : structType(type), in Klass()
88 …LogInfo::MapleLogger() << " \t@implbyclass_idx " << implKlass->structType->GetTypeIndex() << "\n… in DumpKlassImplKlasses()
99 …LogInfo::MapleLogger() << " \t@implinterface_idx " << interface->structType->GetTypeIndex() << "… in DumpKlassImplInterfaces()
110 …LogInfo::MapleLogger() << " \t@superclass_idx " << superKlass->structType->GetTypeIndex() << "\n… in DumpKlassSuperKlasses()
121 … LogInfo::MapleLogger() << " \t@subclass_idx " << subKlass->structType->GetTypeIndex() << "\n"; in DumpKlassSubKlasses()
128 …LogInfo::MapleLogger() << "class \" " << GetKlassName() << " \" @class_id " << structType->GetType… in Dump()
203 if (structType->IsIncomplete()) { in GetUniqueMethod()
Dsimplify.cpp1070 auto *structType = static_cast<MIRStructType *>(memType); in ExpandMemset() local
1074 size_t structSize = structType->GetSize(); in ExpandMemset()
1075 size_t numFields = structType->NumberOfFieldIDs(); in ExpandMemset()
1078 …(structSize <= maxStructSize && (structSize / numFields >= minFieldSize) && !structType->HasPaddin… in ExpandMemset()
1088 auto *fieldType = structType->GetFieldType(id); in ExpandMemset()
1103 MIRType *fieldType = structType->GetFieldType(id); in ExpandMemset()
Dconstantfold.cpp1565 MIRStructType *structType = dynamic_cast<MIRStructType *>(mirType); in ExtractbitsRedundant() local
1566 if (structType == nullptr) { in ExtractbitsRedundant()
1569 mirType = structType->GetFieldType(dread->GetFieldID()); in ExtractbitsRedundant()
1580 MIRStructType *structType = dynamic_cast<MIRStructType *>(mirType); in ExtractbitsRedundant() local
1581 if (structType == nullptr) { in ExtractbitsRedundant()
1584 mirType = structType->GetFieldType(iread->GetFieldID()); in ExtractbitsRedundant()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
Dmir_builder.h127 bool TraverseToNamedField(MIRStructType &structType, GStrIdx nameIdx, uint32 &fieldID);
128 …bool TraverseToNamedFieldWithTypeAndMatchStyle(MIRStructType &structType, GStrIdx nameIdx, TyIdx t…
130 …void TraverseToNamedFieldWithType(MIRStructType &structType, GStrIdx nameIdx, TyIdx typeIdx, uint3…
141 …void SetStructFieldIDFromFieldName(MIRStructType &structType, const std::string &name, GStrIdx new…
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/
Dx64_emitter.cpp1624 MIRStructType &structType = static_cast<MIRStructType &>(mirType); in EmitStructure() local
1625 uint8 structPack = static_cast<uint8>(structType.GetTypeAttrs().GetPack()); in EmitStructure()
1627 MIRTypeKind structKind = structType.GetKind(); in EmitStructure()
1629 uint8 num = structKind == kTypeUnion ? 1 : static_cast<uint8>(structType.GetFieldsSize()); in EmitStructure()
1632 uint64 sizeInByte = GetSymbolSize(structType.GetTypeIndex()); in EmitStructure()
1637 …MIRType *elemType = structKind == kTypeUnion ? &(elemConst->GetType()) : structType.GetElemType(i); in EmitStructure()
1638 …MIRType *nextElemType = i != static_cast<uint32>(num - 1) ? structType.GetElemType(i + 1) : nullpt… in EmitStructure()
1647 pair<int32, int32> fieldOffsetPair = beCommon->GetFieldOffset(structType, fieldIdx); in EmitStructure()
1678 auto fieldAttr = structType.GetFields()[i + 1].second.second; in EmitStructure()
1693 if (structType.GetKind() == kTypeStruct) { in EmitStructure()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/include/
Dorig_symbol.h95 MIRStructType *structType = static_cast<MIRStructType *>( in HasOneElemSimdAttr() local
97 FieldAttrs fattrs = structType->GetFieldAttrs(fieldID); in HasOneElemSimdAttr()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
Daarch64_cgfunc.h498 uint32 FloatParamRegRequired(MIRStructType *structType, uint32 &fpSize) override;
923 …void SelectParmListDreadSmallAggregate(const MIRSymbol &sym, MIRType &structType, ListOperand &src…
925 …void SelectParmListIreadSmallAggregate(const IreadNode &iread, MIRType &structType, ListOperand &s…
927 …void SelectParmListDreadLargeAggregate(const MIRSymbol &sym, MIRType &structType, ListOperand &src…
929 …void SelectParmListIreadLargeAggregate(const IreadNode &iread, MIRType &structType, ListOperand &s…
931 …void CreateCallStructMemcpyToParamReg(MIRType &structType, int32 structCopyOffset, AArch64CallConv…
Daarch64_call_conv.h48 uint32 FloatParamRegRequired(MIRStructType &structType, uint32 &fpSize);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
Dcg.h404 std::vector<int64> GetReferenceOffsets64(const BECommon &beCommon, MIRStructType &structType);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/litecg/
Dlmir_builder.h283 FieldOffset GetFieldOffset(StructType *structType, FieldId fieldId);

12