[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 29 18:48:05 PST 2002
Changes in directory llvm/lib/Target/X86:
X86TargetMachine.cpp updated: 1.1 -> 1.2
---
Log message:
Print machine code after instruction selection
---
Diffs of the changes:
Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.1 llvm/lib/Target/X86/X86TargetMachine.cpp:1.2
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.1 Tue Oct 29 16:37:54 2002
+++ llvm/lib/Target/X86/X86TargetMachine.cpp Tue Oct 29 18:47:49 2002
@@ -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>
@@ -30,6 +31,9 @@
PM.add(createSimpleX86InstructionSelector(*this));
// 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));
More information about the llvm-commits
mailing list