Home | History | Annotate | Download | only in Writer

Lines Matching defs:MDS

1255   const auto &MDs = VE.getMDs();
1256 if (MDs.empty() && M->named_metadata_empty())
1317 for (const Metadata *MD : MDs) {
1335 const MDString *MDS = cast<MDString>(MD);
1337 Record.append(MDS->bytes_begin(), MDS->bytes_end());
1367 const SmallVectorImpl<const LocalAsMetadata *> &MDs =
1369 for (unsigned i = 0, e = MDs.size(); i != e; ++i) {
1370 assert(MDs[i] && "Expected valid function-local metadata");
1375 WriteValueAsMetadata(MDs[i], VE, Stream, Record);
1391 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs;
1392 F.getAllMetadata(MDs);
1393 if (!MDs.empty()) {
1394 for (const auto &I : MDs) {
1404 MDs.clear();
1405 I.getAllMetadataOtherThanDebugLoc(MDs);
1408 if (MDs.empty()) continue;
1412 for (unsigned i = 0, e = MDs.size(); i != e; ++i) {
1413 Record.push_back(MDs[i].first);
1414 Record.push_back(VE.getMetadataID(MDs[i].second));