summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-05-03 21:19:58 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-05-03 21:19:58 +0000
commitd2b71e7fa9ff1cfd889a16bbf583bdce200236f9 (patch)
treee29c3fc369f5d0cab4c735f7b9c7dbef39cd4390 /llvm/include
parent64e7ead1d817540a4ba4887da6c8a049788beee7 (diff)
downloadbcm5719-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.h11
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.
//
OpenPOWER on IntegriCloud