[Mesa-dev] [PATCH] gallivm: Allow target specific intrinsics in lp_declare_intrinsic()

Jose Fonseca jfonseca at vmware.com
Mon Jan 9 10:25:26 PST 2012


Looks good Tom.

Jose

----- Original Message -----
> Target specific intrinsics are also prefixed with llvm, so this
> assert
> was preventing us from using them.
> ---
>  src/gallium/auxiliary/gallivm/lp_bld_intr.c |    7 -------
>  1 files changed, 0 insertions(+), 7 deletions(-)
> 
> diff --git a/src/gallium/auxiliary/gallivm/lp_bld_intr.c
> b/src/gallium/auxiliary/gallivm/lp_bld_intr.c
> index 518a01f..2323f12 100644
> --- a/src/gallium/auxiliary/gallivm/lp_bld_intr.c
> +++ b/src/gallium/auxiliary/gallivm/lp_bld_intr.c
> @@ -70,13 +70,6 @@ lp_declare_intrinsic(LLVMModuleRef module,
>  
>     assert(LLVMIsDeclaration(function));
>  
> -   if(name[0] == 'l' &&
> -      name[1] == 'l' &&
> -      name[2] == 'v' &&
> -      name[3] == 'm' &&
> -      name[4] == '.')
> -      assert(LLVMGetIntrinsicID(function));
> -
>     return function;
>  }
>  
> --
> 1.7.3.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 


More information about the mesa-dev mailing list