Thank you! I have read this article,and there is one dissertion about this in the attached file. What I really want to know is that if LLVM is appropriate for a block-based arch. If so,LLVM have already gained the ability to produce hyperblock or I need to write codes to let LLVM produce hyperblock? Regards, Wangwentao ,HIT On Thu, Nov 3, 2011 at 6:06 PM, 陳韋任 <chenwj at iis.sinica.edu.tw> wrote:> > So I am wondering if llvm can produce hyperblock easily,can > anyone > ^^^^^^^^^^ > Do you mean the one mentioned in the paper below? > http://www.eecs.umich.edu/~mahlke/papers/1992/mahlke_micro92.pdf > > Regards, > chenwj > > -- > Wei-Ren Chen (陳韋任) > Computer Systems Lab, Institute of Information Science, > Academia Sinica, Taiwan (R.O.C.) > Tel:886-2-2788-3799 #1667 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111103/0e353b44/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: asmith.pdf Type: application/pdf Size: 2878597 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111103/0e353b44/attachment.pdf> -------------- next part -------------- A non-text attachment was scrubbed... Name: bmaher.pdf Type: application/pdf Size: 1092791 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111103/0e353b44/attachment-0001.pdf>
> If so,LLVM have already gained the ability to produce hyperblock or I > need to write codes to let LLVM produce hyperblock?You might need to refer to this paper http://llvm.org/pubs/2007-03-Computer-Trident.pdf Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667
On Nov 3, 2011, at 3:20 AM, 王文涛 wrote:> If so,LLVM have already gained the ability to produce hyperblock or I need to write codes to let LLVM produce hyperblock?You will not be able to represent hyperblocks without developing your own extensions to the IR. The extent to which you would be able to reuse LLVM optimizations after converting to your hyperblock IR (if at all) would depend on the restrictions you place on the type of hyperblocks that can be formed. Anything beyond single-entry, single exit regions would probably be too difficult to cleanly represent. The existing LLVM optimizations that take advantage of control flow information would be effectively disabled after converting to hyperblocks. -Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111107/0b8886cb/attachment.html>
On Mon, Nov 07, 2011 at 09:34:04PM -0800, Andrew Trick wrote:> On Nov 3, 2011, at 3:20 AM, 王文涛 wrote: > > If so,LLVM have already gained the ability to produce hyperblock or I need to write codes to let LLVM produce hyperblock? > > You will not be able to represent hyperblocks without developing your own extensions to the IR. The extent to which you would be able to reuse LLVM optimizations after converting to your hyperblock IR (if at all) would depend on the restrictions you place on the type of hyperblocks that can be formed. Anything beyond single-entry, single exit regions would probably be too difficult to cleanly represent. The existing LLVM optimizations that take advantage of control flow information would be effectively disabled after converting to hyperblocks.You mean hyperblock IR -> LLVM IR? [1]'s approach is LLVM IR -> htberblock IR. [1] http://llvm.org/pubs/2007-03-Computer-Trident.pdf Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667