Searched refs:MallocType (Results 1 – 5 of 5) sorted by relevance
139 PointerType *MallocType = NULL; in getMallocType() local146 MallocType = cast<PointerType>(BCI->getDestTy()); in getMallocType()152 return MallocType; in getMallocType()
254 PointerType *MallocType = nullptr; in getMallocType() local261 MallocType = cast<PointerType>(BCI->getDestTy()); in getMallocType()267 return MallocType; in getMallocType()
301 Type* MallocType = getMallocAllocatedType(MI); in visitCallInst() local302 if (MallocType && MallocType->isSized()) in visitCallInst()305 Size = NElements->getZExtValue() * TD->getTypeAllocSize(MallocType); in visitCallInst()
1538 Type *MallocType = getMallocAllocatedType(CI, TLI); in optimizeOnceStoredGlobal() local1539 if (MallocType && tryToOptimizeStoreOfMallocToGlobal(GV, CI, MallocType, in optimizeOnceStoredGlobal()
1595 Type* MallocType = getMallocAllocatedType(CI); in OptimizeOnceStoredGlobal() local1596 if (MallocType && TryToOptimizeStoreOfMallocToGlobal(GV, CI, MallocType, in OptimizeOnceStoredGlobal()