[LLVMdev] Register based vector insert/extract
Chris Lattner
sabre at nondot.org
Mon Apr 23 10:31:05 PDT 2007
On Mon, 23 Apr 2007, Christopher Lamb wrote:
> How can one let the back end know how to insert and extract elements of
> a vector through sub-register copies? I'm at a loss how to do this...
You probably want to custom lower the insertelement/extractelement
operations for the cases you support. Take a look at
X86TargetLowering::LowerEXTRACT_VECTOR_ELT for some examples of how to do
this.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list