Major addition to bugpoint: ability to debug code generators (LLC and LLI).
authorMisha Brukman <brukman+llvm@gmail.com>
Thu, 24 Jul 2003 18:17:43 +0000 (18:17 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Thu, 24 Jul 2003 18:17:43 +0000 (18:17 +0000)
commit5073336cd4da5df4ae13a167582d1dc90f32e4e0
tree1d91677c5c7dbdbad402706b99ce7fe10f0637c2
parent08fd7abb42cadf2d14a3ca8103b73a358468391f
Major addition to bugpoint: ability to debug code generators (LLC and LLI).
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7293 91177308-0d34-0410-b5e6-96231b3b80d8
tools/bugpoint/BugDriver.cpp
tools/bugpoint/BugDriver.h
tools/bugpoint/CodeGeneratorBug.cpp [new file with mode: 0644]
tools/bugpoint/ExecutionDriver.cpp
tools/bugpoint/Miscompilation.cpp
tools/bugpoint/bugpoint.cpp