llvm-6502/tools
Shuxin Yang 8945f753ed Initialize/Register LTO passes to enable flags like -print-after=<lto-pass>
There already have two "dead" functions, initialize{IPO|IPA}, defined for 
similar purpose. I decide not to call these two functions for two reasons:
  o. they don't cover all LTO passes (which will soon be separated into IPO 
     and post-IPO passes)
  o. We have not yet figured out the right passes and the ordering for IPO 
     and post-IPO stages, meaning this change is only for the time being.

Since LTO passes are registered, we are now able to print IR before and 
after particular point.

For OSX users:
--------------
  "...-Wl,-mllvm -Wl,-print-after=<pass-name>" will print IR after the
  specified pass.

For Other UNIX with GNU gold linker:
------------------------------------
  "-Wl,-plugin-opt=-print-after=<pass-name>" should work.
  (NOTE: no need for "-Wl,-mllvm")

  Strip "-Wl," if flags are fed directly to linker instead of clang/clang++.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186853 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-22 18:40:34 +00:00
..
bugpoint Add a wrapper for open. 2013-07-16 19:44:17 +00:00
bugpoint-passes
gold
llc Add a wrapper for open. 2013-07-16 19:44:17 +00:00
lli Add flag to lli to enable debugging of IR when used with MCJIT. 2013-06-28 19:11:40 +00:00
llvm-ar Replace archive members in the old position. 2013-07-22 15:11:51 +00:00
llvm-as Add a wrapper for open. 2013-07-16 19:44:17 +00:00
llvm-bcanalyzer keep only the StringRef version of getFileOrSTDIN. 2013-06-25 05:28:34 +00:00
llvm-config Remove unused includes. 2013-06-26 13:54:34 +00:00
llvm-cov
llvm-diff
llvm-dis Add a wrapper for open. 2013-07-16 19:44:17 +00:00
llvm-dwarfdump
llvm-extract Add a wrapper for open. 2013-07-16 19:44:17 +00:00
llvm-jitlistener
llvm-link Add a wrapper for open. 2013-07-16 19:44:17 +00:00
llvm-mc Improve llvm-mc disassembler mode and refactor ARM tests to use it 2013-07-19 10:05:04 +00:00
llvm-mcmarkup
llvm-nm Don't crash in 'llvm -s' when an archive has no symtab. 2013-07-10 20:14:22 +00:00
llvm-objdump keep only the StringRef version of getFileOrSTDIN. 2013-06-25 05:28:34 +00:00
llvm-prof
llvm-readobj Retry submitting r186623: COFFDumper: Dump data directory entries. 2013-07-19 23:23:29 +00:00
llvm-rtdyld
llvm-shlib The build system is currently miss-identifying GNU/kFreeBSD as FreeBSD. 2013-07-01 08:07:52 +00:00
llvm-size
llvm-stress Add a wrapper for open. 2013-07-16 19:44:17 +00:00
llvm-symbolizer LLVMSymbolize.cpp: Fix build. Triple::ArchType is not a namespace. 2013-07-17 06:53:51 +00:00
lto Initialize/Register LTO passes to enable flags like -print-after=<lto-pass> 2013-07-22 18:40:34 +00:00
macho-dump
obj2yaml
opt Add a wrapper for open. 2013-07-16 19:44:17 +00:00
yaml2obj
CMakeLists.txt Provide bootstrap support to build only llvm+clang when using cmake. 2013-06-26 08:05:08 +00:00
LLVMBuild.txt
Makefile