mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 16:40:15 +00:00
Print machine code after instruction selection
llvm-svn: 4434
This commit is contained in:
parent
40d5ff97c1
commit
faa5c82486
@ -6,6 +6,7 @@
|
||||
|
||||
#include "X86TargetMachine.h"
|
||||
#include "llvm/Target/TargetMachineImpls.h"
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
#include "llvm/PassManager.h"
|
||||
#include "X86.h"
|
||||
#include <iostream>
|
||||
@ -31,6 +32,9 @@ bool X86TargetMachine::addPassesToJITCompile(PassManager &PM) {
|
||||
|
||||
// TODO: optional optimizations go here
|
||||
|
||||
// Print the instruction selected machine code...
|
||||
PM.add(createMachineFunctionPrinterPass());
|
||||
|
||||
// Perform register allocation to convert to a concrete x86 representation
|
||||
//PM.add(createSimpleX86RegisterAllocator(*this));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user