Lines Matching refs:MD
88 static bool getVal(MDTuple *MD, const char *Key, uint64_t &Val) { in getVal() argument
89 if (!MD) in getVal()
91 if (MD->getNumOperands() != 2) in getVal()
93 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getVal()
94 ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1)); in getVal()
104 static bool isKeyValuePair(MDTuple *MD, const char *Key, const char *Val) { in isKeyValuePair() argument
105 if (!MD || MD->getNumOperands() != 2) in isKeyValuePair()
107 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in isKeyValuePair()
108 MDString *ValMD = dyn_cast<MDString>(MD->getOperand(1)); in isKeyValuePair()
117 static bool getSummaryFromMD(MDTuple *MD, SummaryEntryVector &Summary) { in getSummaryFromMD() argument
118 if (!MD || MD->getNumOperands() != 2) in getSummaryFromMD()
120 MDString *KeyMD = dyn_cast<MDString>(MD->getOperand(0)); in getSummaryFromMD()
123 MDTuple *EntriesMD = dyn_cast<MDTuple>(MD->getOperand(1)); in getSummaryFromMD()
146 ProfileSummary *ProfileSummary::getFromMD(Metadata *MD) { in getFromMD() argument
147 if (!MD) in getFromMD()
149 if (!isa<MDTuple>(MD)) in getFromMD()
151 MDTuple *Tuple = cast<MDTuple>(MD); in getFromMD()