SIMD-specialized overloads of Phobos algorithms
Nicholas Wilson
iamthewilsonator at hotmail.com
Fri Jun 28 22:53:45 UTC 2019
On Friday, 28 June 2019 at 19:53:10 UTC, Per Nordlöw wrote:
> On Friday, 28 June 2019 at 16:30:31 UTC, kinke wrote:
>> It's `-mcpu=native`.
>
> Can/Could the value of this switch be detected at compile-time?
Well from the point of view of the code you usually don't really
care because it's just like passing a higher value of n to `-On`.
It's probably already implemented as an LDC specific __trait, but
if it isn't it shouldn't be too hard to add to
__traits(getTargetInfo) (the optimiser values that -mcpu=native
sets probably will be made available through getTargetInfo at
some point though).
More information about the Digitalmars-d
mailing list