Lines Matching refs:MIB
80 MDNode *llvm::memprof::getMIBStackNode(const MDNode *MIB) { in getMIBStackNode() argument
81 assert(MIB->getNumOperands() >= 2); in getMIBStackNode()
83 return cast<MDNode>(MIB->getOperand(0)); in getMIBStackNode()
86 AllocationType llvm::memprof::getMIBAllocType(const MDNode *MIB) { in getMIBAllocType() argument
87 assert(MIB->getNumOperands() >= 2); in getMIBAllocType()
91 auto *MDS = dyn_cast<MDString>(MIB->getOperand(1)); in getMIBAllocType()
101 uint64_t llvm::memprof::getMIBTotalSize(const MDNode *MIB) { in getMIBTotalSize() argument
102 if (MIB->getNumOperands() < 3) in getMIBTotalSize()
104 return mdconst::dyn_extract<ConstantInt>(MIB->getOperand(2))->getZExtValue(); in getMIBTotalSize()
173 void CallStackTrie::addCallStack(MDNode *MIB) { in addCallStack() argument
174 MDNode *StackMD = getMIBStackNode(MIB); in addCallStack()
183 addCallStack(getMIBAllocType(MIB), CallStack, getMIBTotalSize(MIB)); in addCallStack()