diff options
author | Filip Pizlo <fpizlo@apple.com> | 2013-11-20 00:07:49 +0000 |
---|---|---|
committer | Filip Pizlo <fpizlo@apple.com> | 2013-11-20 00:07:49 +0000 |
commit | d54beffaa39fe81f0d77305385419c96baefe708 (patch) | |
tree | 16aed1de9a0e20ff7e32da822dc3f0be87557f36 /include/llvm/IR/IRBuilder.h | |
parent | 3da011f561dfbc5e12ab25af09f6020ceabb28c0 (diff) | |
download | llvm-d54beffaa39fe81f0d77305385419c96baefe708.tar.gz llvm-d54beffaa39fe81f0d77305385419c96baefe708.tar.bz2 llvm-d54beffaa39fe81f0d77305385419c96baefe708.tar.xz |
Expose the fence instruction via the C API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195173 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR/IRBuilder.h')
-rw-r--r-- | include/llvm/IR/IRBuilder.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index 8d1432d6c9..56e818417a 100644 --- a/include/llvm/IR/IRBuilder.h +++ b/include/llvm/IR/IRBuilder.h @@ -915,8 +915,9 @@ public: return SI; } FenceInst *CreateFence(AtomicOrdering Ordering, - SynchronizationScope SynchScope = CrossThread) { - return Insert(new FenceInst(Context, Ordering, SynchScope)); + SynchronizationScope SynchScope = CrossThread, + const Twine &Name = "") { + return Insert(new FenceInst(Context, Ordering, SynchScope), Name); } AtomicCmpXchgInst *CreateAtomicCmpXchg(Value *Ptr, Value *Cmp, Value *New, AtomicOrdering Ordering, |