[Issue 16560] [Mir] Prefetch intrinsics like in LDC
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Oct 8 21:48:48 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16560
--- Comment #4 from Илья Ярошенко <ilyayaroshenko at gmail.com> ---
Copy-past from GitHub
Wow, that was fast!
Nitpicks:
LLVM parameter is missing. This is not used now, but likely be used in the
future. For example intel CPU has non shared L1 / L2 caches. If GDC BE has not
this feature, it can just ignore it.
Only __prefetch should be presented, and it would be nice to have it as a part
of the language instead of DRuntime hack. Making it a function breaks final
fastmath optimization for LDC. So, only real intrinsics should be provided for
user without any function shells. Underscored __names looks good to me. Also
this will help to BetterC mode.
A clean API without encodings is required for __prefetch in context of (2).
--
More information about the Digitalmars-d-bugs
mailing list