Lines Matching refs:MDs
601 const auto &MDs = VE.getMDs(); in WriteModuleMetadata() local
602 if (MDs.empty() && M->named_metadata_empty()) in WriteModuleMetadata()
648 for (const Metadata *MD : MDs) { in WriteModuleMetadata()
697 const SmallVectorImpl<const LocalAsMetadata *> &MDs = in WriteFunctionLocalMetadata() local
699 for (unsigned i = 0, e = MDs.size(); i != e; ++i) { in WriteFunctionLocalMetadata()
700 assert(MDs[i] && "Expected valid function-local metadata"); in WriteFunctionLocalMetadata()
705 WriteValueAsMetadata(MDs[i], VE, Stream, Record); in WriteFunctionLocalMetadata()
721 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in WriteMetadataAttachment() local
726 MDs.clear(); in WriteMetadataAttachment()
727 I->getAllMetadataOtherThanDebugLoc(MDs); in WriteMetadataAttachment()
730 if (MDs.empty()) continue; in WriteMetadataAttachment()
734 for (unsigned i = 0, e = MDs.size(); i != e; ++i) { in WriteMetadataAttachment()
735 Record.push_back(MDs[i].first); in WriteMetadataAttachment()
736 Record.push_back(VE.getMetadataID(MDs[i].second)); in WriteMetadataAttachment()