[LLVMdev] Gather load in LLVM IR

Nicholas Chapman admin at indigorenderer.com
Tue Jan 14 11:11:12 PST 2014


Hi All,
I was in the process of implementing a gathering load for my language.  
I got the getelementptr vector form working.  However there doesn't seem 
to be a way to load a vector of values using the vector of pointers from 
getelementptr.  Am I correct that this is not possible with LLVM IR 
currently (apart from with the avx2 gather intrinsic)?

And if so, are there plans to allow loading of a vector of values?

I think extending the load instruction to take a vector of pointers (as 
would be produced by getelementptr) would work well.

Thanks,
     Nick C.




More information about the llvm-dev mailing list