summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ExecutionDriver.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* The return value of compileSharedObject was never used. Return the sharedChris Lattner2003-10-141-5/+7
| | | | | | object's name instead llvm-svn: 9120
* This header file moved. Thanks to Bill and Nightly tester for noticingChris Lattner2003-10-071-1/+1
| | | | llvm-svn: 8920
* Use the newly abstracted interface for running our tools and gcc.Misha Brukman2003-09-291-437/+18
| | | | llvm-svn: 8756
* Renaming `dis' -> `llvm-dis'.Misha Brukman2003-08-281-6/+7
| | | | llvm-svn: 8197
* no-strict-aliasing reduxChris Lattner2003-08-181-1/+1
| | | | llvm-svn: 7965
* The CBE generates code which violates the TBAA rules of C, thus we must disableChris Lattner2003-08-181-1/+7
| | | | | | optimizations based on these rules. :( llvm-svn: 7964
* Re-grouped and alphabetized headers for easier reading and cleaner style.Misha Brukman2003-08-071-1/+1
| | | | llvm-svn: 7689
* Moved SystemUtils.h to include/Support and SystemUtils.cpp to lib/Support.Misha Brukman2003-08-071-1/+1
| | | | llvm-svn: 7687
* Make sure to flush the output stream so that we get incremental updatesChris Lattner2003-08-041-11/+10
| | | | llvm-svn: 7555
* DEBUG got moved to Debug.hChris Lattner2003-08-011-1/+1
| | | | llvm-svn: 7491
* Use the new FileUtilities library to do diff'ing of filesChris Lattner2003-08-011-22/+9
| | | | llvm-svn: 7484
* * Moved InputArgv out of anonymous scope to be extern'd in another file.Misha Brukman2003-07-301-32/+47
| | | | | | | * Added DEBUG() statements to print out parameters passed to executing programs * Actually ADD parameters to a program running via the JIT (using vector<char*>) llvm-svn: 7433
* Moved definition of InputArgv into ExecutionDriver.cpp -- it is only used there.Misha Brukman2003-07-301-2/+6
| | | | llvm-svn: 7427
* Use a vector<char*> instead of char*[] so that we can add arbitrary number ofMisha Brukman2003-07-301-38/+35
| | | | | | | parameters, such as command-line arguments that the executing program gets via bugpoint. llvm-svn: 7423
* BugDriver.h:Misha Brukman2003-07-281-28/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | * Added method to query if BugDriver is executing the JIT currently. This provides the ability in adding code that is conditionally executed in codegen debugging phase. CodeGeneratorBug.cpp: * Delete test functions from the Safe module * Code conditionally added when debugging the JIT: use the lazy resolver function added to Emitter.cpp to get function pointer by name. When compiled into an .so, this is the only way to get a pointer to an external function * Added a symbol disambiguator which will keep symbols uniquely named across modules * Delete generated files by default * The function `main' *must* stay in the .bc file for the JIT, but that prevents debugging it alone. This patch makes the old `main' become `old_main' and adds a new function named `main' which just calls the original with the same parameters, thereby keeping functionality the same. ExecutionDriver.cpp: * Returned to getting unique filenames * Simplified code choosing between using and not using shared library option llvm-svn: 7364
* Made a bunch of cleanups, as per Chris' recommendations:Misha Brukman2003-07-241-24/+40
| | | | | | | | | | | | | | | | * Removed unused global and member variables * Fixed comments (CodeGeneratorBug.cpp) * Check for possibly failing GCC::create() and CBE::create() * Remove generated files after diffing the output (e.g., shared object) * Instead of using std::for_each, use explicit loops as std::for_each may duplicate the functor, and ours carries state * Changed member var from cl::opt<std::string> to just std::string * Fixed doxygen comments * Fixed string comparisons to use [ str.empty() ] instead of [ str == "" ] * Cache instances of CBE and GCC in BugDriver across compilations and executions while testing tools. llvm-svn: 7302
* Major addition to bugpoint: ability to debug code generators (LLC and LLI).Misha Brukman2003-07-241-111/+336
| | | | | | | | | | | | | | | | | | | | | | | | The C backend is assumed correct and is used to generate shared objects to be loaded by the other two code generators. LLC debugging should be functional now, LLI needs a few more additions to work, the major one is renaming of external functions to call the JIT lazy function resolver. Bugpoint now has a command-line switch -mode with options 'compile' and 'codegen' to debug appropriate portions of tools. ExecutionDriver.cpp: Added implementations of AbstractInterpreter for LLC and GCC, broke out common code within other tools, and added ability to generate C code with CBE individually, without executing the program, and the GCC tool can generate executables shared objects or executables. If no reference output is specified to Bugpoint, it will be generated with CBE, because it is already assumed to be correct for the purposes of debugging using this method. As a result, many functions now accept as an optional parameter a shared object to be loaded in, if specified. llvm-svn: 7293
* Make a comment more accurateChris Lattner2003-05-031-1/+1
| | | | llvm-svn: 5991
* Add support for debugging miscompilations with the use of the JIT or CBE!Chris Lattner2003-05-031-4/+162
| | | | llvm-svn: 5990
* Implement support for bugpoint to identify which FUNCTION an optimizationChris Lattner2003-04-241-1/+3
| | | | | | is miscompiling. llvm-svn: 5893
* Allow specifying an input file for the program being executedChris Lattner2003-04-231-1/+5
| | | | llvm-svn: 5888
* Fix compilation on GCC 3.2Chris Lattner2002-12-241-0/+1
| | | | llvm-svn: 5136
* New files for miscompilation detectionChris Lattner2002-12-231-0/+191
llvm-svn: 5120
OpenPOWER on IntegriCloud