Lines Matching refs:MDTuple
31 return MDTuple::get(Context, Ops); in getKeyValMD()
39 return MDTuple::get(Context, Ops); in getKeyFPValMD()
47 return MDTuple::get(Context, Ops); in getKeyValMD()
64 Entries.push_back(MDTuple::get(Context, EntryMD)); in getDetailedSummaryMD()
67 MDTuple::get(Context, Entries)}; in getDetailedSummaryMD()
68 return MDTuple::get(Context, Ops); in getDetailedSummaryMD()
100 return MDTuple::get(Context, Components); in getMD()
104 static ConstantAsMetadata *getValMD(MDTuple *MD, const char *Key) { in getValMD()
119 static bool getVal(MDTuple *MD, const char *Key, uint64_t &Val) { in getVal()
127 static bool getVal(MDTuple *MD, const char *Key, double &Val) { in getVal()
136 static bool isKeyValuePair(MDTuple *MD, const char *Key, const char *Val) { in isKeyValuePair()
149 static bool getSummaryFromMD(MDTuple *MD, SummaryEntryVector &Summary) { in getSummaryFromMD()
155 MDTuple *EntriesMD = dyn_cast<MDTuple>(MD->getOperand(1)); in getSummaryFromMD()
159 MDTuple *EntryMD = dyn_cast<MDTuple>(MDOp); in getSummaryFromMD()
181 static bool getOptionalVal(MDTuple *Tuple, unsigned &Idx, const char *Key, in getOptionalVal()
183 if (getVal(dyn_cast<MDTuple>(Tuple->getOperand(Idx)), Key, Value)) { in getOptionalVal()
195 MDTuple *Tuple = dyn_cast_or_null<MDTuple>(MD); in getFromMD()
202 if (isKeyValuePair(dyn_cast_or_null<MDTuple>(FormatMD), "ProfileFormat", in getFromMD()
205 else if (isKeyValuePair(dyn_cast_or_null<MDTuple>(FormatMD), "ProfileFormat", in getFromMD()
208 else if (isKeyValuePair(dyn_cast_or_null<MDTuple>(FormatMD), "ProfileFormat", in getFromMD()
216 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "TotalCount", in getFromMD()
219 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "MaxCount", MaxCount)) in getFromMD()
221 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "MaxInternalCount", in getFromMD()
224 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "MaxFunctionCount", in getFromMD()
227 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "NumCounts", in getFromMD()
230 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "NumFunctions", in getFromMD()
243 if (!getSummaryFromMD(dyn_cast<MDTuple>(Tuple->getOperand(I++)), Summary)) in getFromMD()