Lines Matching defs:MIB
95 MDNode *llvm::memprof::getMIBStackNode(const MDNode *MIB) {
96 assert(MIB->getNumOperands() >= 2);
97 // The stack metadata is the first operand of each memprof MIB metadata.
98 return cast<MDNode>(MIB->getOperand(0));
101 AllocationType llvm::memprof::getMIBAllocType(const MDNode *MIB) {
102 assert(MIB->getNumOperands() >= 2);
104 // MIB metadata. This will need to change as we add additional allocation
106 auto *MDS = dyn_cast<MDString>(MIB->getOperand(1));
188 void CallStackTrie::addCallStack(MDNode *MIB) {
189 MDNode *StackMD = getMIBStackNode(MIB);
200 if (MIB->getNumOperands() > 2) {
201 for (unsigned I = 2; I < MIB->getNumOperands(); I++) {
202 MDNode *ContextSizePair = dyn_cast<MDNode>(MIB->getOperand(I));
213 addCallStack(getMIBAllocType(MIB), CallStack, std::move(ContextSizeInfo));
262 // Add an MIB record for the current call stack prefix.
265 // contexts as that is the default allocation behavior), we create MIB
283 // If we just emitted an MIB for a not cold caller, don't need to emit
344 // Build and attach the minimal necessary MIB metadata. If the alloc has a
357 // trimming when building the MIB metadata (and possibly may make the