We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2d740e commit b9f0c27Copy full SHA for b9f0c27
text/0000-compiler-fence-intrinsics.md
@@ -49,6 +49,12 @@ appropriate.
49
negative impact on performance in some situations where a compiler-only fence
50
is appropriate.
51
52
+ * Recommend inline assembly to get a similar effect, such as `asm!("" :::
53
+ "memory" : "volatile")`. LLVM provides an IR item specifically for this case
54
+ (`fence singlethread`), so I believe taking advantage of that feature in LLVM is
55
+ most appropriate, since its semantics are more rigorously defined and less
56
+ likely to yield unexpected (but not necessarily wrong) behavior.
57
+
58
# Unresolved questions
59
60
These intrinsics may be better represented with a different name, such as
0 commit comments