<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-05 14:28 GMT+08:00 Leslie Zhai <span dir="ltr"><<a href="mailto:lesliezhai@llvm.org.cn" target="_blank">lesliezhai@llvm.org.cn</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">您好 Chen :)<br>
<br>
I'm the maintainer for LLVM AVR backend wanted to update WritingAnLLVMBackend document. My apologies for the delay in responding.<br>
<br>
I respect the document's original authors! Sorry for breaking consistent.<br>
<br>
At the very beginning: SparcV8 skeleton <a href="https://github.com/llvm-mirror/llvm/commit/e785e531f4495068ee46cabd926939eec15a565a#diff-6998035da03f58a8c7e0ac3de7d21276" rel="noreferrer" target="_blank">https://github.com/llvm-mirror<wbr>/llvm/commit/e785e531f4495068e<wbr>e46cabd926939eec15a565a#diff-6<wbr>998035da03f58a8c7e0ac3de7d2127<wbr>6</a><br>
<br>
It was very close to the SPARC target example:<br>
<br>
- similar constructor's variables<br>
<br>
- similar get*Info methods<br>
<br>
But the structure of backends and related components often be changed:<br>
<br>
- <a href="https://reviews.llvm.org/D30879" rel="noreferrer" target="_blank">https://reviews.llvm.org/D3087<wbr>9</a><br>
<br>
- <a href="https://reviews.llvm.org/D31875" rel="noreferrer" target="_blank">https://reviews.llvm.org/D3187<wbr>5</a><br>
<br>
So doc might be out-of-date, but never mind, I can read the source code directly :)<br></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​We all know the document is out-of-date once it has been written. :-) My thought is you can give</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">a general guild line, using existing backend as an example. Consistency is very subjective,<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">that's why I think you can write up a draft document, explaining what you want to improve, let</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">other has a solid base to give comment and feedback.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></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><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>