[PATCH] D125937: [NVVM] Update intrinsic defintions to include the `nocallback` attribute
Joseph Huber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 18 16:40:02 PDT 2022
jhuber6 created this revision.
jhuber6 added reviewers: tra, jdoerfert.
Herald added subscribers: mattd, gchakrabarti, jholewinski.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.
This patch adds the `nocallback` attribute to the NVVM intrinsics that
did not use the `DefaultAttrsIntrinsic` method that includes it already.
The `nocallback` attribute states that the intrinsic function cannot
enter back into the caller's translation-unit. This allows as to
determine that a function calling a `nocallback` function can have the
`norecurse` attribute. This should be safe for all the NVVM intrinsics
because they do not call other functions within the translation unit.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D125937
Files:
llvm/include/llvm/IR/IntrinsicsNVVM.td
llvm/test/Transforms/OpenMP/barrier_removal.ll
llvm/test/Transforms/OpenMP/replace_globalization.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125937.430534.patch
Type: text/x-patch
Size: 33053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220518/cce6c989/attachment.bin>
More information about the llvm-commits
mailing list