<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_8804205472407521942WordSection1">
<p class="MsoNormal"><u></u>1.<span style="font-size:7pt;font-family:"Times New Roman",serif">      
</span>Using exactly the existing LLVM integer type:</p><p class="m_8804205472407521942MsoListParagraph"><u></u></p>
<p class="m_8804205472407521942MsoListParagraph" style="margin-left:1.0in">a.<span style="font-size:7.0pt;font-family:"Times New Roman",serif">        </span>How to distinguish fixed point data and regular integer data types during lowering and register allocation
 (if there is operations that operates on different type of registers than GPRs)? (Any functional, performance concerns here?)<u></u><u></u></p>
<p class="m_8804205472407521942MsoListParagraph" style="margin-left:1.0in">b.     For parameter passing, linkage support, should we use “attribute” to support it?<u></u><u></u></p>
<p class="m_8804205472407521942MsoListParagraph" style="margin-left:1.0in">c.     Will there be any transformations/optimizations (e.g. SROA) that operates on integer types but may not be suitable to Fixed point types?</p></div></div></blockquote><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">​From what I can tell from the links you provide, the general suggestion is​</div> <div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">​let Clang emit fix-point type as LLVM integer type (iN). Perhaps you can distinguish it (say, i40) from regular integer type (i32), and make backend use particular register or operation on it. If not, you have to emit LLVM (?) intrinsic to help LLVM make the decision.</div></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline"><br></div></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​Regards,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">chenwj​</div></div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Wei-Ren Chen (陳韋任)<br>Homepage: <a href="https://people.cs.nctu.edu.tw/~chenwj" target="_blank">https://people.cs.nctu.edu.tw/~chenwj</a></div></div></div>
</div></div>