Lines Matching defs:StructInfo
125 struct StructInfo {
139 StructInfo() = default;
140 StructInfo(StringRef StructName, bool Union, unsigned AlignmentValue);
165 StructInfo Structure;
168 StructFieldInfo(std::vector<StructInitializer> V, StructInfo S);
177 StructFieldInfo StructInfo;
186 struct StructInfo Structure);
218 StructInfo S) {
223 StructInfo::StructInfo(StringRef StructName, bool Union,
227 FieldInfo &StructInfo::addField(StringRef FieldName, FieldType FT,
251 StructInfo.~StructFieldInfo();
265 new (&StructInfo) StructFieldInfo();
281 std::vector<StructInitializer> &&Initializers, struct StructInfo Structure)
283 new (&StructInfo) StructFieldInfo(std::move(Initializers), Structure);
296 new (&StructInfo) StructFieldInfo(Initializer.StructInfo);
311 new (&StructInfo) StructFieldInfo(Initializer.StructInfo);
327 StructInfo.~StructFieldInfo();
340 StructInfo = Initializer.StructInfo;
356 StructInfo.~StructFieldInfo();
369 StructInfo = Initializer.StructInfo;
418 SmallVector<StructInfo, 1> StructInProgress;
421 StringMap<StructInfo> Structs;
626 bool lookUpField(const StructInfo &Structure, StringRef Member,
895 bool parseStructInitializer(const StructInfo &Structure,
898 const StructInfo &Structure, std::vector<StructInitializer> &Initializers,
918 bool emitStructInitializer(const StructInfo &Structure,
922 bool emitStructValues(const StructInfo &Structure, unsigned *Count = nullptr);
923 bool addStructField(StringRef Name, const StructInfo &Structure);
924 bool parseDirectiveStructValue(const StructInfo &Structure,
926 bool parseDirectiveNamedStructValue(const StructInfo &Structure,
3736 StructInfo &Struct = StructInProgress.back();
3941 StructInfo &Struct = StructInProgress.back();
4171 return parseFieldInitializer(Field, Field.Contents.StructInfo, Initializer);
4176 bool MasmParser::parseStructInitializer(const StructInfo &Structure,
4237 const StructInfo &Structure, std::vector<StructInitializer> &Initializers,
4319 return emitFieldValue(Field, Field.Contents.StructInfo);
4382 return emitFieldInitializer(Field, Field.Contents.StructInfo,
4383 Initializer.StructInfo);
4388 bool MasmParser::emitStructInitializer(const StructInfo &Structure,
4417 bool MasmParser::emitStructValues(const StructInfo &Structure,
4434 bool MasmParser::addStructField(StringRef Name, const StructInfo &Structure) {
4435 StructInfo &OwningStruct = StructInProgress.back();
4438 StructFieldInfo &StructInfo = Field.Contents.StructInfo;
4440 StructInfo.Structure = Structure;
4443 if (parseStructInstList(Structure, StructInfo.Initializers))
4446 Field.LengthOf = StructInfo.Initializers.size();
4461 bool MasmParser::parseDirectiveStructValue(const StructInfo &Structure,
4475 bool MasmParser::parseDirectiveNamedStructValue(const StructInfo &Structure,
4575 StructInfo Structure = StructInProgress.pop_back_val();
4597 StructInfo Structure = StructInProgress.pop_back_val();
4601 StructInfo &ParentStruct = StructInProgress.back();
4637 StructFieldInfo &StructInfo = Field.Contents.StructInfo;
4648 StructInfo.Structure = Structure;
4649 StructInfo.Initializers.emplace_back();
4650 auto &FieldInitializers = StructInfo.Initializers.back().FieldInitializers;
4677 StructInfo &Structure = StructInProgress.back();
4718 StructInfo &Structure = StructInProgress.back();
7263 bool MasmParser::lookUpField(const StructInfo &Structure, StringRef Member,
7291 Info.Type.Name = Field.Contents.StructInfo.Structure.Name;
7299 const StructFieldInfo &StructInfo = Field.Contents.StructInfo;
7301 if (lookUpField(StructInfo.Structure, FieldMember, Info))
7329 const StructInfo &Structure = StructIt->second;