[llvm] 72a9e7c - [OpenMP][FIX] Do not use InaccessibleMemOrArgMemOnly for barrier and flush

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 22 08:21:04 PDT 2020


Test?

On Wed, Apr 22, 2020 at 6:20 PM Johannes Doerfert via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
>
>
> Author: Johannes Doerfert
> Date: 2020-04-22T10:18:46-05:00
> New Revision: 72a9e7c926f4e32f209e528ec407fe526da5587e
>
> URL: https://github.com/llvm/llvm-project/commit/72a9e7c926f4e32f209e528ec407fe526da5587e
> DIFF: https://github.com/llvm/llvm-project/commit/72a9e7c926f4e32f209e528ec407fe526da5587e.diff
>
> LOG: [OpenMP][FIX] Do not use InaccessibleMemOrArgMemOnly for barrier and flush
>
> This was reported as PR45635.
>
> Added:
>
>
> Modified:
>     llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
>
> Removed:
>
>
>
> ################################################################################
> diff  --git a/llvm/include/llvm/Frontend/OpenMP/OMPKinds.def b/llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
> index 1a82d772d26a..7599a7c98175 100644
> --- a/llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
> +++ b/llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
> @@ -389,24 +389,16 @@ __OMP_ATTRS_SET(SetterAttrs,
>  #define __OMP_RTL_ATTRS(Name, FnAttrSet, RetAttrSet, ArgAttrSets)              \
>    OMP_RTL_ATTRS(OMPRTL_##Name, FnAttrSet, RetAttrSet, ArgAttrSets)
>
> -__OMP_RTL_ATTRS(__kmpc_barrier,
> -                AttributeSet(EnumAttr(InaccessibleMemOrArgMemOnly)),
> -                AttributeSet(), {})
> +__OMP_RTL_ATTRS(__kmpc_barrier, AttributeSet(), AttributeSet(), {})
>  __OMP_RTL_ATTRS(__kmpc_cancel,
>                  AttributeSet(EnumAttr(InaccessibleMemOrArgMemOnly)),
>                  AttributeSet(), {})
> -__OMP_RTL_ATTRS(__kmpc_cancel_barrier,
> -                AttributeSet(EnumAttr(InaccessibleMemOrArgMemOnly)),
> -                AttributeSet(), {})
> -__OMP_RTL_ATTRS(__kmpc_flush,
> -                AttributeSet(EnumAttr(InaccessibleMemOrArgMemOnly)),
> -                AttributeSet(), {})
> +__OMP_RTL_ATTRS(__kmpc_cancel_barrier, AttributeSet(), AttributeSet(), {})
> +__OMP_RTL_ATTRS(__kmpc_flush, AttributeSet(), AttributeSet(), {})
>  __OMP_RTL_ATTRS(__kmpc_global_thread_num, GetterAttrs, AttributeSet(), {})
>  __OMP_RTL_ATTRS(__kmpc_fork_call, AttributeSet(EnumAttr(NoUnwind)),
>                  AttributeSet(), {})
> -__OMP_RTL_ATTRS(__kmpc_omp_taskwait,
> -                AttributeSet(EnumAttr(InaccessibleMemOrArgMemOnly)),
> -                AttributeSet(), {})
> +__OMP_RTL_ATTRS(__kmpc_omp_taskwait, AttributeSet(), AttributeSet(), {})
>  __OMP_RTL_ATTRS(__kmpc_omp_taskyield,
>                  AttributeSet(EnumAttr(InaccessibleMemOrArgMemOnly)),
>                  AttributeSet(), {})
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list