summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2012-09-26 22:17:14 +0000
committerDan Gohman <gohman@apple.com>2012-09-26 22:17:14 +0000
commit8a63f99f038e56245d0f5049966727cc87264c0c (patch)
tree127f91653b16c7799497f1472121aa3787d3f26d /include
parent896f37f0f9fa928987a66dca6d67aec38895091b (diff)
downloadllvm-8a63f99f038e56245d0f5049966727cc87264c0c.tar.gz
llvm-8a63f99f038e56245d0f5049966727cc87264c0c.tar.bz2
llvm-8a63f99f038e56245d0f5049966727cc87264c0c.tar.xz
Add IRBuilder code for adding !tbaa.struct metadata tags to llvm.memcpy calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/IRBuilder.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/llvm/IRBuilder.h b/include/llvm/IRBuilder.h
index f9d219f3a0..46720983e4 100644
--- a/include/llvm/IRBuilder.h
+++ b/include/llvm/IRBuilder.h
@@ -285,12 +285,15 @@ public:
/// If the pointers aren't i8*, they will be converted. If a TBAA tag is
/// specified, it will be added to the instruction.
CallInst *CreateMemCpy(Value *Dst, Value *Src, uint64_t Size, unsigned Align,
- bool isVolatile = false, MDNode *TBAATag = 0) {
- return CreateMemCpy(Dst, Src, getInt64(Size), Align, isVolatile, TBAATag);
+ bool isVolatile = false, MDNode *TBAATag = 0,
+ MDNode *TBAAStructTag = 0) {
+ return CreateMemCpy(Dst, Src, getInt64(Size), Align, isVolatile, TBAATag,
+ TBAAStructTag);
}
CallInst *CreateMemCpy(Value *Dst, Value *Src, Value *Size, unsigned Align,
- bool isVolatile = false, MDNode *TBAATag = 0);
+ bool isVolatile = false, MDNode *TBAATag = 0,
+ MDNode *TBAAStructTag = 0);
/// CreateMemMove - Create and insert a memmove between the specified
/// pointers. If the pointers aren't i8*, they will be converted. If a TBAA