<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Mar 3, 2018, at 8:22 PM, Janardhan Pulivarthi via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Matthias,</div></div></blockquote><div>please add me to CC when contacting me. I'm not always able to keep up with all the traffic on the llvm mailing lists.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">I am a fourth year undergraduate student with some knowledge working on code generation, but with the java backend (committer at an Apache project) and have C++ as my primary language.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">What I've done so far?</div><div class="">-----</div><div class="">1. I've created an account on bugzilla</div><div class="">2. studying LLVM ProgrammersManual</div><div class="">3. studying LLVM CodingStandards</div><div class=""><br class=""></div><div class="">Help</div><div class="">----</div><div class="">1. trying to setup `llvm-core` and `clang` on Microsoft Visual Studio 2017, can I work windows or please find me a best configuration of OS. </div></div></div></blockquote><div>It’s best to read the Getting Started documentation: <a href="http://llvm.org/docs/GettingStarted.html" class="">http://llvm.org/docs/GettingStarted.html</a> and in your case: <a href="http://llvm.org/docs/GettingStartedVS.html" class="">http://llvm.org/docs/GettingStartedVS.html</a></div><div><br class=""></div><div>Developing llvm on the command line with cmake/ninja (on linux, macOS, windows linux subsystem(?), ...) is probably the more common configuration and may increase your chances of getting help. You also usually can find help with getting started on the IRC channel.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">2. Can I fix any bug related to codegen testing.</div></div></div></blockquote><div><br class=""></div><div>In theory you should be able to dump a program to .mir at any point in the codegen pipeline and continue later. In practice this is still fails a lot so an easy way to find something to fix is picking test cases from say llvm/test/CodeGen/{AArch64|X86|…}/*.ll and do something like:</div><div><br class=""></div><div># A) This should just work, you may need to add some of the extra flags at the beginning of the file</div><div>$ llc testcase.ll</div><div><br class=""></div><div># B) It should be possible to interrupt at any pass ("prologepilog" in this example) and resume. But in practice this often fails:</div><div>$ llc -stop-before prologepilog  testcase.ll -o /tmp/before_prologepilog.mir</div><div>$ llc -start-before prologepilog /tmp/before/prologepilog.mir</div><div><br class=""></div><div>It should be easy to find cases where A) works and B) fails. You could write some scripts to find these cases and also experiment with other passes than "prologepilog". I found dozens when I just tried it, to give you two examples:</div><div><br class=""></div><div>test/CodeGen/X86/2012-08-28-UnsafeMathCrash.ll   results in:</div><div><div>error: /tmp/stopped.mir:92:37: missing implicit register operand 'implicit %st0'</div><div>    UCOM_Fr $st1, implicit-def $fpsw</div><div><br class=""></div><div>test/CodeGen/X86/2012-12-12-DAGCombineCrash.ll results in:</div><div><div>error: /tmp/stopped.mir:84:20: alloca instruction named '<unnamed alloca>' isn't defined in the function 't'</div><div>  - { id: 0, name: '<unnamed alloca>', type: default, offset: 0, size: 4,</div><div><br class=""></div><div>- Matthias</div></div></div><div><br class=""></div></div><div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks a lot,</div><div class="">Janardhan</div></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></body></html>