<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">This depends on what you mean by "instruction". More context would have been useful.</div><div class=""><br class=""></div>LLVM IR is typed, and therefore you will see the operation applied to vector-typed arguments. For example `%3 = add i32 %1, %2` is the scalar version, `%3 = add <4 x i32> %1, %2` is the vectorised version (for a given IR vector type). The language reference [] has specifics on which instructions can operate on both vectors and scalars. <div class=""><br class=""></div><div class="">I don't know anything about MIR.</div><div class=""><br class=""></div><div class="">If you're looking at target-specific instructions (such as x86), you should look up the instruction documentation as provided by the manufacturer/ISA)</div><div class=""><br class=""></div><div class="">Sam</div><div class=""><br class=""></div><div class="">[] <a href="https://llvm.org/docs/LangRef.html" class="">https://llvm.org/docs/LangRef.html</a><br class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 29 Aug 2017, at 2:44 am, Anastasiya Ruzhanskaya via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hello,<br class=""></div>is there a good way to determine that the instruction is a vector instruction? Or the only way like it's size is multiple of the operands size?<br class=""></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--</div><div class="">Archibald Sam Elliott</div><div class=""><a href="mailto:ashe2@cs.washington.edu" class="">ashe2@cs.washington.edu</a></div><div class="">PhD Student, PLSE Group</div></div></div></div></div></div>
</div>
<br class=""></div></div></body></html>