[cfe-commits] r52145 - /cfe/trunk/www/get_started.html

Matthijs Kooijman matthijs at stdin.nl
Mon Jun 9 07:09:10 PDT 2008


Author: matthijs
Date: Mon Jun  9 09:09:10 2008
New Revision: 52145

URL: http://llvm.org/viewvc/llvm-project?rev=52145&view=rev
Log:
Sprinkle some "-o -" clang options to make the examples work.

Modified:
    cfe/trunk/www/get_started.html

Modified: cfe/trunk/www/get_started.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/get_started.html?rev=52145&r1=52144&r2=52145&view=diff

==============================================================================
--- cfe/trunk/www/get_started.html (original)
+++ cfe/trunk/www/get_started.html Mon Jun  9 09:09:10 2008
@@ -93,9 +93,9 @@
     href="http://llvm.org/docs/ProgrammersManual.html#ViewGraph">set up graphviz
      and rebuild llvm first</a>)</li>
     <li><tt>clang file.c -emit-llvm</tt> (print out unoptimized llvm code)</li>
-    <li><tt>clang file.c -emit-llvm | llvm-as | opt -std-compile-opts |
+    <li><tt>clang file.c -emit-llvm -o - | llvm-as | opt -std-compile-opts |
          llvm-dis</tt> (print out optimized llvm code)</li>
-    <li><tt>clang file.c -emit-llvm | llvm-as | opt -std-compile-opts | llc
+    <li><tt>clang file.c -emit-llvm -o - | llvm-as | opt -std-compile-opts | llc
          > file.s</tt> (output native machine code)</li>
   </ul>
 </ol>
@@ -181,19 +181,19 @@
 <h4>Code generation with LLVM:</h4>
 
 <pre class="code">
-$ <b>clang ~/t.c -emit-llvm | llvm-as | opt -std-compile-opts | llvm-dis</b>
+$ <b>clang ~/t.c -emit-llvm -o - | llvm-as | opt -std-compile-opts | llvm-dis</b>
 define <4 x float> @foo(<4 x float> %a, <4 x float> %b) {
 entry:
          %mul = mul <4 x float> %b, %a
          %add = add <4 x float> %mul, %a
          ret <4 x float> %add
 }
-$ <b>clang ~/t.c -emit-llvm | llvm-as | opt -std-compile-opts | llc -march=ppc32 -mcpu=g5</b>
+$ <b>clang ~/t.c -emit-llvm -o - | llvm-as | opt -std-compile-opts | llc -march=ppc32 -mcpu=g5</b>
 ..
 _foo:
          vmaddfp v2, v3, v2, v2
          blr
-$ <b>clang ~/t.c -emit-llvm | llvm-as | opt -std-compile-opts | llc -march=x86 -mcpu=yonah</b>
+$ <b>clang ~/t.c -emit-llvm -o - | llvm-as | opt -std-compile-opts | llc -march=x86 -mcpu=yonah</b>
 ..
 _foo:
          mulps %xmm0, %xmm1





More information about the cfe-commits mailing list