Skip to content
  1. Aug 08, 2003
  2. Aug 07, 2003
  3. Aug 05, 2003
  4. Aug 04, 2003
  5. Aug 02, 2003
  6. Aug 01, 2003
  7. Jul 30, 2003
  8. Jul 29, 2003
  9. Jul 28, 2003
    • Misha Brukman's avatar
      Implemented cleanups as suggested by Chris: · 123c8576
      Misha Brukman authored
      * Use Module::getNamedFunction() to delete "main" instead of using a loop
      * Compare function pointers instead of function names to determine equivalence
      * Simplified creation of a 2-element vector containing zeroes
      * Manually performed LICM on code
      * Added an abort() in case a function we're considering occurs in something that
        is not an instruction
      * Use DEBUG() around code sections instead of just in a statement in a loop,
        because GCC's DCE may not be good enough to completely remove it in a release
        build
      * Print out a command that can be directly copied-and-pasted to re-execute
      * Instead of just checking if a symbol begins with a dot and fixing it
        accordingly, use Mangler and fix all the problems (invalid chars in C symbol
        names) entirely
      * The new `main' function has external linkage
      
      llvm-svn: 7371
      123c8576
    • Misha Brukman's avatar
      Added comment to function isExecutingJIT() · eacfd216
      Misha Brukman authored
      llvm-svn: 7370
      eacfd216
    • Misha Brukman's avatar
      BugDriver.h: · 539f9593
      Misha Brukman authored
      * 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
      539f9593
    • Misha Brukman's avatar
  10. Jul 24, 2003
    • Misha Brukman's avatar
      Made a bunch of cleanups, as per Chris' recommendations: · 0fd31727
      Misha Brukman authored
      * 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
      0fd31727
    • Misha Brukman's avatar
      Major addition to bugpoint: ability to debug code generators (LLC and LLI). · d792c9bb
      Misha Brukman authored
      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
      d792c9bb
  11. Jul 21, 2003
  12. Jul 19, 2003
  13. Jul 18, 2003
  14. Jul 14, 2003
  15. Jul 10, 2003
  16. Jul 08, 2003
Loading