• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/MC/MCParser/

Lines Matching refs:Structure

160   StructInfo Structure;
165 Structure = S;
169 Structure = S;
219 struct StructInfo Structure)
221 new (&StructInfo) StructFieldInfo(Initializers, Structure);
566 bool lookUpField(const StructInfo &Structure, StringRef Member,
786 bool parseStructInitializer(const StructInfo &Structure,
789 const StructInfo &Structure, std::vector<StructInitializer> &Initializers,
797 bool emitStructValue(const StructInfo &Structure);
811 bool emitStructInitializer(const StructInfo &Structure,
815 bool emitStructValues(const StructInfo &Structure);
816 bool addStructField(StringRef Name, const StructInfo &Structure);
817 bool parseDirectiveStructValue(const StructInfo &Structure,
819 bool parseDirectiveNamedStructValue(const StructInfo &Structure,
2254 return parseDirectiveStructValue(/*Structure=*/IDIt->getValue(), IDVal,
2344 return parseDirectiveNamedStructValue(/*Structure=*/NextIt->getValue(),
3634 if (parseStructInstList(Contents.Structure, Initializers,
3639 if (parseStructInstList(Contents.Structure, Initializers,
3648 if (parseStructInitializer(Contents.Structure, Initializers.back()))
3662 Initializer = FieldInitializer(std::move(Initializers), Contents.Structure);
3679 bool MasmParser::parseStructInitializer(const StructInfo &Structure,
3703 FieldIndex < Structure.Fields.size()) {
3704 const FieldInfo &Field = Structure.Fields[FieldIndex++];
3720 if (FieldIndex == Structure.Fields.size())
3721 return Error(CommaLoc, "'" + Structure.Name +
3727 for (auto It = Structure.Fields.begin() + FieldIndex;
3728 It != Structure.Fields.end(); ++It) {
3744 const StructInfo &Structure, std::vector<StructInitializer> &Initializers,
3767 parseStructInstList(Structure, DuplicatedValues) ||
3776 if (parseStructInitializer(Structure, Initializers.back()))
3812 for (const auto &SubField : Contents.Structure.Fields) {
3833 bool MasmParser::emitStructValue(const StructInfo &Structure) {
3835 for (const auto &Field : Structure.Fields) {
3842 if (Offset != Structure.Size)
3843 getStreamer().emitZeros(Structure.Size - Offset);
3885 emitStructInitializer(Contents.Structure, Init);
3892 emitStructInitializer(Contents.Structure, Init);
3913 bool MasmParser::emitStructInitializer(const StructInfo &Structure,
3917 const auto &Field = Structure.Fields[Index++];
3925 Structure.Fields.begin() + Initializer.FieldInitializers.size();
3926 It != Structure.Fields.end(); ++It) {
3934 if (Offset != Structure.Size)
3935 getStreamer().emitZeros(Structure.Size - Offset);
3940 bool MasmParser::emitStructValues(const StructInfo &Structure) {
3942 if (parseStructInstList(Structure, Initializers))
3946 if (emitStructInitializer(Structure, Initializer))
3954 bool MasmParser::addStructField(StringRef Name, const StructInfo &Structure) {
3959 StructInfo.Structure = Structure;
3960 Field.Type = Structure.Size;
3962 if (parseStructInstList(Structure, StructInfo.Initializers))
3978 bool MasmParser::parseDirectiveStructValue(const StructInfo &Structure,
3981 if (emitStructValues(Structure))
3983 } else if (addStructField("", Structure)) {
3992 bool MasmParser::parseDirectiveNamedStructValue(const StructInfo &Structure,
3999 KnownType[Name] = &Structure;
4000 if (emitStructValues(Structure))
4002 } else if (addStructField(Name, Structure)) {
4083 StructInfo Structure = StructInProgress.pop_back_val();
4085 Structure.Size = llvm::alignTo(Structure.Size, Structure.Alignment);
4086 Structs[Name.lower()] = Structure;
4103 StructInfo Structure = StructInProgress.pop_back_val();
4105 Structure.Size = llvm::alignTo(Structure.Size, Structure.Alignment);
4108 if (Structure.Name.empty()) {
4112 std::make_move_iterator(Structure.Fields.begin()),
4113 std::make_move_iterator(Structure.Fields.end()));
4114 for (const auto &FieldByName : Structure.FieldsByName) {
4126 ParentStruct.Size = std::max(ParentStruct.Size, Structure.Size);
4128 ParentStruct.Size += Structure.Size;
4130 FieldInfo &Field = ParentStruct.addField(Structure.Name, FT_STRUCT);
4132 Field.Type = Structure.Size;
4134 Field.SizeOf = Structure.Size;
4141 StructInfo.Structure = Structure;
4144 for (const auto &SubField : Structure.Fields) {
6566 bool MasmParser::lookUpField(const StructInfo &Structure, StringRef Member,
6569 Type = Structure.Name;
6580 auto FieldIt = Structure.FieldsByName.find(FieldName.lower());
6581 if (FieldIt == Structure.FieldsByName.end())
6584 const FieldInfo &Field = Structure.Fields[FieldIt->second];
6588 Type = Field.Contents.StructInfo.Structure.Name;
6596 bool Result = lookUpField(StructInfo.Structure, FieldMember, Type, Offset);