[PATCH] D75917: Expose llvm fence instruction as clang intrinsic
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 22 08:06:13 PDT 2020
JonChesterfield added inline comments.
================
Comment at: clang/test/CodeGenCXX/builtin-amdgcn-fence-failure.cpp:5
+
+void test_amdgcn_fence_failure() {
+
----------------
arsenm wrote:
> Does this really depend on C++? Can it use OpenCL like the other builtin tests?This also belongs in a Sema* test directory since it's checking an error
Making it opencl-only would force some of the openmp runtime to be written in opencl, which is not presently the case. Currently that library is written in a dialect of hip, but there's a plan to implement it in openmp instead.
I'd much rather this builtin work from any language, instead of tying it to opencl, as that means one can use it from openmp target regions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75917/new/
https://reviews.llvm.org/D75917
More information about the cfe-commits
mailing list