[PATCH] D75917: Expose llvm fence instruction as clang intrinsic
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 16 18:35:48 PDT 2020
JonChesterfield added a comment.
In D75917#1925617 <https://reviews.llvm.org/D75917#1925617>, @sameerds wrote:
> Is it really? The scope argument of the IR fence is a target-specific string:
> http://llvm.org/docs/LangRef.html#syncscope
>
> The change that I see here is assuming a numerical argument, and also assuming that the numbers used must conform to the OpenCL enum. That would certainly make the builtin quite different from the IR fence.
I think I follow. The syncscope takes a string, therefore the builtin that maps onto fence should also take a string for that parameter? That's fine by me. Will help if a new non-opencl syncscope is introduced later.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75917/new/
https://reviews.llvm.org/D75917
More information about the cfe-commits
mailing list