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;
628 bool lookUpField(const StructInfo &Structure, StringRef Member,
897 bool parseStructInitializer(const StructInfo &Structure,
900 const StructInfo &Structure, std::vector<StructInitializer> &Initializers,
920 bool emitStructInitializer(const StructInfo &Structure,
924 bool emitStructValues(const StructInfo &Structure, unsigned *Count = nullptr);
925 bool addStructField(StringRef Name, const StructInfo &Structure);
926 bool parseDirectiveStructValue(const StructInfo &Structure,
928 bool parseDirectiveNamedStructValue(const StructInfo &Structure,
3737 StructInfo &Struct = StructInProgress.back();
3942 StructInfo &Struct = StructInProgress.back();
4172 return parseFieldInitializer(Field, Field.Contents.StructInfo, Initializer);
4177 bool MasmParser::parseStructInitializer(const StructInfo &Structure,
4238 const StructInfo &Structure, std::vector<StructInitializer> &Initializers,
4320 return emitFieldValue(Field, Field.Contents.StructInfo);
4383 return emitFieldInitializer(Field, Field.Contents.StructInfo,
4384 Initializer.StructInfo);
4389 bool MasmParser::emitStructInitializer(const StructInfo &Structure,
4418 bool MasmParser::emitStructValues(const StructInfo &Structure,
4435 bool MasmParser::addStructField(StringRef Name, const StructInfo &Structure) {
4436 StructInfo &OwningStruct = StructInProgress.back();
4439 StructFieldInfo &StructInfo = Field.Contents.StructInfo;
4441 StructInfo.Structure = Structure;
4444 if (parseStructInstList(Structure, StructInfo.Initializers))
4447 Field.LengthOf = StructInfo.Initializers.size();
4462 bool MasmParser::parseDirectiveStructValue(const StructInfo &Structure,
4476 bool MasmParser::parseDirectiveNamedStructValue(const StructInfo &Structure,
4576 StructInfo Structure = StructInProgress.pop_back_val();
4598 StructInfo Structure = StructInProgress.pop_back_val();
4602 StructInfo &ParentStruct = StructInProgress.back();
4638 StructFieldInfo &StructInfo = Field.Contents.StructInfo;
4649 StructInfo.Structure = Structure;
4650 StructInfo.Initializers.emplace_back();
4651 auto &FieldInitializers = StructInfo.Initializers.back().FieldInitializers;
4678 StructInfo &Structure = StructInProgress.back();
4719 StructInfo &Structure = StructInProgress.back();
7265 bool MasmParser::lookUpField(const StructInfo &Structure, StringRef Member,
7293 Info.Type.Name = Field.Contents.StructInfo.Structure.Name;
7301 const StructFieldInfo &StructInfo = Field.Contents.StructInfo;
7303 if (lookUpField(StructInfo.Structure, FieldMember, Info))
7331 const StructInfo &Structure = StructIt->second;