<div dir="ltr">Look at how the calling convention code does it when it legalizes :)<div><br></div><div>-eric</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 9, 2014 at 2:28 PM, Reed Kotler <span dir="ltr"><<a href="mailto:reed.kotler@imgtec.com" target="_blank">reed.kotler@imgtec.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>How would you return a pair of
      registers then?<br>
      <br>
      For example, If I lower 64 bit integer and materialize a constant,
      i need to return a pair of 32 registers.<div><div class="h5"><br>
      <br>
      On 09/09/2014 01:49 PM, Eric Christopher wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      
      <div dir="ltr">You can do everything from legalize it yourself, or
        just add code to select it and legalize it in your backend
        during instruction selection. fast-isel now has support for
        completely avoiding the target independent version of the code.
        <div><br>
        </div>
        <div>-eric</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Sun, Aug 31, 2014 at 10:41 AM, Reed
          Kotler <span dir="ltr"><<a href="mailto:Reed.Kotler@imgtec.com" target="_blank">Reed.Kotler@imgtec.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I
            understand that but falling back makes the compilation
            slower.<br>
            <br>
            I'm wondering what could be done to remove this restriction
            about fast-isel not being able to<br>
            handle non legal types.<br>
            <br>
            <br>
            ________________________________________<br>
            From: Anton Korobeynikov [<a href="mailto:anton@korobeynikov.info" target="_blank">anton@korobeynikov.info</a>]<br>
            Sent: Sunday, August 31, 2014 12:55 AM<br>
            To: Reed Kotler<br>
            Cc: <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a><br>
            Subject: Re: [LLVMdev] lowering and non legal types in
            fast-isel<br>
            <div>
              <div><br>
                Fastisel should fallback to usual selector in the cases
                it cannot<br>
                handle. So, for illegal types as well.<br>
                <br>
                On Sun, Aug 31, 2014 at 1:42 AM, reed kotler <<a href="mailto:rkotler@mips.com" target="_blank">rkotler@mips.com</a>>
                wrote:<br>
                > Fast-isel is not equipped in general to deal with
                non legal types.<br>
                ><br>
                > It would seem that an llvm assembler pass run after
                clang  but before llvm<br>
                > could do the lowering though.<br>
                ><br>
                > Any thoughts?<br>
                ><br>
                > Reed<br>
                ><br>
                > _______________________________________________<br>
                > LLVM Developers mailing list<br>
                > <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> 
                       <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
                > <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
                <br>
                <br>
                <br>
                --<br>
                With best regards, Anton Korobeynikov<br>
                Faculty of Mathematics and Mechanics, Saint Petersburg
                State University<br>
                <br>
                _______________________________________________<br>
                LLVM Developers mailing list<br>
                <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> 
                       <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
                <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>