[cfe-commits] r167700 - /cfe/trunk/include/clang/Basic/BuiltinsNVPTX.def

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sun Nov 11 19:34:35 PST 2012


testcase?

On 11 November 2012 22:16, Justin Holewinski <jholewinski at nvidia.com> wrote:
> Author: jholewinski
> Date: Sun Nov 11 21:16:56 2012
> New Revision: 167700
>
> URL: http://llvm.org/viewvc/llvm-project?rev=167700&view=rev
> Log:
> [NVPTX] Fix const modifier on builtins
>
> Some NVVM intrinsics were incorrectly labeled.
>
> Modified:
>     cfe/trunk/include/clang/Basic/BuiltinsNVPTX.def
>
> Modified: cfe/trunk/include/clang/Basic/BuiltinsNVPTX.def
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/BuiltinsNVPTX.def?rev=167700&r1=167699&r2=167700&view=diff
> ==============================================================================
> --- cfe/trunk/include/clang/Basic/BuiltinsNVPTX.def (original)
> +++ cfe/trunk/include/clang/Basic/BuiltinsNVPTX.def Sun Nov 11 21:16:56 2012
> @@ -61,16 +61,16 @@
>
>
>  // Builtins exposed as part of NVVM
> -BUILTIN(__syncthreads, "v", "nc")
> -BUILTIN(__nvvm_bar0, "v", "nc")
> -BUILTIN(__nvvm_bar0_popc, "ii", "nc")
> -BUILTIN(__nvvm_bar0_and, "ii", "nc")
> -BUILTIN(__nvvm_bar0_or, "ii", "nc")
> +BUILTIN(__syncthreads, "v", "n")
> +BUILTIN(__nvvm_bar0, "v", "n")
> +BUILTIN(__nvvm_bar0_popc, "ii", "n")
> +BUILTIN(__nvvm_bar0_and, "ii", "n")
> +BUILTIN(__nvvm_bar0_or, "ii", "n")
>  BUILTIN(__nvvm_membar_cta, "v", "n")
>  BUILTIN(__nvvm_membar_gl, "v", "n")
>  BUILTIN(__nvvm_membar_sys, "v", "n")
> -BUILTIN(__nvvm_popc_i, "ii", "n")
> -BUILTIN(__nvvm_popc_ll, "iLLi", "n")
> +BUILTIN(__nvvm_popc_i, "ii", "nc")
> +BUILTIN(__nvvm_popc_ll, "LiLi", "nc")
>  BUILTIN(__nvvm_prmt, "UiUiUiUi", "nc")
>  BUILTIN(__nvvm_min_i, "iii", "nc")
>  BUILTIN(__nvvm_min_ui, "UiUiUi", "nc")
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list