Lines Matching full:tuple
50 // This returns an MDTuple representing the detiled summary. The tuple has two
52 // of the detailed summary. Each element of this tuple is again an MDTuple whose
72 // entry of this tuple is another MDTuple of two elements: a string
181 static bool getOptionalVal(MDTuple *Tuple, unsigned &Idx, const char *Key,
183 if (getVal(dyn_cast<MDTuple>(Tuple->getOperand(Idx)), Key, Value)) {
186 // of Tuple operand array. Since (non-optional) DetailedSummary always comes
187 // last, the next entry in the tuple operand array must exist.
188 return Idx < Tuple->getNumOperands();
195 MDTuple *Tuple = dyn_cast_or_null<MDTuple>(MD);
196 if (!Tuple || Tuple->getNumOperands() < 8 || Tuple->getNumOperands() > 10)
200 auto &FormatMD = Tuple->getOperand(I++);
216 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "TotalCount",
219 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "MaxCount", MaxCount))
221 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "MaxInternalCount",
224 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "MaxFunctionCount",
227 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "NumCounts",
230 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "NumFunctions",
236 if (!getOptionalVal(Tuple, I, "IsPartialProfile", IsPartialProfile))
239 if (!getOptionalVal(Tuple, I, "PartialProfileRatio", PartialProfileRatio))
243 if (!getSummaryFromMD(dyn_cast<MDTuple>(Tuple->getOperand(I++)), Summary))