Lines Matching full:record
159 // Emit the finished record. in WriteStringRecord()
277 SmallVector<uint64_t, 64> Record; in WriteAttributeGroupTable() local
283 Record.push_back(VE.getAttributeGroupID(A)); in WriteAttributeGroupTable()
284 Record.push_back(AS.getSlotIndex(i)); in WriteAttributeGroupTable()
290 Record.push_back(0); in WriteAttributeGroupTable()
291 Record.push_back(getAttrKindEncoding(Attr.getKindAsEnum())); in WriteAttributeGroupTable()
293 Record.push_back(1); in WriteAttributeGroupTable()
294 Record.push_back(getAttrKindEncoding(Attr.getKindAsEnum())); in WriteAttributeGroupTable()
295 Record.push_back(Attr.getValueAsInt()); in WriteAttributeGroupTable()
300 Record.push_back(Val.empty() ? 3 : 4); in WriteAttributeGroupTable()
301 Record.append(Kind.begin(), Kind.end()); in WriteAttributeGroupTable()
302 Record.push_back(0); in WriteAttributeGroupTable()
304 Record.append(Val.begin(), Val.end()); in WriteAttributeGroupTable()
305 Record.push_back(0); in WriteAttributeGroupTable()
310 Stream.EmitRecord(bitc::PARAMATTR_GRP_CODE_ENTRY, Record); in WriteAttributeGroupTable()
311 Record.clear(); in WriteAttributeGroupTable()
325 SmallVector<uint64_t, 64> Record; in WriteAttributeTable() local
329 Record.push_back(VE.getAttributeGroupID(A.getSlotAttributes(i))); in WriteAttributeTable()
331 Stream.EmitRecord(bitc::PARAMATTR_CODE_ENTRY, Record); in WriteAttributeTable()
332 Record.clear(); in WriteAttributeTable()
491 // Emit the finished record. in WriteTypeTable()
587 /// Write a record that will eventually hold the word offset of the
783 // Write a record indicating the number of module-level metadata IDs in WriteModuleInfo()
833 SmallVectorImpl<uint64_t> &Record) { in WriteValueAsMetadata() argument
836 Record.push_back(VE.getTypeID(V->getType())); in WriteValueAsMetadata()
837 Record.push_back(VE.getValueID(V)); in WriteValueAsMetadata()
838 Stream.EmitRecord(bitc::METADATA_VALUE, Record, 0); in WriteValueAsMetadata()
839 Record.clear(); in WriteValueAsMetadata()
844 SmallVectorImpl<uint64_t> &Record, unsigned Abbrev) { in WriteMDTuple() argument
849 Record.push_back(VE.getMetadataOrNullID(MD)); in WriteMDTuple()
853 Record, Abbrev); in WriteMDTuple()
854 Record.clear(); in WriteMDTuple()
859 SmallVectorImpl<uint64_t> &Record, in WriteDILocation() argument
861 Record.push_back(N->isDistinct()); in WriteDILocation()
862 Record.push_back(N->getLine()); in WriteDILocation()
863 Record.push_back(N->getColumn()); in WriteDILocation()
864 Record.push_back(VE.getMetadataID(N->getScope())); in WriteDILocation()
865 Record.push_back(VE.getMetadataOrNullID(N->getInlinedAt())); in WriteDILocation()
867 Stream.EmitRecord(bitc::METADATA_LOCATION, Record, Abbrev); in WriteDILocation()
868 Record.clear(); in WriteDILocation()
874 SmallVectorImpl<uint64_t> &Record, in WriteGenericDINode() argument
876 Record.push_back(N->isDistinct()); in WriteGenericDINode()
877 Record.push_back(N->getTag()); in WriteGenericDINode()
878 Record.push_back(0); // Per-tag version field; unused for now. in WriteGenericDINode()
881 Record.push_back(VE.getMetadataOrNullID(I)); in WriteGenericDINode()
883 Stream.EmitRecord(bitc::METADATA_GENERIC_DEBUG, Record, Abbrev); in WriteGenericDINode()
884 Record.clear(); in WriteGenericDINode()
894 SmallVectorImpl<uint64_t> &Record, in WriteDISubrange() argument
896 Record.push_back(N->isDistinct()); in WriteDISubrange()
897 Record.push_back(N->getCount()); in WriteDISubrange()
898 Record.push_back(rotateSign(N->getLowerBound())); in WriteDISubrange()
900 Stream.EmitRecord(bitc::METADATA_SUBRANGE, Record, Abbrev); in WriteDISubrange()
901 Record.clear(); in WriteDISubrange()
906 SmallVectorImpl<uint64_t> &Record, in WriteDIEnumerator() argument
908 Record.push_back(N->isDistinct()); in WriteDIEnumerator()
909 Record.push_back(rotateSign(N->getValue())); in WriteDIEnumerator()
910 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in WriteDIEnumerator()
912 Stream.EmitRecord(bitc::METADATA_ENUMERATOR, Record, Abbrev); in WriteDIEnumerator()
913 Record.clear(); in WriteDIEnumerator()
918 SmallVectorImpl<uint64_t> &Record, in WriteDIBasicType() argument
920 Record.push_back(N->isDistinct()); in WriteDIBasicType()
921 Record.push_back(N->getTag()); in WriteDIBasicType()
922 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in WriteDIBasicType()
923 Record.push_back(N->getSizeInBits()); in WriteDIBasicType()
924 Record.push_back(N->getAlignInBits()); in WriteDIBasicType()
925 Record.push_back(N->getEncoding()); in WriteDIBasicType()
927 Stream.EmitRecord(bitc::METADATA_BASIC_TYPE, Record, Abbrev); in WriteDIBasicType()
928 Record.clear(); in WriteDIBasicType()
934 SmallVectorImpl<uint64_t> &Record, in WriteDIDerivedType() argument
936 Record.push_back(N->isDistinct()); in WriteDIDerivedType()
937 Record.push_back(N->getTag()); in WriteDIDerivedType()
938 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in WriteDIDerivedType()
939 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in WriteDIDerivedType()
940 Record.push_back(N->getLine()); in WriteDIDerivedType()
941 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in WriteDIDerivedType()
942 Record.push_back(VE.getMetadataOrNullID(N->getBaseType())); in WriteDIDerivedType()
943 Record.push_back(N->getSizeInBits()); in WriteDIDerivedType()
944 Record.push_back(N->getAlignInBits()); in WriteDIDerivedType()
945 Record.push_back(N->getOffsetInBits()); in WriteDIDerivedType()
946 Record.push_back(N->getFlags()); in WriteDIDerivedType()
947 Record.push_back(VE.getMetadataOrNullID(N->getExtraData())); in WriteDIDerivedType()
949 Stream.EmitRecord(bitc::METADATA_DERIVED_TYPE, Record, Abbrev); in WriteDIDerivedType()
950 Record.clear(); in WriteDIDerivedType()
956 SmallVectorImpl<uint64_t> &Record, in WriteDICompositeType() argument
958 Record.push_back(N->isDistinct()); in WriteDICompositeType()
959 Record.push_back(N->getTag()); in WriteDICompositeType()
960 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in WriteDICompositeType()
961 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in WriteDICompositeType()
962 Record.push_back(N->getLine()); in WriteDICompositeType()
963 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in WriteDICompositeType()
964 Record.push_back(VE.getMetadataOrNullID(N->getBaseType())); in WriteDICompositeType()
965 Record.push_back(N->getSizeInBits()); in WriteDICompositeType()
966 Record.push_back(N->getAlignInBits()); in WriteDICompositeType()
967 Record.push_back(N->getOffsetInBits()); in WriteDICompositeType()
968 Record.push_back(N->getFlags()); in WriteDICompositeType()
969 Record.push_back(VE.getMetadataOrNullID(N->getElements().get())); in WriteDICompositeType()
970 Record.push_back(N->getRuntimeLang()); in WriteDICompositeType()
971 Record.push_back(VE.getMetadataOrNullID(N->getVTableHolder())); in WriteDICompositeType()
972 Record.push_back(VE.getMetadataOrNullID(N->getTemplateParams().get())); in WriteDICompositeType()
973 Record.push_back(VE.getMetadataOrNullID(N->getRawIdentifier())); in WriteDICompositeType()
975 Stream.EmitRecord(bitc::METADATA_COMPOSITE_TYPE, Record, Abbrev); in WriteDICompositeType()
976 Record.clear(); in WriteDICompositeType()
982 SmallVectorImpl<uint64_t> &Record, in WriteDISubroutineType() argument
984 Record.push_back(N->isDistinct()); in WriteDISubroutineType()
985 Record.push_back(N->getFlags()); in WriteDISubroutineType()
986 Record.push_back(VE.getMetadataOrNullID(N->getTypeArray().get())); in WriteDISubroutineType()
988 Stream.EmitRecord(bitc::METADATA_SUBROUTINE_TYPE, Record, Abbrev); in WriteDISubroutineType()
989 Record.clear(); in WriteDISubroutineType()
994 SmallVectorImpl<uint64_t> &Record, unsigned Abbrev) { in WriteDIFile() argument
995 Record.push_back(N->isDistinct()); in WriteDIFile()
996 Record.push_back(VE.getMetadataOrNullID(N->getRawFilename())); in WriteDIFile()
997 Record.push_back(VE.getMetadataOrNullID(N->getRawDirectory())); in WriteDIFile()
999 Stream.EmitRecord(bitc::METADATA_FILE, Record, Abbrev); in WriteDIFile()
1000 Record.clear(); in WriteDIFile()
1006 SmallVectorImpl<uint64_t> &Record, in WriteDICompileUnit() argument
1009 Record.push_back(/* IsDistinct */ true); in WriteDICompileUnit()
1010 Record.push_back(N->getSourceLanguage()); in WriteDICompileUnit()
1011 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in WriteDICompileUnit()
1012 Record.push_back(VE.getMetadataOrNullID(N->getRawProducer())); in WriteDICompileUnit()
1013 Record.push_back(N->isOptimized()); in WriteDICompileUnit()
1014 Record.push_back(VE.getMetadataOrNullID(N->getRawFlags())); in WriteDICompileUnit()
1015 Record.push_back(N->getRuntimeVersion()); in WriteDICompileUnit()
1016 Record.push_back(VE.getMetadataOrNullID(N->getRawSplitDebugFilename())); in WriteDICompileUnit()
1017 Record.push_back(N->getEmissionKind()); in WriteDICompileUnit()
1018 Record.push_back(VE.getMetadataOrNullID(N->getEnumTypes().get())); in WriteDICompileUnit()
1019 Record.push_back(VE.getMetadataOrNullID(N->getRetainedTypes().get())); in WriteDICompileUnit()
1020 Record.push_back(VE.getMetadataOrNullID(N->getSubprograms().get())); in WriteDICompileUnit()
1021 Record.push_back(VE.getMetadataOrNullID(N->getGlobalVariables().get())); in WriteDICompileUnit()
1022 Record.push_back(VE.getMetadataOrNullID(N->getImportedEntities().get())); in WriteDICompileUnit()
1023 Record.push_back(N->getDWOId()); in WriteDICompileUnit()
1024 Record.push_back(VE.getMetadataOrNullID(N->getMacros().get())); in WriteDICompileUnit()
1026 Stream.EmitRecord(bitc::METADATA_COMPILE_UNIT, Record, Abbrev); in WriteDICompileUnit()
1027 Record.clear(); in WriteDICompileUnit()
1032 SmallVectorImpl<uint64_t> &Record, in WriteDISubprogram() argument
1034 Record.push_back(N->isDistinct()); in WriteDISubprogram()
1035 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in WriteDISubprogram()
1036 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in WriteDISubprogram()
1037 Record.push_back(VE.getMetadataOrNullID(N->getRawLinkageName())); in WriteDISubprogram()
1038 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in WriteDISubprogram()
1039 Record.push_back(N->getLine()); in WriteDISubprogram()
1040 Record.push_back(VE.getMetadataOrNullID(N->getType())); in WriteDISubprogram()
1041 Record.push_back(N->isLocalToUnit()); in WriteDISubprogram()
1042 Record.push_back(N->isDefinition()); in WriteDISubprogram()
1043 Record.push_back(N->getScopeLine()); in WriteDISubprogram()
1044 Record.push_back(VE.getMetadataOrNullID(N->getContainingType())); in WriteDISubprogram()
1045 Record.push_back(N->getVirtuality()); in WriteDISubprogram()
1046 Record.push_back(N->getVirtualIndex()); in WriteDISubprogram()
1047 Record.push_back(N->getFlags()); in WriteDISubprogram()
1048 Record.push_back(N->isOptimized()); in WriteDISubprogram()
1049 Record.push_back(VE.getMetadataOrNullID(N->getTemplateParams().get())); in WriteDISubprogram()
1050 Record.push_back(VE.getMetadataOrNullID(N->getDeclaration())); in WriteDISubprogram()
1051 Record.push_back(VE.getMetadataOrNullID(N->getVariables().get())); in WriteDISubprogram()
1053 Stream.EmitRecord(bitc::METADATA_SUBPROGRAM, Record, Abbrev); in WriteDISubprogram()
1054 Record.clear(); in WriteDISubprogram()
1060 SmallVectorImpl<uint64_t> &Record, in WriteDILexicalBlock() argument
1062 Record.push_back(N->isDistinct()); in WriteDILexicalBlock()
1063 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in WriteDILexicalBlock()
1064 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in WriteDILexicalBlock()
1065 Record.push_back(N->getLine()); in WriteDILexicalBlock()
1066 Record.push_back(N->getColumn()); in WriteDILexicalBlock()
1068 Stream.EmitRecord(bitc::METADATA_LEXICAL_BLOCK, Record, Abbrev); in WriteDILexicalBlock()
1069 Record.clear(); in WriteDILexicalBlock()
1075 SmallVectorImpl<uint64_t> &Record, in WriteDILexicalBlockFile() argument
1077 Record.push_back(N->isDistinct()); in WriteDILexicalBlockFile()
1078 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in WriteDILexicalBlockFile()
1079 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in WriteDILexicalBlockFile()
1080 Record.push_back(N->getDiscriminator()); in WriteDILexicalBlockFile()
1082 Stream.EmitRecord(bitc::METADATA_LEXICAL_BLOCK_FILE, Record, Abbrev); in WriteDILexicalBlockFile()
1083 Record.clear(); in WriteDILexicalBlockFile()
1088 SmallVectorImpl<uint64_t> &Record, in WriteDINamespace() argument
1090 Record.push_back(N->isDistinct()); in WriteDINamespace()
1091 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in WriteDINamespace()
1092 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in WriteDINamespace()
1093 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in WriteDINamespace()
1094 Record.push_back(N->getLine()); in WriteDINamespace()
1096 Stream.EmitRecord(bitc::METADATA_NAMESPACE, Record, Abbrev); in WriteDINamespace()
1097 Record.clear(); in WriteDINamespace()
1102 SmallVectorImpl<uint64_t> &Record, unsigned Abbrev) { in WriteDIMacro() argument
1103 Record.push_back(N->isDistinct()); in WriteDIMacro()
1104 Record.push_back(N->getMacinfoType()); in WriteDIMacro()
1105 Record.push_back(N->getLine()); in WriteDIMacro()
1106 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in WriteDIMacro()
1107 Record.push_back(VE.getMetadataOrNullID(N->getRawValue())); in WriteDIMacro()
1109 Stream.EmitRecord(bitc::METADATA_MACRO, Record, Abbrev); in WriteDIMacro()
1110 Record.clear(); in WriteDIMacro()
1115 SmallVectorImpl<uint64_t> &Record, in WriteDIMacroFile() argument
1117 Record.push_back(N->isDistinct()); in WriteDIMacroFile()
1118 Record.push_back(N->getMacinfoType()); in WriteDIMacroFile()
1119 Record.push_back(N->getLine()); in WriteDIMacroFile()
1120 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in WriteDIMacroFile()
1121 Record.push_back(VE.getMetadataOrNullID(N->getElements().get())); in WriteDIMacroFile()
1123 Stream.EmitRecord(bitc::METADATA_MACRO_FILE, Record, Abbrev); in WriteDIMacroFile()
1124 Record.clear(); in WriteDIMacroFile()
1129 SmallVectorImpl<uint64_t> &Record, unsigned Abbrev) { in WriteDIModule() argument
1130 Record.push_back(N->isDistinct()); in WriteDIModule()
1132 Record.push_back(VE.getMetadataOrNullID(I)); in WriteDIModule()
1134 Stream.EmitRecord(bitc::METADATA_MODULE, Record, Abbrev); in WriteDIModule()
1135 Record.clear(); in WriteDIModule()
1141 SmallVectorImpl<uint64_t> &Record, in WriteDITemplateTypeParameter() argument
1143 Record.push_back(N->isDistinct()); in WriteDITemplateTypeParameter()
1144 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in WriteDITemplateTypeParameter()
1145 Record.push_back(VE.getMetadataOrNullID(N->getType())); in WriteDITemplateTypeParameter()
1147 Stream.EmitRecord(bitc::METADATA_TEMPLATE_TYPE, Record, Abbrev); in WriteDITemplateTypeParameter()
1148 Record.clear(); in WriteDITemplateTypeParameter()
1154 SmallVectorImpl<uint64_t> &Record, in WriteDITemplateValueParameter() argument
1156 Record.push_back(N->isDistinct()); in WriteDITemplateValueParameter()
1157 Record.push_back(N->getTag()); in WriteDITemplateValueParameter()
1158 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in WriteDITemplateValueParameter()
1159 Record.push_back(VE.getMetadataOrNullID(N->getType())); in WriteDITemplateValueParameter()
1160 Record.push_back(VE.getMetadataOrNullID(N->getValue())); in WriteDITemplateValueParameter()
1162 Stream.EmitRecord(bitc::METADATA_TEMPLATE_VALUE, Record, Abbrev); in WriteDITemplateValueParameter()
1163 Record.clear(); in WriteDITemplateValueParameter()
1169 SmallVectorImpl<uint64_t> &Record, in WriteDIGlobalVariable() argument
1171 Record.push_back(N->isDistinct()); in WriteDIGlobalVariable()
1172 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in WriteDIGlobalVariable()
1173 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in WriteDIGlobalVariable()
1174 Record.push_back(VE.getMetadataOrNullID(N->getRawLinkageName())); in WriteDIGlobalVariable()
1175 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in WriteDIGlobalVariable()
1176 Record.push_back(N->getLine()); in WriteDIGlobalVariable()
1177 Record.push_back(VE.getMetadataOrNullID(N->getType())); in WriteDIGlobalVariable()
1178 Record.push_back(N->isLocalToUnit()); in WriteDIGlobalVariable()
1179 Record.push_back(N->isDefinition()); in WriteDIGlobalVariable()
1180 Record.push_back(VE.getMetadataOrNullID(N->getRawVariable())); in WriteDIGlobalVariable()
1181 Record.push_back(VE.getMetadataOrNullID(N->getStaticDataMemberDeclaration())); in WriteDIGlobalVariable()
1183 Stream.EmitRecord(bitc::METADATA_GLOBAL_VAR, Record, Abbrev); in WriteDIGlobalVariable()
1184 Record.clear(); in WriteDIGlobalVariable()
1190 SmallVectorImpl<uint64_t> &Record, in WriteDILocalVariable() argument
1192 Record.push_back(N->isDistinct()); in WriteDILocalVariable()
1193 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in WriteDILocalVariable()
1194 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in WriteDILocalVariable()
1195 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in WriteDILocalVariable()
1196 Record.push_back(N->getLine()); in WriteDILocalVariable()
1197 Record.push_back(VE.getMetadataOrNullID(N->getType())); in WriteDILocalVariable()
1198 Record.push_back(N->getArg()); in WriteDILocalVariable()
1199 Record.push_back(N->getFlags()); in WriteDILocalVariable()
1201 Stream.EmitRecord(bitc::METADATA_LOCAL_VAR, Record, Abbrev); in WriteDILocalVariable()
1202 Record.clear(); in WriteDILocalVariable()
1207 SmallVectorImpl<uint64_t> &Record, in WriteDIExpression() argument
1209 Record.reserve(N->getElements().size() + 1); in WriteDIExpression()
1211 Record.push_back(N->isDistinct()); in WriteDIExpression()
1212 Record.append(N->elements_begin(), N->elements_end()); in WriteDIExpression()
1214 Stream.EmitRecord(bitc::METADATA_EXPRESSION, Record, Abbrev); in WriteDIExpression()
1215 Record.clear(); in WriteDIExpression()
1221 SmallVectorImpl<uint64_t> &Record, in WriteDIObjCProperty() argument
1223 Record.push_back(N->isDistinct()); in WriteDIObjCProperty()
1224 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in WriteDIObjCProperty()
1225 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in WriteDIObjCProperty()
1226 Record.push_back(N->getLine()); in WriteDIObjCProperty()
1227 Record.push_back(VE.getMetadataOrNullID(N->getRawSetterName())); in WriteDIObjCProperty()
1228 Record.push_back(VE.getMetadataOrNullID(N->getRawGetterName())); in WriteDIObjCProperty()
1229 Record.push_back(N->getAttributes()); in WriteDIObjCProperty()
1230 Record.push_back(VE.getMetadataOrNullID(N->getType())); in WriteDIObjCProperty()
1232 Stream.EmitRecord(bitc::METADATA_OBJC_PROPERTY, Record, Abbrev); in WriteDIObjCProperty()
1233 Record.clear(); in WriteDIObjCProperty()
1239 SmallVectorImpl<uint64_t> &Record, in WriteDIImportedEntity() argument
1241 Record.push_back(N->isDistinct()); in WriteDIImportedEntity()
1242 Record.push_back(N->getTag()); in WriteDIImportedEntity()
1243 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in WriteDIImportedEntity()
1244 Record.push_back(VE.getMetadataOrNullID(N->getEntity())); in WriteDIImportedEntity()
1245 Record.push_back(N->getLine()); in WriteDIImportedEntity()
1246 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in WriteDIImportedEntity()
1248 Stream.EmitRecord(bitc::METADATA_IMPORTED_ENTITY, Record, Abbrev); in WriteDIImportedEntity()
1249 Record.clear(); in WriteDIImportedEntity()
1316 SmallVector<uint64_t, 64> Record; in WriteModuleMetadata() local
1326 Write##CLASS(cast<CLASS>(N), VE, Stream, Record, CLASS##Abbrev); \ in WriteModuleMetadata()
1332 WriteValueAsMetadata(MDC, VE, Stream, Record); in WriteModuleMetadata()
1337 Record.append(MDS->bytes_begin(), MDS->bytes_end()); in WriteModuleMetadata()
1339 // Emit the finished record. in WriteModuleMetadata()
1340 Stream.EmitRecord(bitc::METADATA_STRING, Record, MDSAbbrev); in WriteModuleMetadata()
1341 Record.clear(); in WriteModuleMetadata()
1348 Record.append(Str.bytes_begin(), Str.bytes_end()); in WriteModuleMetadata()
1349 Stream.EmitRecord(bitc::METADATA_NAME, Record, NameAbbrev); in WriteModuleMetadata()
1350 Record.clear(); in WriteModuleMetadata()
1354 Record.push_back(VE.getMetadataID(N)); in WriteModuleMetadata()
1355 Stream.EmitRecord(bitc::METADATA_NAMED_NODE, Record, 0); in WriteModuleMetadata()
1356 Record.clear(); in WriteModuleMetadata()
1366 SmallVector<uint64_t, 64> Record; in WriteFunctionLocalMetadata() local
1375 WriteValueAsMetadata(MDs[i], VE, Stream, Record); in WriteFunctionLocalMetadata()
1387 SmallVector<uint64_t, 64> Record; in WriteMetadataAttachment() local
1395 Record.push_back(I.first); in WriteMetadataAttachment()
1396 Record.push_back(VE.getMetadataID(I.second)); in WriteMetadataAttachment()
1398 Stream.EmitRecord(bitc::METADATA_ATTACHMENT, Record, 0); in WriteMetadataAttachment()
1399 Record.clear(); in WriteMetadataAttachment()
1410 Record.push_back(VE.getInstructionID(&I)); in WriteMetadataAttachment()
1413 Record.push_back(MDs[i].first); in WriteMetadataAttachment()
1414 Record.push_back(VE.getMetadataID(MDs[i].second)); in WriteMetadataAttachment()
1416 Stream.EmitRecord(bitc::METADATA_ATTACHMENT, Record, 0); in WriteMetadataAttachment()
1417 Record.clear(); in WriteMetadataAttachment()
1424 SmallVector<uint64_t, 64> Record; in WriteModuleMetadataStore() local
1436 Record.push_back(MDKindID); in WriteModuleMetadataStore()
1438 Record.append(KName.begin(), KName.end()); in WriteModuleMetadataStore()
1440 Stream.EmitRecord(bitc::METADATA_KIND, Record, 0); in WriteModuleMetadataStore()
1441 Record.clear(); in WriteModuleMetadataStore()
1462 SmallVector<uint64_t, 64> Record; in WriteOperandBundleTags() local
1465 Record.append(Tag.begin(), Tag.end()); in WriteOperandBundleTags()
1467 Stream.EmitRecord(bitc::OPERAND_BUNDLE_TAG, Record, 0); in WriteOperandBundleTags()
1468 Record.clear(); in WriteOperandBundleTags()
1521 SmallVector<uint64_t, 64> Record; in WriteConstants() local
1530 Record.push_back(VE.getTypeID(LastTy)); in WriteConstants()
1531 Stream.EmitRecord(bitc::CST_CODE_SETTYPE, Record, in WriteConstants()
1533 Record.clear(); in WriteConstants()
1537 Record.push_back(unsigned(IA->hasSideEffects()) | in WriteConstants()
1543 Record.push_back(AsmStr.size()); in WriteConstants()
1544 Record.append(AsmStr.begin(), AsmStr.end()); in WriteConstants()
1548 Record.push_back(ConstraintStr.size()); in WriteConstants()
1549 Record.append(ConstraintStr.begin(), ConstraintStr.end()); in WriteConstants()
1550 Stream.EmitRecord(bitc::CST_CODE_INLINEASM, Record); in WriteConstants()
1551 Record.clear(); in WriteConstants()
1564 emitSignedInt64(Record, V); in WriteConstants()
1575 emitSignedInt64(Record, RawWords[i]); in WriteConstants()
1583 Record.push_back(CFP->getValueAPF().bitcastToAPInt().getZExtValue()); in WriteConstants()
1589 Record.push_back((p[1] << 48) | (p[0] >> 16)); in WriteConstants()
1590 Record.push_back(p[0] & 0xffffLL); in WriteConstants()
1594 Record.push_back(p[0]); in WriteConstants()
1595 Record.push_back(p[1]); in WriteConstants()
1616 Record.push_back(V); in WriteConstants()
1632 Record.push_back(CDS->getElementAsInteger(i)); in WriteConstants()
1635 Record.push_back( in WriteConstants()
1642 Record.push_back(VE.getValueID(Op)); in WriteConstants()
1649 Record.push_back(GetEncodedCastOpcode(CE->getOpcode())); in WriteConstants()
1650 Record.push_back(VE.getTypeID(C->getOperand(0)->getType())); in WriteConstants()
1651 Record.push_back(VE.getValueID(C->getOperand(0))); in WriteConstants()
1656 Record.push_back(GetEncodedBinaryOpcode(CE->getOpcode())); in WriteConstants()
1657 Record.push_back(VE.getValueID(C->getOperand(0))); in WriteConstants()
1658 Record.push_back(VE.getValueID(C->getOperand(1))); in WriteConstants()
1661 Record.push_back(Flags); in WriteConstants()
1669 Record.push_back(VE.getTypeID(GO->getSourceElementType())); in WriteConstants()
1671 Record.push_back(VE.getTypeID(C->getOperand(i)->getType())); in WriteConstants()
1672 Record.push_back(VE.getValueID(C->getOperand(i))); in WriteConstants()
1678 Record.push_back(VE.getValueID(C->getOperand(0))); in WriteConstants()
1679 Record.push_back(VE.getValueID(C->getOperand(1))); in WriteConstants()
1680 Record.push_back(VE.getValueID(C->getOperand(2))); in WriteConstants()
1684 Record.push_back(VE.getTypeID(C->getOperand(0)->getType())); in WriteConstants()
1685 Record.push_back(VE.getValueID(C->getOperand(0))); in WriteConstants()
1686 Record.push_back(VE.getTypeID(C->getOperand(1)->getType())); in WriteConstants()
1687 Record.push_back(VE.getValueID(C->getOperand(1))); in WriteConstants()
1691 Record.push_back(VE.getValueID(C->getOperand(0))); in WriteConstants()
1692 Record.push_back(VE.getValueID(C->getOperand(1))); in WriteConstants()
1693 Record.push_back(VE.getTypeID(C->getOperand(2)->getType())); in WriteConstants()
1694 Record.push_back(VE.getValueID(C->getOperand(2))); in WriteConstants()
1705 Record.push_back(VE.getTypeID(C->getOperand(0)->getType())); in WriteConstants()
1707 Record.push_back(VE.getValueID(C->getOperand(0))); in WriteConstants()
1708 Record.push_back(VE.getValueID(C->getOperand(1))); in WriteConstants()
1709 Record.push_back(VE.getValueID(C->getOperand(2))); in WriteConstants()
1714 Record.push_back(VE.getTypeID(C->getOperand(0)->getType())); in WriteConstants()
1715 Record.push_back(VE.getValueID(C->getOperand(0))); in WriteConstants()
1716 Record.push_back(VE.getValueID(C->getOperand(1))); in WriteConstants()
1717 Record.push_back(CE->getPredicate()); in WriteConstants()
1722 Record.push_back(VE.getTypeID(BA->getFunction()->getType())); in WriteConstants()
1723 Record.push_back(VE.getValueID(BA->getFunction())); in WriteConstants()
1724 Record.push_back(VE.getGlobalBasicBlockID(BA->getBasicBlock())); in WriteConstants()
1731 Stream.EmitRecord(Code, Record, AbbrevToUse); in WriteConstants()
1732 Record.clear(); in WriteConstants()
1775 SmallVector<unsigned, 64> Record; in WriteOperandBundles() local
1780 Record.push_back(C.getOperandBundleTagID(Bundle.getTagName())); in WriteOperandBundles()
1783 PushValueAndType(Input, InstID, Record, VE); in WriteOperandBundles()
1785 Stream.EmitRecord(bitc::FUNC_CODE_OPERAND_BUNDLE, Record); in WriteOperandBundles()
1786 Record.clear(); in WriteOperandBundles()
2215 /// backpatch the VST forward declaration record.
2232 // the VST forward declaration record. in WriteValueSymbolTable()
2338 // Emit the finished record. in WriteValueSymbolTable()
2397 // Emit the finished record. in WriteCombinedValueSymbolTable()
2414 SmallVector<uint64_t, 64> Record(Order.Shuffle.begin(), Order.Shuffle.end()); in WriteUseList() local
2415 Record.push_back(VE.getValueID(Order.V)); in WriteUseList()
2416 Stream.EmitRecord(Code, Record); in WriteUseList()
2441 /// At a minimum this saves the bitcode index of the function record that
2766 // Emit the finished record. in WriteModStrings()
2773 // Helper to emit a single function summary record.
2782 // Emit the finished record. in WritePerModuleFunctionSummaryRecord()
2854 // Record the starting offset of this summary entry for use in WriteCombinedFunctionSummary()
2859 // Emit the finished record. in WriteCombinedFunctionSummary()
2869 // current llvm version, and a record for the epoch number.