Lines Matching refs:MDs
628 const auto &MDs = VE.getMDs(); in WriteModuleMetadata() local
629 if (MDs.empty() && M->named_metadata_empty()) in WriteModuleMetadata()
675 for (const Metadata *MD : MDs) { in WriteModuleMetadata()
724 const SmallVectorImpl<const LocalAsMetadata *> &MDs = in WriteFunctionLocalMetadata() local
726 for (unsigned i = 0, e = MDs.size(); i != e; ++i) { in WriteFunctionLocalMetadata()
727 assert(MDs[i] && "Expected valid function-local metadata"); in WriteFunctionLocalMetadata()
732 WriteValueAsMetadata(MDs[i], VE, Stream, Record); in WriteFunctionLocalMetadata()
748 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in WriteMetadataAttachment() local
753 MDs.clear(); in WriteMetadataAttachment()
754 I->getAllMetadataOtherThanDebugLoc(MDs); in WriteMetadataAttachment()
757 if (MDs.empty()) continue; in WriteMetadataAttachment()
761 for (unsigned i = 0, e = MDs.size(); i != e; ++i) { in WriteMetadataAttachment()
762 Record.push_back(MDs[i].first); in WriteMetadataAttachment()
763 Record.push_back(VE.getMetadataID(MDs[i].second)); in WriteMetadataAttachment()