On Fri, 2012-10-05 at 01:48 +0200, Roland Scheidegger wrote:
> Out of curiousity is mcjit for ppc64 somewhat working already?

Hi Roland, 

Patches for ppc64 support for mcjit have been going into the llvm tree,
so certainly working better now than before.  (Better than the existing
JIT in any case).  


> But otherwise looks good to me.

Thanks! 
   I don't have commit access. Should I repost without the [RFC], or can
you / someone commit this change as-is ? 


Thanks, 
-Will


> 
> Roland
> 
> 
> Am 04.10.2012 23:25, schrieb Will Schmidt:
> > Hi, 
> >   RFC and consideration..   Specify MCJit for ppc64.
> > 
> >  - Per commentary and direction in the llvm community, support for ppc64
> > is going into MCJIT rather than the old JIT.  There is no existing
> > support in prior llvm versions, so no need to specify LLVM version
> > numbers. 
> > 
> > Signed-off-by: Will Schmidt  <[email protected]>
> > ---
> >  lp_bld_init.c |    5 ++++-
> >  1 file changed, 4 insertions(+), 1 deletion(-)
> > 
> > 
> > diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c 
> > b/src/gallium/auxiliary/gallivm/lp_bld_init.c
> > index ffbe3ea..e3b498c 100644
> > --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c
> > +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c
> > @@ -49,7 +49,10 @@
> >   *   - MC-JIT supports limited OSes (MacOSX and Linux)
> >   * - standard JIT in LLVM 3.1, with backports
> >   */
> > -#if HAVE_LLVM >= 0x0302 || (HAVE_LLVM == 0x0301 && 
> > defined(HAVE_JIT_AVX_SUPPORT))
> > +#if defined(PIPE_ARCH_PPC_64)
> > +#  define USE_MCJIT 1
> > +#  define HAVE_AVX 0
> > +#elif HAVE_LLVM >= 0x0302 || (HAVE_LLVM == 0x0301 && 
> > defined(HAVE_JIT_AVX_SUPPORT))
> >  #  define USE_MCJIT 0
> >  #  define HAVE_AVX 1
> >  #elif HAVE_LLVM == 0x0301 && (defined(PIPE_OS_LINUX) || 
> > defined(PIPE_OS_APPLE))
> > 
> > 
> > _______________________________________________
> > mesa-dev mailing list
> > [email protected]
> > http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> > 
> 
> _______________________________________________
> mesa-dev mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 


_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to