aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis
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
commit252ef566e8734b6bcf46434d0a7954c9eda0bd96 (patch)
treeb71231a8b801496ddd368cc3b642544a33bad547 /include/llvm/Analysis
parent1d61f283fad2e49d3e50a3585aac4cc9183a0d28 (diff)
downloadexternal_llvm-252ef566e8734b6bcf46434d0a7954c9eda0bd96.zip
external_llvm-252ef566e8734b6bcf46434d0a7954c9eda0bd96.tar.gz
external_llvm-252ef566e8734b6bcf46434d0a7954c9eda0bd96.tar.bz2
add support for calloc to objectsize lowering
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r--include/llvm/Analysis/MemoryBuiltins.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/Analysis/MemoryBuiltins.h b/include/llvm/Analysis/MemoryBuiltins.h
index 865d236..e7dcbf3 100644
--- a/include/llvm/Analysis/MemoryBuiltins.h
+++ b/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.
//