[llvm-commits] [llvm] r136665 - /llvm/trunk/include/llvm/Support/IRBuilder.h

Eli Friedman eli.friedman at gmail.com
Mon Aug 1 17:45:35 PDT 2011


Author: efriedma
Date: Mon Aug  1 19:45:35 2011
New Revision: 136665

URL: http://llvm.org/viewvc/llvm-project?rev=136665&view=rev
Log:
Fix a couple silly typos in IRBuilder in the new atomic instructions.


Modified:
    llvm/trunk/include/llvm/Support/IRBuilder.h

Modified: llvm/trunk/include/llvm/Support/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IRBuilder.h?rev=136665&r1=136664&r2=136665&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/Support/IRBuilder.h Mon Aug  1 19:45:35 2011
@@ -770,14 +770,14 @@
                          SynchronizationScope SynchScope = CrossThread) {
     return Insert(new FenceInst(Context, Ordering, SynchScope));
   }
-  FenceInst *CreateAtomicCmpXchg(Value *Ptr, Value *Cmp, Value *New,
-                                 AtomicOrdering Ordering,
-                                 SynchronizationScope SynchScope = CrossThread){
+  AtomicCmpXchgInst *CreateAtomicCmpXchg(Value *Ptr, Value *Cmp, Value *New,
+                                         AtomicOrdering Ordering,
+                               SynchronizationScope SynchScope = CrossThread) {
     return Insert(new AtomicCmpXchgInst(Ptr, Cmp, New, Ordering, SynchScope));
   }
-  FenceInst *CreateAtomicRMW(AtomicRMWInst::BinOp Op, Value *Ptr, Value *Val,
-                             AtomicOrdering Ordering,
-                             SynchronizationScope SynchScope = CrossThread) {
+  AtomicRMWInst *CreateAtomicRMW(AtomicRMWInst::BinOp Op, Value *Ptr, Value *Val,
+                                 AtomicOrdering Ordering,
+                               SynchronizationScope SynchScope = CrossThread) {
     return Insert(new AtomicRMWInst(Op, Ptr, Val, Ordering, SynchScope));
   }
   Value *CreateGEP(Value *Ptr, ArrayRef<Value *> IdxList,





More information about the llvm-commits mailing list