diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2004-12-11 18:41:09 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-12-11 18:41:09 +0000 |
| commit | 72daaa46eb8e2835434b9a097a77d1fe93e733df (patch) | |
| tree | 055601986fdd678b6ac248da1c40a8cf12712207 | |
| parent | 5625dec232f24215f4852e89115aba871258b206 (diff) | |
| download | bcm5719-llvm-72daaa46eb8e2835434b9a097a77d1fe93e733df.tar.gz bcm5719-llvm-72daaa46eb8e2835434b9a097a77d1fe93e733df.zip | |
JIT should print LLVM each function before selecting instructions for it.
llvm-svn: 18803
| -rw-r--r-- | llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp b/llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp index 8e55185f899..8059853bc21 100644 --- a/llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp +++ b/llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp @@ -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. |

