Misc output cleanup and a test run script.

This commit is contained in:
Ben Vanik 2013-01-23 21:59:26 -08:00
parent 860a0739ec
commit a10a05b6f2
5 changed files with 29 additions and 1 deletions

View File

@ -154,3 +154,6 @@ Right now the SSA values seem to leak from the blocks somehow. All caching
is disabled.
```
## Debugging

21
private/runtest.sh Executable file
View File

@ -0,0 +1,21 @@
python xenia-build.py xethunk
python xenia-build.py build
rm build/$1*
./build/xenia/release/xenia-run \
private/$1 \
--optimize_ir_modules=false \
--optimize_ir_functions=false \
2>build/run.llvm.txt 1>build/run.txt
if [ ! -s build/run.llvm.txt ]; then
rm build/run.llvm.txt
fi
if [ -e build/$1-preopt.bc ]; then
./build/llvm/release/bin/llvm-dis build/$1-preopt.bc
fi
if [ -e build/$1.bc ]; then
./build/llvm/release/bin/llvm-dis build/$1.bc
fi

View File

@ -111,6 +111,8 @@ int ModuleGenerator::Generate() {
}
}
}
// Build out all the user functions.
for (std::map<uint32_t, CodegenFunction*>::iterator it =
functions_.begin(); it != functions_.end(); ++it) {
BuildFunction(it->second);

View File

@ -10,6 +10,9 @@
#include "cpu/cpu-private.h"
// Debugging:
// Dumping:
DEFINE_string(dump_path, "build/",
"Directory that dump files are placed into.");

View File

@ -251,5 +251,4 @@ int ExecModule::Uninit() {
void ExecModule::Dump() {
sdb_->Dump();
gen_module_->dump();
}