Add new directory
[oota-llvm.git] / tools / extract / README.txt
1 I checked in a new tool, primarily useful for debugging.  Given a module 
2 and a function name, it extracts just the specified function from the 
3 module, with a minimum of related cruft (global variables, function 
4 prototypes, etc).
5
6 This is useful because often something will die (for example SCCP 
7 miscompiles one function of a large benchmark), and so you want to just 
8 cut the testcase down to the one function that is being a problem.  In 
9 this case, 'extract' eliminates all of the extraneous global variables, 
10 type information, and functions that aren't necessary, giving you 
11 something simpler.
12
13 This is just an FYI, because I've found it useful and thought you guys 
14 might as well.
15