[llvm-commits] [llvm] r110035 - in /llvm/trunk: lib/Target/CellSPU/SPUCallingConv.td lib/Target/CellSPU/SPUISelLowering.cpp lib/Target/CellSPU/SPUInstrInfo.td lib/Target/CellSPU/SPUMathInstr.td test/CodeGen/CellSPU/v2i32.ll

Chris Lattner clattner at apple.com
Mon Aug 2 10:11:08 PDT 2010


On Aug 2, 2010, at 1:54 AM, Kalle Raiskila wrote:

> Author: kraiskil
> Date: Mon Aug  2 03:54:39 2010
> New Revision: 110035
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=110035&view=rev
> Log:
> Add preliminary v2i32 support for SPU backend. As there are no
> such registers in SPU, this support boils down to "emulating" 
> them by duplicating instructions on the general purpose registers. 
> 
> This adds the most basic operations on v2i32: passing parameters,
> addition, subtraction, multiplication and a few others.

Instead of duplicating instructions like this, it is generally better to teach legalize to convert them to other types.  Have you tried this?

-Chris





More information about the llvm-commits mailing list