Lines Matching refs:Tuple
182 static bool getOptionalVal(MDTuple *Tuple, unsigned &Idx, const char *Key,
184 if (getVal(dyn_cast<MDTuple>(Tuple->getOperand(Idx)), Key, Value)) {
187 // of Tuple operand array. Since (non-optional) DetailedSummary always comes
189 return Idx < Tuple->getNumOperands();
196 MDTuple *Tuple = dyn_cast_or_null<MDTuple>(MD);
197 if (!Tuple || Tuple->getNumOperands() < 8 || Tuple->getNumOperands() > 10)
201 auto &FormatMD = Tuple->getOperand(I++);
217 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "TotalCount",
220 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "MaxCount", MaxCount))
222 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "MaxInternalCount",
225 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "MaxFunctionCount",
228 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "NumCounts",
231 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "NumFunctions",
237 if (!getOptionalVal(Tuple, I, "IsPartialProfile", IsPartialProfile))
240 if (!getOptionalVal(Tuple, I, "PartialProfileRatio", PartialProfileRatio))
244 if (!getSummaryFromMD(dyn_cast<MDTuple>(Tuple->getOperand(I++)), Summary))