On Sun, 08 Nov 2009 17:47:31 -0500, Lutger <[email protected]>
wrote:
Mike Farnsworth wrote:
...
Of course, there are some operations that the available SSE intrinsics
cover that the compiler can't expose via the typical operators, so those
still need to be supported somehow. Does anyone know if ldc or dmd has
those, or if they'll optimize away SSE loads and stores if I roll my own
structs with asm blocks? I saw from the ldc source it had the usual
llvm
intrinsics, but as far as hardware-specific codegen intrinsics I
couldn't
spot any.
Thanks,
Mike Farnsworth
Have you seen this page?
http://www.dsource.org/projects/ldc/wiki/InlineAsmExpressions
This is similar to gcc's (gdc has it too) extended inline asm
expressions.
I'm not at all in the know about all this, but I think this will allow
you
to built something yourself that works well with the optimizations done
by
the compiler. If someone could clarify how these inline expressions work
exactly, that would be great.
SSE intrinsics allow you to specify the operation, but allow the compiler
to do the register assignments, inlining, etc. D's inline asm requires the
programmer to manage everything.