summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-09-13 01:15:21 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-09-13 01:15:21 +0000
commit25a39094f8377c295d84e77d2a117ae43166fe84 (patch)
tree678d8b28171c65c8890ecf3248c4e8c4a1341ac6 /llvm/lib/Target/ARM
parent5f09b1decec8ed796276e4eb0fd0e8684cfb1e00 (diff)
downloadbcm5719-llvm-25a39094f8377c295d84e77d2a117ae43166fe84.tar.gz
bcm5719-llvm-25a39094f8377c295d84e77d2a117ae43166fe84.zip
Add debug dumps.
llvm-svn: 56178
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/ARMCodeEmitter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMCodeEmitter.cpp b/llvm/lib/Target/ARM/ARMCodeEmitter.cpp
index 888f8e69699..7de26afa286 100644
--- a/llvm/lib/Target/ARM/ARMCodeEmitter.cpp
+++ b/llvm/lib/Target/ARM/ARMCodeEmitter.cpp
@@ -19,6 +19,7 @@
#include "ARMRelocations.h"
#include "ARMSubtarget.h"
#include "ARMTargetMachine.h"
+#include "llvm/Function.h"
#include "llvm/PassManager.h"
#include "llvm/CodeGen/MachineCodeEmitter.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
@@ -26,6 +27,7 @@
#include "llvm/CodeGen/Passes.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/Compiler.h"
+#include "llvm/Support/Debug.h"
using namespace llvm;
STATISTIC(NumEmitted, "Number of machine instructions emitted");
@@ -136,6 +138,7 @@ bool ARMCodeEmitter::runOnMachineFunction(MachineFunction &MF) {
TD = ((ARMTargetMachine&)MF.getTarget()).getTargetData();
do {
+ DOUT << "JITTing function '" << MF.getFunction()->getName() << "'\n";
MCE.startFunction(MF);
for (MachineFunction::iterator MBB = MF.begin(), E = MF.end();
MBB != E; ++MBB) {
@@ -230,6 +233,8 @@ void ARMCodeEmitter::emitMachineBasicBlock(MachineBasicBlock *BB) {
}
void ARMCodeEmitter::emitInstruction(const MachineInstr &MI) {
+ DOUT << MI;
+
NumEmitted++; // Keep track of the # of mi's emitted
MCE.emitWordLE(getInstrBinary(MI));
}
OpenPOWER on IntegriCloud