[llvm-commits] [llvm-gcc-4.2] r47801 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Andrew Lenharth
andrewl at lenharth.org
Tue Mar 4 13:15:00 PST 2008
fixed
On 3/4/08, Andrew Lenharth <andrewl at lenharth.org> wrote:
> right, 64 bit atomics aren't implemented on x86 yet.
>
>
> On 3/3/08, Evan Cheng <evan.cheng at apple.com> wrote:
> > This breaks x86-64. libgomp/critical compiles to:
> >
> > define void @GOMP_critical_name_start(i8** %pptr) nounwind {
> > entry:
> > ...
> > tail call i64 @llvm.atomic.lcs.i64( i8** %pptr, i64 0, i64
> > %tmp1314 ) ; <i64>:0 [#uses=1]
> > ...
> > ret void
> > }
> >
> >
> > Evan
> >
> >
> >
> > On Mar 1, 2008, at 3:36 PM, Andrew Lenharth wrote:
> >
> > > Author: alenhar2
> > > Date: Sat Mar 1 17:36:21 2008
> > > New Revision: 47801
> > >
> > > URL: http://llvm.org/viewvc/llvm-project?rev=47801&view=rev
> > > Log:
> > > turn on some atomics for a couple platforms
> > >
> > > 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=47801&r1=47800&r2=47801&view=diff
> > >
> > > =
> > > =
> > > =
> > > =
> > > =
> > > =
> > > =
> > > =
> > > ======================================================================
> > > --- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
> > > +++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Sat Mar 1 17:36:21 2008
> > > @@ -4294,7 +4294,7 @@
> > > C, C + 5);
> > > return true;
> > > }
> > > -#if 0 //FIXME: these break the build for backends that haven't
> > > implemented them
> > > +#if defined(TARGET_386) || defined(TARGET_ALPHA)
> > > //gcc uses many names for the sync intrinsics
> > > case BUILT_IN_VAL_COMPARE_AND_SWAP_1:
> > > case BUILT_IN_VAL_COMPARE_AND_SWAP_2:
> > >
> > >
> > > _______________________________________________
> > > llvm-commits mailing list
> > > llvm-commits at cs.uiuc.edu
> > > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> >
> > _______________________________________________
> > llvm-commits mailing list
> > llvm-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> >
>
More information about the llvm-commits
mailing list