<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 20, 2011, at 11:47 AM, John Criswell wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">

  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#ffffff" text="#000000">
    On 6/20/11 10:39 AM, Justin Holewinski wrote:
    <blockquote cite="mid:0DE54E83-F97E-468C-AECA-5FA7C8A66D10@gmail.com" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div>For the PTX back-end, I would like to introduce a
        configure-time option to determine the number of architectural
        registers available to LLVM register allocation during code
        generation.  The motivation for this is PTX is a virtual
        instruction set and the number of registers is configurable in
        the output file.  Thus, the number of registers specified via
        tablegen is arbitrary.  For different use-cases, it may be
        desirable to change this number.</div>
    </blockquote>
    <br>
    Is it possible to make this option a command-line option to llc
    instead of a configure-time option?<br></div></blockquote><div><br></div><div>Ideally, that would be the way to go.  However, as far as I know, LLVM requires static register data that is generated from tablegen files.  The only way I can think of changing this data is by automatically generating the tablegen files at configure time.</div><br><blockquote type="cite"><div bgcolor="#ffffff" text="#000000">
    <br>
    In my experience, it's better to make these options command-line
    options to tools when possible; that way, when someone wants to
    experiment with changing the parameter, they do not need to
    recompile.<br></div></blockquote><div><br></div><div>I completely agree.  Unfortunately, I do not believe that is possible in this case (without major LLVM back-end changes).</div><br><blockquote type="cite"><div bgcolor="#ffffff" text="#000000">
    <br>
    -- John T.<br>
    <br>
  </div>

</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Thanks,<br><br>Justin Holewinski</span>
</div>
<br></body></html>