[PATCH] Single function IR dump
Gerolf Hoflehner
ghoflehner at apple.com
Wed Nov 19 13:30:57 PST 2014
Hi dexonsmith, echristo,
Dumping the IR of an entire module can take a long time. I found a
patch I wrote a while back that allows me to dump the IR for one function.
It is not pretty but gets the job done. You might find it useful and/or have ideas
to improve it etc.
LTO usage example: -Wl,-mllvm,-dump-function=foo -Wl,-mllvm,-mdump-function=foo
-Wl,-mllvm,-print-before-all
http://reviews.llvm.org/D6326
Files:
lib/Analysis/IPA/CallGraphSCCPass.cpp
lib/Analysis/LoopPass.cpp
lib/CodeGen/MachineFunction.cpp
lib/CodeGen/MachineFunctionPrinterPass.cpp
lib/IR/IRPrintingPasses.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6326.16397.patch
Type: text/x-patch
Size: 6819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141119/0c5121d1/attachment.bin>
More information about the llvm-commits
mailing list