Displaying 2 results from an estimated 2 matches for "vectorizedload".
2015 Apr 15
1
[LLVMdev] How to do bitcast for double to <2 x double>
...tion* pInst) {
> Value *loadValue = pInst->getOperand(0);
> Instruction *newLoad; //this one should be 2% = load < 2 x double>* %1
>
> BitCastInst *scalarToVector = new BitCastInst(loadValue,
> VectorType::get(Type::getDoubleTy(currF->getContext()), 2),
> "vectorizedLoad", pInst);
> newLoad = new LoadInst(); //to be implemented...
> return newLoad;
> }
>
> On Wed, Apr 15, 2015 at 1:03 PM, mats petersson <mats at planetcatfish.com>
> wrote:
>>
>> Create a type that is a "vector (array) of 2 double", and then a
&...
2015 Apr 15
2
[LLVMdev] How to do bitcast for double to <2 x double>
How can I write code to generate IR for:
%2 = bitcast double* %1 to <2 x double>*.
%3 = load <2 x double>* %2, align 16
Basically, it is similar to x86 _mm_load_pd1 intrinsics.
Thanks,
Zhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150415/66489860/attachment.html>