hameeza ahmed via llvm-dev
2017-Jul-23 10:31 UTC
[llvm-dev] setOperationAction(ISD::ADD, MVT::v16i32, Legal) in isellowering.cpp
Hello,
I want to ask why the following is not defined in x86isellowering.cpp
setOperationAction(ISD::ADD,MVT::v16i32, Legal);
means i havent seen this in x86iselolwering.cpp then how it considers
v16i32 add/ sub a legal operation? but i have seen this defined for mul i.e
setOperationAction(ISD::MUL, MVT::v16i32, Legal);
but this is not defined for add and sub why??
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20170723/23eee402/attachment.html>
Craig Topper via llvm-dev
2017-Jul-23 14:37 UTC
[llvm-dev] setOperationAction(ISD::ADD, MVT::v16i32, Legal) in isellowering.cpp
I think ADD and SUB are called in a loop that iterates over a list of types. On Sun, Jul 23, 2017 at 3:31 AM hameeza ahmed <hahmed2305 at gmail.com> wrote:> Hello, > > I want to ask why the following is not defined in x86isellowering.cpp > > setOperationAction(ISD::ADD,MVT::v16i32, Legal); > > means i havent seen this in x86iselolwering.cpp then how it considers > v16i32 add/ sub a legal operation? but i have seen this defined for mul i.e > > setOperationAction(ISD::MUL, MVT::v16i32, Legal); > > but this is not defined for add and sub why?? >-- ~Craig -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170723/37fabdd9/attachment-0001.html>