[LLVMdev] SSE Scalar Convert Intrinsics

David Greene dag at cray.com
Fri Jun 5 16:05:35 PDT 2009


On Friday 05 June 2009 17:41, Dan Gohman wrote:
> 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.

Ok, that'd be cool.  :)

                             -Dave



More information about the llvm-dev mailing list