[llvm-commits] [gcc-plugin] r83376 - /gcc-plugin/trunk/README

Duncan Sands baldrick at free.fr
Tue Oct 6 02:07:13 PDT 2009

Author: baldrick
Date: Tue Oct  6 04:07:12 2009
New Revision: 83376

URL: http://llvm.org/viewvc/llvm-project?rev=83376&view=rev
Document some command line options that are helpful when working
with the plugin.


Modified: gcc-plugin/trunk/README
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/README?rev=83376&r1=83375&r2=83376&view=diff

--- gcc-plugin/trunk/README (original)
+++ gcc-plugin/trunk/README Tue Oct  6 04:07:12 2009
@@ -50,3 +50,41 @@
 Search for the comment "Process any plugin arguments" in llvm-backend.cpp,
 the argument parsing code is just after this.
+  Output LLVM IR rather than target assembler.  You need to use -S with this,
+  since otherwise GCC will pass the output to the system assembler (these don't
+  usually understand LLVM IR).  It would be nice to fix this and have the option
+  work with -c too but it's not clear how.
+  Output both LLVM and GCC statistics.
+  Output both LLVM and GCC timing information.
+  Annotate the target assembler with helpful comments.  Gives values helpful
+  names in the LLVM IR.
+  If the ident global asm in the LLVM IR annoys you, use this to turn it off.
+  In the dump file, each function is output both as gimple and as LLVM IR.
+  Do not perform any LLVM IR optimizations even if compiling at -O1, -O2 etc.
+  Run the GCC tree optimizers as well as the LLVM IR optimizers.  Normally the
+  GCC optimizers are disabled.
+  GCC assembler output is normally redirected to /dev/null so that it doesn't
+  clash with the LLVM output.  This option causes GCC output to be written to
+  a file instead.  Good for seeing which GCC output we've failed to turn off.

More information about the llvm-commits mailing list