[PATCH] D109987: [NVVM] Update intrinsic definitions to include more attributes
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 17 11:27:33 PDT 2021
jdoerfert created this revision.
jdoerfert added reviewers: tra, jhuber6, ggeorgakoudis, tianshilei1992.
Herald added subscribers: bollu, jholewinski.
jdoerfert requested review of this revision.
Herald added a project: LLVM.
A lot of NVVM intrinsics can use the default intrinsic attributes (e.g.,
nosync, nofree, ...) as well as `speculatable`. The latter is important
if we want to recompute intrinsics results instead of communicating them
via memory.
I did use default attributes for almost all `readnone` attributes but
speculatable only where I had reasonable confidence they cannot
experience UB. That said, someone should double check.
TODO: There seem to be various intrinsics marked `Commutative` which
should not, e.g., fma and div.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109987
Files:
llvm/include/llvm/IR/IntrinsicsNVVM.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109987.373289.patch
Type: text/x-patch
Size: 68792 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210917/77f10c53/attachment-0001.bin>
More information about the llvm-commits
mailing list