[PATCH] D75917: Expose llvm fence instruction as clang intrinsic

Saiyedul Islam via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 10 06:24:13 PDT 2020


saiislam created this revision.
saiislam added reviewers: JonChesterfield, sameerds, yaxunl, gregrodgers, b-sumner.
Herald added subscribers: cfe-commits, jfb.
Herald added a project: clang.

"__buitlin_memory_fence(<ordering>, <target-scope>)" in clang gets
mapped to "fence [syncscope("<target-scope>")] <ordering>; yields void"
in IR.


Repository:
  rC Clang

https://reviews.llvm.org/D75917

Files:
  clang/include/clang/Basic/Builtins.def
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/lib/Sema/SemaChecking.cpp
  clang/test/CodeGenOpenCL/atomic-ops.cl
  clang/test/SemaOpenCL/atomic-ops.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75917.249340.patch
Type: text/x-patch
Size: 9308 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200310/88bb07bb/attachment-0001.bin>


More information about the cfe-commits mailing list