[llvm-commits] [llvm-gcc-4.2] r52730 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Duncan Sands baldrick at free.fr
Wed Jun 25 09:58:06 PDT 2008


Author: baldrick
Date: Wed Jun 25 11:58:04 2008
New Revision: 52730

URL: http://llvm.org/viewvc/llvm-project?rev=52730&view=rev
Log:
Adjust atomic intrinsic names due to name change.

Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=52730&r1=52729&r2=52730&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Wed Jun 25 11:58:04 2008
@@ -4507,7 +4507,7 @@
 
     Result = 
       Builder.CreateCall(Intrinsic::getDeclaration(TheModule, 
-                                                   Intrinsic::atomic_lcs, 
+                                                   Intrinsic::atomic_cmp_swap, 
                                                    &Ty, 1),
       C, C + 3);
     if (((DECL_FUNCTION_CODE(fndecl)) == BUILT_IN_BOOL_COMPARE_AND_SWAP_1) ||
@@ -4539,7 +4539,7 @@
     C[1] = Builder.CreateIntCast(C[1], Ty, "cast");
     Result = 
       Builder.CreateCall(Intrinsic::getDeclaration(TheModule, 
-                                                   Intrinsic::atomic_las, 
+                                                   Intrinsic::atomic_load_add, 
                                                    &Ty, 1),
       C, C + 2);
     Result = Builder.CreateIntToPtr(Result, OrigTy);
@@ -4564,7 +4564,7 @@
     C[1] = Builder.CreateIntCast(C[1], Ty, "cast");
     Result = 
       Builder.CreateCall(Intrinsic::getDeclaration(TheModule, 
-                                                   Intrinsic::atomic_lss, 
+                                                   Intrinsic::atomic_load_sub, 
                                                    &Ty, 1),
       C, C + 2);
     Result = Builder.CreateIntToPtr(Result, OrigTy);
@@ -4716,7 +4716,7 @@
     C[1] = Builder.CreateIntCast(C[1], Ty, "cast");
     Result = 
       Builder.CreateCall(Intrinsic::getDeclaration(TheModule, 
-                                                   Intrinsic::atomic_las, 
+                                                   Intrinsic::atomic_load_add, 
                                                    &Ty, 1),
                          C, C + 2);
     Result = Builder.CreateAdd(Result, C[1]);
@@ -4742,7 +4742,7 @@
     C[1] = Builder.CreateIntCast(C[1], Ty, "cast");
     Result = 
       Builder.CreateCall(Intrinsic::getDeclaration(TheModule, 
-                                                   Intrinsic::atomic_lss, 
+                                                   Intrinsic::atomic_load_sub, 
                                                    &Ty, 1),
                          C, C + 2);
     Result = Builder.CreateSub(Result, C[1]);





More information about the llvm-commits mailing list