diff options
| author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-03 21:19:58 +0000 |
|---|---|---|
| committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-03 21:19:58 +0000 |
| commit | d2b71e7fa9ff1cfd889a16bbf583bdce200236f9 (patch) | |
| tree | e29c3fc369f5d0cab4c735f7b9c7dbef39cd4390 /llvm/include | |
| parent | 64e7ead1d817540a4ba4887da6c8a049788beee7 (diff) | |
| download | bcm5719-llvm-d2b71e7fa9ff1cfd889a16bbf583bdce200236f9.tar.gz bcm5719-llvm-d2b71e7fa9ff1cfd889a16bbf583bdce200236f9.zip | |
add support for calloc to objectsize lowering
llvm-svn: 156102
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Analysis/MemoryBuiltins.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/MemoryBuiltins.h b/llvm/include/llvm/Analysis/MemoryBuiltins.h index 865d236f6f3..e7dcbf3cfc6 100644 --- a/llvm/include/llvm/Analysis/MemoryBuiltins.h +++ b/llvm/include/llvm/Analysis/MemoryBuiltins.h @@ -68,6 +68,17 @@ Type *getMallocAllocatedType(const CallInst *CI); Value *getMallocArraySize(CallInst *CI, const TargetData *TD, bool LookThroughSExt = false); + +//===----------------------------------------------------------------------===// +// calloc Call Utility Functions. +// + +/// extractCallocCall - Returns the corresponding CallInst if the instruction +/// is a calloc call. +const CallInst *extractCallocCall(const Value *I); +CallInst *extractCallocCall(Value *I); + + //===----------------------------------------------------------------------===// // free Call Utility Functions. // |

