[llvm-dev] Legalize sdiv Instruction for vector integer
hameeza ahmed via llvm-dev
llvm-dev at lists.llvm.org
Sat Aug 5 07:03:21 PDT 2017
Hello,
I want to write a new instruction for vector division. one for integer
other instruction for float.
I came to know llvm ir uses sdiv and fdiv for these operations respectively.
i was able to write the instruction for float/ double div without
explicitly declaring fdiv legal for vector v64f32 in isellowering.cpp file.
but when i used the same approach for int and long i was getting some
error. so for that i had to explicitly declare sdiv legal in
isellowering.cpp file as follows.
setOperationAction(ISD::SDIV, MVT::v64i32, Legal);
Why is that so? Please explain.
Thank You
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170805/f1a94c69/attachment.html>
More information about the llvm-dev
mailing list