Home
last modified time | relevance | path

Searched refs:MallocCall (Results 1 – 4 of 4) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DAttributor.cpp4421 for (Instruction *MallocCall : MallocCalls) { in manifest()
4423 if (BadMallocCalls.count(MallocCall)) in manifest()
4426 for (Instruction *FreeCall : FreesForMalloc[MallocCall]) { in manifest()
4432 LLVM_DEBUG(dbgs() << "H2S: Removing malloc call: " << *MallocCall in manifest()
4436 if (isCallocLikeFn(MallocCall, TLI)) { in manifest()
4437 auto *Num = cast<ConstantInt>(MallocCall->getOperand(0)); in manifest()
4438 auto *SizeT = dyn_cast<ConstantInt>(MallocCall->getOperand(1)); in manifest()
4441 ConstantInt::get(MallocCall->getOperand(0)->getType(), TotalSize); in manifest()
4443 Size = cast<ConstantInt>(MallocCall->getOperand(0)); in manifest()
4446 unsigned AS = cast<PointerType>(MallocCall->getType())->getAddressSpace(); in manifest()
[all …]
/external/llvm-project/llvm/lib/Transforms/IPO/
DAttributorAttributes.cpp4982 for (Instruction *MallocCall : MallocCalls) { in manifest()
4984 if (BadMallocCalls.count(MallocCall)) in manifest()
4987 for (Instruction *FreeCall : FreesForMalloc[MallocCall]) { in manifest()
4993 LLVM_DEBUG(dbgs() << "H2S: Removing malloc call: " << *MallocCall in manifest()
4998 if (isCallocLikeFn(MallocCall, TLI)) { in manifest()
4999 auto *Num = cast<ConstantInt>(MallocCall->getOperand(0)); in manifest()
5000 auto *SizeT = cast<ConstantInt>(MallocCall->getOperand(1)); in manifest()
5003 ConstantInt::get(MallocCall->getOperand(0)->getType(), TotalSize); in manifest()
5004 } else if (isAlignedAllocLikeFn(MallocCall, TLI)) { in manifest()
5005 Size = cast<ConstantInt>(MallocCall->getOperand(1)); in manifest()
[all …]
/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyLowerEmscriptenEHSjLj.cpp970 auto *MallocCall = SetjmpTable->stripPointerCasts(); in runSjLjOnFunction() local
971 if (auto *MallocCallI = dyn_cast<Instruction>(MallocCall)) { in runSjLjOnFunction()
/external/llvm-project/polly/lib/Analysis/
DScopBuilder.cpp1416 auto *MallocCall = dyn_cast<CallInst>(MallocMem); in findFADAllocationVisible() local
1417 if (!MallocCall) in findFADAllocationVisible()
1420 Function *MallocFn = MallocCall->getCalledFunction(); in findFADAllocationVisible()