JIT should print LLVM each function before selecting instructions for it.

llvm-svn: 18803
This commit is contained in:
Brian Gaeke 2004-12-11 18:41:09 +00:00
parent 5625dec232
commit 72daaa46eb
1 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,10 @@ void SparcV8JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
// FIXME: implement the select instruction in the instruction selector.
PM.add(createLowerSelectPass());
// Print LLVM code input to instruction selector:
if (PrintMachineCode)
PM.add(new PrintFunctionPass());
PM.add(createSparcV8SimpleInstructionSelector(TM));
// Print machine instructions as they were initially generated.