[llvm-commits] CVS: llvm-www/demo/DemoInfo.html index.cgi

Chris Lattner sabre at nondot.org
Mon Oct 1 15:44:49 PDT 2007



Changes in directory llvm-www/demo:

DemoInfo.html updated: 1.1 -> 1.2
index.cgi updated: 1.79 -> 1.80
---
Log message:

Further clean up


---
Diffs of the changes:  (+48 -39)

 DemoInfo.html |   17 ++++++++++++++
 index.cgi     |   70 +++++++++++++++++++++++++---------------------------------
 2 files changed, 48 insertions(+), 39 deletions(-)


Index: llvm-www/demo/DemoInfo.html
diff -u llvm-www/demo/DemoInfo.html:1.1 llvm-www/demo/DemoInfo.html:1.2
--- llvm-www/demo/DemoInfo.html:1.1	Mon Oct  1 17:22:39 2007
+++ llvm-www/demo/DemoInfo.html	Mon Oct  1 17:44:25 2007
@@ -13,6 +13,23 @@
 <p>Press "back" or <a href=".">click here</a> to return to the demo 
 page.</p>
 
+<h2><a name="hints">Hints and Advice</a></h2>
+
+<ul>
+<li>The generated LLVM code will be easier to read if
+you use stdio (e.g., printf) than iostreams (e.g., std::cout).</li>
+
+<li>Unused inline functions and methods are not generated.  Instead 
+of '<tt>class foo { void bar() {}};</tt>',
+try writing '<tt>class foo { void bar(); }; void foo::bar() {}</tt>'.</li>
+
+<li>If you want to try out a file that uses non-standard header files,  you should
+  preprocess it (e.g., with the <tt>-save-temps</tt> or <tt>-E</tt> options to
+  <tt>gcc</tt>) then upload the result.</li>
+
+</ul>
+
+
 <h2><a name="demangle">Demangle C++ names with C++ filt</a></h2>
 
 <p>


Index: llvm-www/demo/index.cgi
diff -u llvm-www/demo/index.cgi:1.79 llvm-www/demo/index.cgi:1.80
--- llvm-www/demo/index.cgi:1.79	Mon Oct  1 17:22:39 2007
+++ llvm-www/demo/index.cgi	Mon Oct  1 17:44:25 2007
@@ -10,6 +10,7 @@
 $| = 1;
 
 my $ROOT = "/tmp/webcompile";
+#my $ROOT = "/home/vadve/lattner/webcompile";
 
 open( STDERR, ">&STDOUT" ) or die "can't redirect stderr to stdout";
 
@@ -127,10 +128,6 @@
 </head>
 <body leftmargin="10" marginwidth="10">
 
-<div class="www_title">
-  The <strong>LLVM</strong> Compiler Infrastructure
-</div><br>
-
 <div class="www_sectiontitle">
   Try out LLVM in your browser!
 </div>
@@ -156,18 +153,12 @@
 print <<END;
 
 <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 the equivalent LLVM code, meow!!</p>
-
-<p>If you want to try out a file that uses non-standard header files,  you should
-  preprocess it (e.g., with the <tt>-save-temps</tt> or <tt>-E</tt> options to
-  <tt>gcc</tt>) then upload the result.</p>
+   one from your computer, and you can see LLVM compile it, meow!!</p>
 
 END
 
 print $c->start_multipart_form( 'POST', $FORM_URL );
 
-print "<p>Type your source code in below:</p>\n";
-
 my $source = $c->param('source');
 
 
@@ -176,70 +167,71 @@
 
 print '<table border="0"><tr><td>';
 
+print "Type your source code in below: (<a href='DemoInfo.html#hints'>hints and 
+advice</a>)<br>\n";
+
 print $c->textarea(
     -name    => "source",
     -rows    => 16,
     -columns => 60,
     -default => $source
-);
+), "<br>";
 
-print "<p>Or upload a file: ";
+print "Or upload a file: ";
 print $c->filefield( -name => 'uploaded_file', -default => '' );
 
 print "<p />\n";
 
-print "<p>By the way, what language is this code in?: ",
+
+print '<p></td><td valign=top>';
+
+print "<center><h3>General Options</h3></center>";
+
+print "Source language: ",
   $c->radio_group(
     -name    => 'language',
     -values  => [ 'C', 'C++' ],
     -default => 'C'
-  );
-
-print '\n<p></td><td valign=top>';
-
-print "<center><h3>Options</h3></center>";
-
-print $c->checkbox(
-    -name  => 'cxxdemangle',
-    -label => 'Demangle C++ names with c++filt'
-  ),' <a href="DemoInfo.html#demangle">?</a><p>';
+  ), "<p>";
 
 print $c->checkbox(
     -name  => 'linkopt',
     -label => 'Run link-time optimizer',
     -checked => 'checked'
-  ),' <a href="DemoInfo.html#lto">?</a><p>';
+  ),' <a href="DemoInfo.html#lto">?</a><br>';
 
 print $c->checkbox(
     -name  => 'showstats',
     -label => 'Show detailed pass statistics'
-  ), ' <a href="DemoInfo.html#stats">?</a><p>';
+  ), ' <a href="DemoInfo.html#stats">?</a><br>';
+
+print $c->checkbox(
+    -name  => 'cxxdemangle',
+    -label => 'Demangle C++ names'
+  ),' <a href="DemoInfo.html#demangle">?</a><p>';
+
+
+print "<center><h3>Output Options</h3></center>";
 
 print $c->checkbox(
     -name => 'showbcanalysis',
     -label => 'Show detailed bytecode analysis'
-  ),' <a href="DemoInfo.html#bcanalyzer">?</a><p>';
+  ),' <a href="DemoInfo.html#bcanalyzer">?</a><br>';
 
 print $c->checkbox(
     -name => 'showllvm2cpp',
     -label => 'Show LLVM C++ API code'
-  ), ' <a href="DemoInfo.html#llvm2cpp">?</a><p>';
+  ), ' <a href="DemoInfo.html#llvm2cpp">?</a>';
 
 print "</td></tr></table>";
 
-print "<p>", $c->submit, "\n", $c->endform;
+print "<center>", $c->submit(-value=> 'Compile Source Code'), 
+      "</center>\n", $c->endform;
 
 print "\n<p>If you have questions about the LLVM code generated by the
-front-end, please <a href='/docs/FAQ.html#cfe_code'>check the FAQ</a>.
-  If the FAQ does not address it, please
-send an email to the <a
-href='http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev'>LLVMdev mailing
-list</a>.</p>\n<p>Hints:</p><ul><li>The generated LLVM code will be easier to read if
-you use stdio (e.g., printf) than iostreams (e.g., std::cout).</li>
-<li>Unused inline functions and methods are not generated.  Instead 
-of '<tt>class foo { void bar() {}};</tt>',
-try writing '<tt>class foo { void bar(); }; void foo::bar() {}</tt>'.</li>
-</ul>\n";
+front-end, please check the <a href='/docs/FAQ.html#cfe_code'>FAQ</a> and
+the demo page <a href='DemoInfo.html#hints'>hints section</a>.
+</p>\n";
 
 $ENV{'PATH'} = ( join ( ':', @PREPENDPATHDIRS ) ) . ":" . $ENV{'PATH'};
 






More information about the llvm-commits mailing list