Inlining std.atomic.AtomicFence
David Nadlinger via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Tue Jan 20 10:43:06 PST 2015
On Tue, Jan 20, 2015 at 9:33 AM, Kagamin via digitalmars-d-ldc
<digitalmars-d-ldc at puremagic.com> wrote:
> Wouldn't
> alias atomicFence = llvm_memory_fence;
> do it?
An issue with this is that the signature of llvm_memory_fence does not
match atomicFence() (it takes an extra, optional ordering parameter).
In this specific case, this discrepancy might be acceptable, but there
are also other intrinsics where we need to adapt the arguments and/or
return values.
David
More information about the digitalmars-d-ldc
mailing list