[LLVMdev] SSE Scalar Convert Intrinsics

Dan Gohman gohman at apple.com
Fri Jun 5 15:41:42 PDT 2009


On Jun 5, 2009, at 3:16 PM, David Greene wrote:

> On Friday 05 June 2009 15:19, Dan Gohman wrote:
>
>> One thing we'd like to do at some point is have front-ends lower
>> intrinsics for scalar instructions into
>> extractelement+op+insertelement, so that we don't need two
>> versions of each of the instructions.  Doing this for everything
>> will require some work to make sure that the extra insert/extract
>> operators don't incur unnecessary copying, but that's also
>> something we'd like to do regardless.
>
> So then how does one do a memop intrinsic?  Does it mean we can't
> match to the memop versions of instructions?

Memory operands would be lowered to explicit loads and stores,
which would be pattern-matched into memop instructions by
instruction selection.

Dan




More information about the llvm-dev mailing list