[PATCH] D75917: Expose llvm fence instruction as clang intrinsic
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 10 07:32:18 PDT 2020
JonChesterfield added inline comments.
================
Comment at: clang/include/clang/Basic/Builtins.def:1516
+// Builtin to expose llvm fence instruction
+BUILTIN(__builtin_memory_fence, "vUiUi", "t")
----------------
`BUILTIN(__builtin_memory_fence, "vii", "n")`?
The other fence intrinsics (e.g. __c11_atomic_thread_fence) take signed integers and rely on the built in type checking, which seems reasonable here too
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