<div dir="ltr">The reason for my suggestion is that adding intrinsics is also considered to be a breaking change.<div><br></div><div>This is the third question/suggestion in the last week or so where the intrinsics/pseudo-function idea has been raised. Perhaps what llvm really needs is a 'generic' pseudo-intrinsic of some kind?<br>
<br><div class="gmail_quote">2009/3/30 Milos Puzovic <span dir="ltr"><<a href="mailto:milos.puzovic@gmail.com">milos.puzovic@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote">2009/3/30 someguy <span dir="ltr"><<a href="mailto:just.s0m3.guy%2Bllvmdev@gmail.com" target="_blank">just.s0m3.guy+llvmdev@gmail.com</a>></span><div class="im"><br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">


<div dir="ltr">Can you not achieve the same effect without adding intrinsics? Insert function calls to a __spawn and __join pseudo-function instead?</div></blockquote></div><div>It would make LLVM code generation more difficult because instead of building a new instruction (in this case intrinsic) you will be building complex function calls and therefore making much more changes to the existing front-end of your existing language if you want it to support parallel programing. Analysis of generated LLVM code will become more difficult because now instead of simply looking at the instructions you will also need to look at the function calls and see if they are calling any pseudo-functions which might require changes to the LLVM API as well. Finally, the same goes when writting a back-end for the processor of your choice -- you would really like to just add new code for building threads not to modify the existing one for function calls. In summary, adding intrinsics gives you a structure and nice code :)<br>


<br>Ideally, I would really like to see these intrinsic as instructions. Because adding new instructions to LLVM language requires changing all of the transformation of LLVM and I really want to have working version of code and useful results by the end of GSoC I have decided to go this way. Once it (if :) is demonstrated that this extension does aid multi-core code generation and LLVM community is happy with it I would be happy to add them as instructions.<br>


<br>Thanks,<br>Milos.<br></div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">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></blockquote></div><br></div></div>