<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">On 07/12/2018 02:32 PM, hameeza ahmed
      via llvm-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFMPKebvhH=AJ5YcKUAiWPOnrU85QNTiZ5i4M25p4DiF+NDL1w@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>If we pass march=knl, the llvm vectorizer (O3) generates
          max 16xi32 vector width instruction and 8xi32 or 4xi32 in
          recursive manner.</div>
        <div><br>
        </div>
        <div>I am working on a target with larger vector widths like
          32,64...</div>
        <div>Now how to enable the vectorizer (O3) to automatically
          generate larger vector size instructions recursively by
          specifying the new target. Which files have the code for this?</div>
      </div>
    </blockquote>
    <br>
    I believe that the thing that you're trying to affect is this:<br>
    <br>
    <blockquote type="cite">LoopVectorizationCostModel::computeFeasibleMaxVF(bool
      OptForSize,<br>
                                                       unsigned
      ConstTripCount) {<br>
      ...<br>
        unsigned WidestRegister = TTI.getRegisterBitWidth(true);</blockquote>
    <br>
    and so your target's TargetTransformInfo class should return an
    appropriate value from getRegisterBitWidth.<br>
    <br>
     -Hal<br>
    <br>
    <blockquote type="cite"
cite="mid:CAFMPKebvhH=AJ5YcKUAiWPOnrU85QNTiZ5i4M25p4DiF+NDL1w@mail.gmail.com">
      <div dir="ltr">
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Please help</div>
        <div><br>
        </div>
        <div>Thank You</div>
        <div>Regards</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <!--'"--><br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory</pre>
  </body>
</html>