[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.81 - 1.82 --- Log message: 2.2 release. --- Diffs of the changes: (+2 -2) index.cgi |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.81 llvm-www/demo/index.cgi:1.82 --- llvm-www/demo/index.cgi:1.81Mon Oct 1 17:52:08 2007 +++ llvm-www/demo/index.cgi Tue Feb 12 01:25:41 2008 @@ -26,8 +26,8 @@ my @PREPENDPATHDIRS = ( -'/home/vadve/shared/llvm-gcc4.0-2.1/bin/', -'/home/vadve/shared/llvm-2.1/Release/bin'); +'/home/vadve/shared/llvm-gcc4.2/bin/', +'/home/vadve/shared/llvm-2.2/Release/bin'); my $defaultsrc = #include stdio.h\n#include stdlib.h\n\n . int power(int X) {\n if (X == 0) return 1;\n . ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.75 - 1.76 --- Log message: only log and mail if the code is not the default code. --- Diffs of the changes: (+17 -11) index.cgi | 28 +--- 1 files changed, 17 insertions(+), 11 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.75 llvm-www/demo/index.cgi:1.76 --- llvm-www/demo/index.cgi:1.75Sun Sep 30 17:23:13 2007 +++ llvm-www/demo/index.cgi Mon Oct 1 14:21:45 2007 @@ -18,10 +18,10 @@ my $LOGFILE = $ROOT/log.txt; my $FORM_URL= 'index.cgi'; +my $MAILADDR= '[EMAIL PROTECTED]'; my $CONTACT_ADDRESS = 'Questions or comments? Email the a href=http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev;LLVMdev mailing list/a.'; my $LOGO_IMAGE_URL = 'cathead.png'; my $TIMEOUTAMOUNT = 20; -$ENV{'LLVM_LIB_SEARCH_PATH'} = '/home/vadve/gaeke/llvm/Release/runtime/'; $ENV{'LD_LIBRARY_PATH'} = '/home/vadve/shared/localtools/fc1/lib/'; my @PREPENDPATHDIRS = @@ -29,6 +29,12 @@ '/home/vadve/shared/llvm-gcc4.0-2.1/bin/', '/home/vadve/shared/llvm-2.1/Release/bin'); +my $defaultsrc = #include stdio.h\n#include stdlib.h\n\n . + int power(int X) {\n if (X == 0) return 1;\n . + return X*power(X-1);\n}\n\n . + int main(int argc, char **argv) {\n . + printf(\%d\\n\, power(atoi(argv[0])));\n}\n; + sub getname { my ($extension) = @_; for ( my $count = 0 ; ; $count++ ) { @@ -166,14 +172,8 @@ my $source = $c-param('source'); -# Start the user out with something valid. -if (!defined($source)) { - $source = #include stdio.h\n#include stdlib.h\n\n . -int power(int X) {\n if (X == 0) return 1;\n . - return X*power(X-1);\n}\n\n . -int main(int argc, char **argv) {\n . - printf(\%d\\n\, power(atoi(argv[0])));\n}\n; -} +# Start the user out with something valid if no code. +$source = $defaultsrc if (!defined($source)); print $c-textarea( -name= source, @@ -448,6 +448,12 @@ try_run(llvm2cpp,llvm2cpp $bytecodeFile -o $l2cppFile 21, $l2cppFile); } + +# Get the source presented by the user to CGI, convert newline sequences to simple \n. +my $actualsrc = $c-param('source'); +$actualsrc =~ s/\015\012/\n/go; +# Don't log this or mail it if it is the default code. +if ($actualsrc ne $defaultsrc) { addlog( $source, $pid, $UnhilightedResult ); my ( $ip, $host, $lg, $lines ); @@ -455,7 +461,7 @@ $lg = $c-param('language'); $ip = $c-remote_addr(); chomp( $host = `host $ip` ) if $ip; -mailto( '[EMAIL PROTECTED]', +mailto( $MAILADDR', --- Query: ---\nFrom: ($ip) $host\nInput: $lines lines of $lg\n . C++ demangle = . ( $c-param('cxxdemangle') ? 1 : 0 ) @@ -465,7 +471,7 @@ . ( $c-param('showstats') ? 1 : 0 ) . \n\n . --- Source: ---\n$source\n . --- Result: ---\n$UnhilightedResult\n ); - +} unlink( $inputFile, $bytecodeFile, $outputFile, $disassemblyFile ); } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.76 - 1.77 --- Log message: fix typo --- Diffs of the changes: (+1 -1) index.cgi |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.76 llvm-www/demo/index.cgi:1.77 --- llvm-www/demo/index.cgi:1.76Mon Oct 1 14:21:45 2007 +++ llvm-www/demo/index.cgi Mon Oct 1 14:29:53 2007 @@ -461,7 +461,7 @@ $lg = $c-param('language'); $ip = $c-remote_addr(); chomp( $host = `host $ip` ) if $ip; -mailto( $MAILADDR', +mailto( $MAILADDR, --- Query: ---\nFrom: ($ip) $host\nInput: $lines lines of $lg\n . C++ demangle = . ( $c-param('cxxdemangle') ? 1 : 0 ) ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.77 - 1.78 --- Log message: don't compile before they hit submit --- Diffs of the changes: (+1 -1) index.cgi |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.77 llvm-www/demo/index.cgi:1.78 --- llvm-www/demo/index.cgi:1.77Mon Oct 1 14:29:53 2007 +++ llvm-www/demo/index.cgi Mon Oct 1 14:36:08 2007 @@ -351,7 +351,7 @@ close $fh; } -if ($source) { +if ($c-param('source')) { print $c-hr; my $extension = $suffixes{ $c-param('language') }; barf Unknown language; can't compile\n unless $extension; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.80 - 1.81 --- Log message: minor reformating. --- Diffs of the changes: (+9 -10) index.cgi | 19 +-- 1 files changed, 9 insertions(+), 10 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.80 llvm-www/demo/index.cgi:1.81 --- llvm-www/demo/index.cgi:1.80Mon Oct 1 17:44:25 2007 +++ llvm-www/demo/index.cgi Mon Oct 1 17:52:08 2007 @@ -131,19 +131,19 @@ div class=www_sectiontitle Try out LLVM in your browser! /div -EOF -if ($LOGO_IMAGE_URL) { -print img align=right width=100 height=111 src=\$LOGO_IMAGE_URL\ /; -} +table border=0trtd +img align=right width=100 height=111 src=$LOGO_IMAGE_URL +/tdtd +EOF if ( -f $ROOT/locked ) { my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$locktime) = stat($ROOT/locked); my $currtime = time(); if ($locktime + 60 $currtime) { -print pBitter Melon the cat says, 'this page is already in use by someone else at this ; -print time, try reloading in a second or two. Meow!'/p\n; +print This page is already in use by someone else at this ; +print time, try reloading in a second or two. Meow!/td/tr/table'\n; exit 0; } } @@ -151,10 +151,9 @@ system(touch $ROOT/locked); print END; - -pBitter Melon the cat says, paste a C/C++ program in the text box or upload - one from your computer, and you can see LLVM compile it, meow!!/p - +Bitter Melon the cat says, paste a C/C++ program in the text box or upload +one from your computer, and you can see LLVM compile it, meow!! +/td/tr/tablep END print $c-start_multipart_form( 'POST', $FORM_URL ); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.74 - 1.75 --- Log message: Make stats generation work again, give an example to start people off, make script relocatable, on error, give the user helpful hints. --- Diffs of the changes: (+35 -24) index.cgi | 59 +++ 1 files changed, 35 insertions(+), 24 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.74 llvm-www/demo/index.cgi:1.75 --- llvm-www/demo/index.cgi:1.74Thu Sep 27 10:40:41 2007 +++ llvm-www/demo/index.cgi Sun Sep 30 17:23:13 2007 @@ -1,12 +1,6 @@ #!/usr/dcs/software/supported/bin/perl -w # LLVM Web Demo script # -# Originally written by Brian Gaeke as the CS326 Spring 2003 script for -# doing remote web JO99C compilations. (It could still be used for that -# purpose, though the two scripts have diverged somewhat.) -# -# Last modified $Date: 2007/09/27 15:40:41 $ -# use strict; use CGI; @@ -15,11 +9,14 @@ $| = 1; +my $ROOT = /tmp/webcompile; +#my $ROOT = /home/vadve/lattner/webcompile; + open( STDERR, STDOUT ) or die can't redirect stderr to stdout; -if ( !-d /tmp/webcompile ) { mkdir( /tmp/webcompile, 0777 ); } +if ( !-d $ROOT ) { mkdir( $ROOT, 0777 ); } -my $LOGFILE = '/tmp/webcompile/log.txt'; +my $LOGFILE = $ROOT/log.txt; my $FORM_URL= 'index.cgi'; my $CONTACT_ADDRESS = 'Questions or comments? Email the a href=http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev;LLVMdev mailing list/a.'; my $LOGO_IMAGE_URL = 'cathead.png'; @@ -36,7 +33,7 @@ my ($extension) = @_; for ( my $count = 0 ; ; $count++ ) { my $name = - sprintf( /tmp/webcompile/_%d_%d%s, $$, $count, $extension ); + sprintf( $ROOT/_%d_%d%s, $$, $count, $extension ); if ( !-f $name ) { return $name; } } } @@ -46,7 +43,7 @@ sub barf { print b, @_, /b\n; print $c-end_html; -system(rm -f /tmp/webcompile/locked); +system(rm -f $ROOT/locked); exit 1; } @@ -92,12 +89,11 @@ sub syntaxHighlightLLVM { my ($input) = @_; - $input =~ [EMAIL PROTECTED](void|bool|sbyte|ubyte|short|ushort|int|uint|long|ulong|float|double|type|label|opaque)\b@span class=llvm_type$1/span@g; + $input =~ [EMAIL PROTECTED](void|i8|i1|i16|i32|i64|float|double|type|label|opaque)\b@span class=llvm_type$1/span@g; $input =~ [EMAIL PROTECTED](add|sub|mul|div|rem|and|or|xor|setne|seteq|setlt|setgt|setle|setge|phi|tail|call|cast|to|shl|shr|vaarg|vanext|ret|br|switch|invoke|unwind|malloc|alloca|free|load|store|getelementptr|begin|end|true|false|declare|global|constant|const|internal|uninitialized|external|implementation|linkonce|weak|appending|null|to|except|not|target|endian|pointersize|big|little|volatile)\b@span class=llvm_keyword$1/span@g; # Add links to the FAQ. $input =~ s@(_ZNSt8ios_base4Init[DC]1Ev)@a href=../docs/FAQ.html#iosinit$1/a@g; - $input =~ [EMAIL PROTECTED]@a href=../docs/FAQ.html#__main%__main/a@g; $input =~ [EMAIL PROTECTED]@a href=../docs/FAQ.html#undefundef/a@g; return $input; } @@ -121,7 +117,7 @@ titleTry out LLVM in your browser!/title style [EMAIL PROTECTED] url(syntax.css); -[EMAIL PROTECTED] url(../llvm.css); +[EMAIL PROTECTED] url(http://llvm.org/llvm.css;); /style /head body leftmargin=10 marginwidth=10 @@ -139,9 +135,9 @@ print img align=right width=100 height=111 src=\$LOGO_IMAGE_URL\ /; } -if ( -f /tmp/webcompile/locked ) { +if ( -f $ROOT/locked ) { my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$locktime) = -stat(/tmp/webcompile/locked); +stat($ROOT/locked); my $currtime = time(); if ($locktime + 60 $currtime) { print pBitter Melon the cat says, 'this page is already in use by someone else at this ; @@ -150,7 +146,7 @@ } } -system(touch /tmp/webcompile/locked); +system(touch $ROOT/locked); print END; @@ -165,18 +161,30 @@ print $c-start_multipart_form( 'POST', $FORM_URL ); -print Upload a file: ; -print $c-filefield( -name = 'uploaded_file', -default = '' ); -print pOr type your source code in below:/p\n; +print pType your source code in below:/p\n; my $source = $c-param('source'); + + +# Start the user out with something valid. +if (!defined($source)) { + $source = #include stdio.h\n#include stdlib.h\n\n . +int power(int X) {\n if (X == 0) return 1;\n . + return X*power(X-1);\n}\n\n . +int main(int argc, char **argv) {\n . + printf(\%d\\n\, power(atoi(argv[0])));\n}\n; +} + print $c-textarea( -name= source, --rows= 12, --columns = 80, +-rows= 16, +-columns = 60, -default = $source ); +print pOr upload a file: ; +print $c-filefield( -name = 'uploaded_file', -default = '' ); + print p /\n; print pBy the way, what language is this code in?: , @@ -288,7 +296,9 @@ #print pFinished dumping command output./p\n; if ( WIFEXITED($retcode)
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.73 - 1.74 --- Log message: Convert to use 2.1 release --- Diffs of the changes: (+3 -3) index.cgi |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.73 llvm-www/demo/index.cgi:1.74 --- llvm-www/demo/index.cgi:1.73Wed May 23 14:14:41 2007 +++ llvm-www/demo/index.cgi Thu Sep 27 10:40:41 2007 @@ -5,7 +5,7 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2007/05/23 19:14:41 $ +# Last modified $Date: 2007/09/27 15:40:41 $ # use strict; @@ -29,8 +29,8 @@ my @PREPENDPATHDIRS = ( -'/home/vadve/shared/llvm-gcc4/bin/', -'/home/vadve/shared/llvm-2.0/Debug/bin'); +'/home/vadve/shared/llvm-gcc4.0-2.1/bin/', +'/home/vadve/shared/llvm-2.1/Release/bin'); sub getname { my ($extension) = @_; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.68 - 1.69 --- Log message: Remove stacker for now. --- Diffs of the changes: (+2 -5) index.cgi |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.68 llvm-www/demo/index.cgi:1.69 --- llvm-www/demo/index.cgi:1.68Tue Jan 9 12:19:56 2007 +++ llvm-www/demo/index.cgi Wed May 23 13:52:16 2007 @@ -5,7 +5,7 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2007/01/09 18:19:56 $ +# Last modified $Date: 2007/05/23 18:52:16 $ # use strict; @@ -183,12 +183,9 @@ print pBy the way, what language is this code in?: , $c-radio_group( -name= 'language', --values = [ 'C', 'C++', 'Stacker' ], +-values = [ 'C', 'C++' ], -default = 'C' ); -print /ppLook a href='../docs/Stacker.html#lexicon'here/a for -information about Stacker and a -href='../docs/Stacker.html#example'examples/a./p\n; print 'table bordertrtd wdith=30%'; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.69 - 1.70 --- Log message: Add some spacing --- Diffs of the changes: (+2 -1) index.cgi |3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.69 llvm-www/demo/index.cgi:1.70 --- llvm-www/demo/index.cgi:1.69Wed May 23 13:52:16 2007 +++ llvm-www/demo/index.cgi Wed May 23 13:53:13 2007 @@ -5,7 +5,7 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2007/05/23 18:52:16 $ +# Last modified $Date: 2007/05/23 18:53:13 $ # use strict; @@ -187,6 +187,7 @@ -default = 'C' ); +print 'p'; print 'table bordertrtd wdith=30%'; print $c-checkbox( ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.70 - 1.71 --- Log message: Demo uses 2.0 now. --- Diffs of the changes: (+2 -3) index.cgi |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.70 llvm-www/demo/index.cgi:1.71 --- llvm-www/demo/index.cgi:1.70Wed May 23 13:53:13 2007 +++ llvm-www/demo/index.cgi Wed May 23 14:07:31 2007 @@ -5,7 +5,7 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2007/05/23 18:53:13 $ +# Last modified $Date: 2007/05/23 19:07:31 $ # use strict; @@ -30,8 +30,7 @@ my @PREPENDPATHDIRS = ( '/home/vadve/shared/llvm-gcc4/bin/', -'/home/vadve/shared/llvm19/Debug/bin', -'/home/vadve/shared/llvm19/projects/Stacker/Debug/bin'); +'/home/vadve/shared/llvm-2.0/Debug/bin'); sub getname { my ($extension) = @_; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.71 - 1.72 --- Log message: Switch to llvm-ld --- Diffs of the changes: (+5 -8) index.cgi | 13 + 1 files changed, 5 insertions(+), 8 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.71 llvm-www/demo/index.cgi:1.72 --- llvm-www/demo/index.cgi:1.71Wed May 23 14:07:31 2007 +++ llvm-www/demo/index.cgi Wed May 23 14:13:12 2007 @@ -5,7 +5,7 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2007/05/23 19:07:31 $ +# Last modified $Date: 2007/05/23 19:13:12 $ # use strict; @@ -249,17 +249,14 @@ my $sanitycheckfail = ''; # insert tool-specific sanity checks here -$sanitycheckfail .= ' gccas' - if `gccas --help 21` !~ /assembler for GCC/; - $sanitycheckfail .= ' llvm-dis' if `llvm-dis --help 21` !~ /ll disassembler/; $sanitycheckfail .= ' llvm-gcc' if ( `llvm-gcc --version 21` !~ /Free Software Foundation/ ); -$sanitycheckfail .= ' gccld' - if `gccld --help 21` !~ /llvm linker for GCC/; +$sanitycheckfail .= ' llvm-ld' + if `llvm-ld --help 21` !~ /llvm linker for GCC/; $sanitycheckfail .= ' llvm-bcanalyzer' if `llvm-bcanalyzer --help 21` !~ /bcanalyzer/; @@ -392,8 +389,8 @@ if ( $c-param('showstats') ); my $tmpFile = getname(.bc); try_run( -optimizing linker (gccld), -gccld $stats -o=$tmpFile $bytecodeFile $outputFile 21, +optimizing linker (llvm-ld), +llvm-ld $stats -o=$tmpFile $bytecodeFile $outputFile 21, $outputFile ); system(mv $tmpFile.bc $bytecodeFile); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.72 - 1.73 --- Log message: Modify llvm-ld check --- Diffs of the changes: (+2 -2) index.cgi |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.72 llvm-www/demo/index.cgi:1.73 --- llvm-www/demo/index.cgi:1.72Wed May 23 14:13:12 2007 +++ llvm-www/demo/index.cgi Wed May 23 14:14:41 2007 @@ -5,7 +5,7 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2007/05/23 19:13:12 $ +# Last modified $Date: 2007/05/23 19:14:41 $ # use strict; @@ -256,7 +256,7 @@ if ( `llvm-gcc --version 21` !~ /Free Software Foundation/ ); $sanitycheckfail .= ' llvm-ld' - if `llvm-ld --help 21` !~ /llvm linker for GCC/; + if `llvm-ld --help 21` !~ /llvm linker/; $sanitycheckfail .= ' llvm-bcanalyzer' if `llvm-bcanalyzer --help 21` !~ /bcanalyzer/; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.66 - 1.67 --- Log message: Updated to use my copy of the new LLVM tools and Andrew's newly built CFE. --- Diffs of the changes: (+5 -5) index.cgi | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.66 llvm-www/demo/index.cgi:1.67 --- llvm-www/demo/index.cgi:1.66Fri Sep 15 01:31:45 2006 +++ llvm-www/demo/index.cgi Tue Jan 9 10:33:12 2007 @@ -5,7 +5,7 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2006/09/15 06:31:45 $ +# Last modified $Date: 2007/01/09 16:33:12 $ # use strict; @@ -29,9 +29,9 @@ my @PREPENDPATHDIRS = ( -'/home/vadve/criswell/box/x86/llvm-gcc/bin/', -'/home/vadve/gaeke/llvm/Release/bin', '/home/vadve/gaeke/bin', -'/home/vadve/gaeke/llvm/projects/Stacker/Release/bin' ); +'/home/vadve/alenhar2/cfe/install/bin/', +'/home/vadve/criswell/box/x86/latestllvm/Debug/bin', +'/home/vadve/criswell/box/x86/projects/Stacker/Debug/bin'); sub getname { my ($extension) = @_; @@ -377,7 +377,7 @@ $stats = -Wa,--stats,--time-passes,--info-output-file=$timerFile if ( $c-param('showstats') ); try_run( llvm C/C++ front-end (llvm-gcc), - llvm-gcc -W -Wall -O2 $stats -o $bytecodeFile -c $inputFile $outputFile 21, + llvm-gcc -emit-llvm -W -Wall -O2 $stats -o $bytecodeFile -c $inputFile $outputFile 21, $outputFile ); } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm-www/demo/index.cgi
On 1/9/07, John Criswell [EMAIL PROTECTED] wrote: Updated to use my copy of the new LLVM tools and Andrew's newly built CFE. The llvm-gcc you want to use is in ~alenhar2/base/cfe-install/bin the cfe/install one will go away once the packed struct patch is done. Andrew --- Diffs of the changes: (+5 -5) index.cgi | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.66 llvm-www/demo/index.cgi:1.67 --- llvm-www/demo/index.cgi:1.66Fri Sep 15 01:31:45 2006 +++ llvm-www/demo/index.cgi Tue Jan 9 10:33:12 2007 @@ -5,7 +5,7 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2006/09/15 06:31:45 $ +# Last modified $Date: 2007/01/09 16:33:12 $ # use strict; @@ -29,9 +29,9 @@ my @PREPENDPATHDIRS = ( -'/home/vadve/criswell/box/x86/llvm-gcc/bin/', -'/home/vadve/gaeke/llvm/Release/bin', '/home/vadve/gaeke/bin', -'/home/vadve/gaeke/llvm/projects/Stacker/Release/bin' ); +'/home/vadve/alenhar2/cfe/install/bin/', +'/home/vadve/criswell/box/x86/latestllvm/Debug/bin', +'/home/vadve/criswell/box/x86/projects/Stacker/Debug/bin'); sub getname { my ($extension) = @_; @@ -377,7 +377,7 @@ $stats = -Wa,--stats,--time-passes,--info-output-file=$timerFile if ( $c-param('showstats') ); try_run( llvm C/C++ front-end (llvm-gcc), - llvm-gcc -W -Wall -O2 $stats -o $bytecodeFile -c $inputFile $outputFile 21, + llvm-gcc -emit-llvm -W -Wall -O2 $stats -o $bytecodeFile -c $inputFile $outputFile 21, $outputFile ); } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.65 - 1.66 --- Log message: update email addr --- Diffs of the changes: (+2 -2) index.cgi |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.65 llvm-www/demo/index.cgi:1.66 --- llvm-www/demo/index.cgi:1.65Mon Aug 14 16:12:35 2006 +++ llvm-www/demo/index.cgi Fri Sep 15 01:31:45 2006 @@ -5,7 +5,7 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2006/08/14 21:12:35 $ +# Last modified $Date: 2006/09/15 06:31:45 $ # use strict; @@ -450,7 +450,7 @@ $lg = $c-param('language'); $ip = $c-remote_addr(); chomp( $host = `host $ip` ) if $ip; -mailto( '[EMAIL PROTECTED]', +mailto( '[EMAIL PROTECTED]', --- Query: ---\nFrom: ($ip) $host\nInput: $lines lines of $lg\n . C++ demangle = . ( $c-param('cxxdemangle') ? 1 : 0 ) ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.63 - 1.64 --- Log message: Actually dereference a variable name in the llvm2cpp command. --- Diffs of the changes: (+4 -3) index.cgi |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.63 llvm-www/demo/index.cgi:1.64 --- llvm-www/demo/index.cgi:1.63Wed Aug 9 17:47:28 2006 +++ llvm-www/demo/index.cgi Mon Aug 14 16:09:53 2006 @@ -5,13 +5,13 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2006/08/09 22:47:28 $ +# Last modified $Date: 2006/08/14 21:09:53 $ # use strict; use CGI; use POSIX; -use Mail::Send; +#use Mail::Send; $| = 1; @@ -440,7 +440,8 @@ } if ($c-param('showllvm2cpp') ) { my $l2cppFile = getname(.l2cpp); - try_run(llvm2cpp,llvm2cpp $bytecodeFile -o l2cppFile 21,$l2cppFile); + try_run(llvm2cpp,llvm2cpp $bytecodeFile -o $l2cppFile 21, +$l2cppFile); } addlog( $source, $pid, $UnhilightedResult ); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.64 - 1.65 --- Log message: Don't comment out the Mail::Send package! --- Diffs of the changes: (+2 -2) index.cgi |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.64 llvm-www/demo/index.cgi:1.65 --- llvm-www/demo/index.cgi:1.64Mon Aug 14 16:09:53 2006 +++ llvm-www/demo/index.cgi Mon Aug 14 16:12:35 2006 @@ -5,13 +5,13 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2006/08/14 21:09:53 $ +# Last modified $Date: 2006/08/14 21:12:35 $ # use strict; use CGI; use POSIX; -#use Mail::Send; +use Mail::Send; $| = 1; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.59 - 1.60 --- Log message: Add the invocation of llvm2cpp to the demo page. Also, rearrange the what to do options to make it more legible. --- Diffs of the changes: (+41 -33) index.cgi | 74 ++ 1 files changed, 41 insertions(+), 33 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.59 llvm-www/demo/index.cgi:1.60 --- llvm-www/demo/index.cgi:1.59Sat Jul 16 00:46:08 2005 +++ llvm-www/demo/index.cgi Wed Aug 9 17:28:57 2006 @@ -5,13 +5,13 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2005/07/16 05:46:08 $ +# Last modified $Date: 2006/08/09 22:28:57 $ # use strict; use CGI; use POSIX; -use Mail::Send; +# use Mail::Send; $| = 1; @@ -105,8 +105,8 @@ sub mailto { my ( $recipient, $body ) = @_; -my $msg = - new Mail::Send( Subject = LLVM Demo Page Run, To = $recipient ); +my $msg = Nada; +# new Mail::Send( Subject = LLVM Demo Page Run, To = $recipient ); my $fh = $msg-open(); print $fh $body; $fh-close(); @@ -187,44 +187,45 @@ information about Stacker and a href='../docs/Stacker.html#example'examples/a./p\n; -print table bordertrtd; -print -pClick here if you want Bitter Melon to run the resulting code through c++filt. Warning, the LLVM code produced will probably not be lexically valid, but it will be easier to understand./pul, - $c-checkbox( +print 'table bordertrtd wdith=30%'; + +print $c-checkbox( -name = 'cxxdemangle', -label = 'Demangle C++ names with c++filt' - ), - /ul; -print /tdtd; - + ),'/tdtd width=70%'; print -pBitter Melon can also run the link-time optimizer for you, if you like (but she won't link your code with any libraries). Note that you have to define 'main' in your program for this to make much of a difference./pul, - $c-checkbox( +pClick here if you want Bitter Melon to run the resulting code through c++filt. Warning, the LLVM code produced will probably not be lexically valid, but it will be easier to understand./p/td/trtrtd; + +print $c-checkbox( -name = 'linkopt', -label = 'Run link-time optimizer', -checked = 'checked' - ), - /ul; - -print /tdtd; - + ),/tdtd; print -pWould you believe that BitterMelon even has a stopwatch? Click here to get detailed compilation statistic and timings from each pass./pul, - $c-checkbox( +pBitter Melon can also run the link-time optimizer for you, if you like (but she won't link your code with any libraries). Note that you have to define 'main' in your program for this to make much of a difference./p; +print /td/trtrtd; + +print $c-checkbox( -name = 'showstats', --label = 'Show detailed statistics' - ), - /ul; - -print /tdtd; - -print pAnd further, the cat can even produce detailed information about the bytecode file generated!, - Click here to get a detailed description of the various artifacts in the bytecode file your program generates./pul, - $c-checkbox( +-label = 'Show detailed pass statistics' + ), /tdtd; +print +pWould you believe that BitterMelon even has a stopwatch? Click here to get detailed compilation statistic and timings from each pass./p; +print /td/trtrtd; + +print $c-checkbox( -name = 'showbcanalysis', --label = 'Show detailed bytecode information' - ), - /ul; +-label = 'Show detailed bytecode analysis' + ),/tdtd; +print pAnd further, the cat can even produce detailed information about the bytecode file generated! Click here to get a detailed description of the various artifacts in the bytecode file your program generates./p; + +print /td/trtrtd; + +print $c-checkbox( +-name = 'showllvm2cpp', +-label = 'Show corresponding LLVM C++ code' + ),/tdtd; +print pAnd, BitterMelon, that fabulously talented cat can even turn your bytecode back into LLVM C++ that would produce the same bytecode! Click here to get a C++ program that generates the equivalent bytecode for your program by direct LLVM IR calls./p; print /td/tr/table; @@ -263,6 +264,9 @@ $sanitycheckfail .= ' llvm-bcanalyzer' if `llvm-bcanalyzer --help 21` !~ /bcanalyzer/; +$sanitycheckfail .= ' llvm2cpp' + if `llvm2cpp --help 21` !~ /llvm2cpp/; + barf( br/The demo page is currently unavailable. [tools: ($sanitycheckfail ) failed sanity check] ) @@ -434,6 +438,10 @@ try_run( llvm-bcanalyzer, llvm-bcanalyzer $bytecodeFile $analFile 21, $analFile); } +if ($c-param('showllvm2cpp') ) { + my $l2cppFile = getname(.l2cpp); + try_run(llvm2cpp,llvm2cpp $bytecodeFile -o l2cppFile 21,$l2cppFile); +} addlog( $source, $pid, $UnhilightedResult ); my ( $ip, $host, $lg, $lines ); ___ llvm-commits mailing list
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.60 - 1.61 --- Log message: Take llvm2cpp out of the sanity check to restore the demo page. --- Diffs of the changes: (+1 -4) index.cgi |5 + 1 files changed, 1 insertion(+), 4 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.60 llvm-www/demo/index.cgi:1.61 --- llvm-www/demo/index.cgi:1.60Wed Aug 9 17:28:57 2006 +++ llvm-www/demo/index.cgi Wed Aug 9 17:31:44 2006 @@ -5,7 +5,7 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2006/08/09 22:28:57 $ +# Last modified $Date: 2006/08/09 22:31:44 $ # use strict; @@ -264,9 +264,6 @@ $sanitycheckfail .= ' llvm-bcanalyzer' if `llvm-bcanalyzer --help 21` !~ /bcanalyzer/; -$sanitycheckfail .= ' llvm2cpp' - if `llvm2cpp --help 21` !~ /llvm2cpp/; - barf( br/The demo page is currently unavailable. [tools: ($sanitycheckfail ) failed sanity check] ) ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.61 - 1.62 --- Log message: Remove temporary hack! --- Diffs of the changes: (+4 -4) index.cgi |8 1 files changed, 4 insertions(+), 4 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.61 llvm-www/demo/index.cgi:1.62 --- llvm-www/demo/index.cgi:1.61Wed Aug 9 17:31:44 2006 +++ llvm-www/demo/index.cgi Wed Aug 9 17:33:19 2006 @@ -5,13 +5,13 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2006/08/09 22:31:44 $ +# Last modified $Date: 2006/08/09 22:33:19 $ # use strict; use CGI; use POSIX; -# use Mail::Send; +use Mail::Send; $| = 1; @@ -105,8 +105,8 @@ sub mailto { my ( $recipient, $body ) = @_; -my $msg = Nada; -# new Mail::Send( Subject = LLVM Demo Page Run, To = $recipient ); +my $msg = + new Mail::Send( Subject = LLVM Demo Page Run, To = $recipient ); my $fh = $msg-open(); print $fh $body; $fh-close(); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/demo/index.cgi
Changes in directory llvm-www/demo: index.cgi updated: 1.62 - 1.63 --- Log message: Make a timeout on the usage lock. --- Diffs of the changes: (+10 -7) index.cgi | 17 ++--- 1 files changed, 10 insertions(+), 7 deletions(-) Index: llvm-www/demo/index.cgi diff -u llvm-www/demo/index.cgi:1.62 llvm-www/demo/index.cgi:1.63 --- llvm-www/demo/index.cgi:1.62Wed Aug 9 17:33:19 2006 +++ llvm-www/demo/index.cgi Wed Aug 9 17:47:28 2006 @@ -5,7 +5,7 @@ # doing remote web JO99C compilations. (It could still be used for that # purpose, though the two scripts have diverged somewhat.) # -# Last modified $Date: 2006/08/09 22:33:19 $ +# Last modified $Date: 2006/08/09 22:47:28 $ # use strict; @@ -140,12 +140,15 @@ print img align=right width=100 height=111 src=\$LOGO_IMAGE_URL\ /; } -if ( -f /tmp/webcompile/locked ) { - -print pBitter Melon the cat says, 'this page is already in use by someone else at this ; -print time, try reloading in a second or two. Meow!'/p\n; -exit 0; - +if ( -f /tmp/webcompile/locked ) { + my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$locktime) = +stat(/tmp/webcompile/locked); + my $currtime = time(); + if ($locktime + 60 $currtime) { +print pBitter Melon the cat says, 'this page is already in use by someone else at this ; +print time, try reloading in a second or two. Meow!'/p\n; +exit 0; + } } system(touch /tmp/webcompile/locked); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits