mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-27 15:57:13 +00:00
* Swich to annotation model for MachineCodeForInstruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de6dbabaee
commit
a8bbb6bced
@ -23,6 +23,7 @@
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "llvm/CodeGen/InstrForest.h"
|
#include "llvm/CodeGen/InstrForest.h"
|
||||||
|
#include "llvm/CodeGen/MachineCodeForInstruction.h"
|
||||||
#include "llvm/Method.h"
|
#include "llvm/Method.h"
|
||||||
#include "llvm/iTerminators.h"
|
#include "llvm/iTerminators.h"
|
||||||
#include "llvm/iMemory.h"
|
#include "llvm/iMemory.h"
|
||||||
@ -125,16 +126,17 @@ InstructionNode::dumpNode(int indent) const
|
|||||||
cerr << " ";
|
cerr << " ";
|
||||||
|
|
||||||
cerr << getInstruction()->getOpcodeName();
|
cerr << getInstruction()->getOpcodeName();
|
||||||
|
const MachineCodeForInstruction &mvec =
|
||||||
|
MachineCodeForInstruction::get(getInstruction());
|
||||||
|
|
||||||
const vector<MachineInstr*> &mvec = getInstruction()->getMachineInstrVec();
|
|
||||||
if (mvec.size() > 0)
|
if (mvec.size() > 0)
|
||||||
cerr << "\tMachine Instructions: ";
|
cerr << "\tMachine Instructions: ";
|
||||||
for (unsigned int i=0; i < mvec.size(); i++)
|
|
||||||
{
|
for (unsigned int i=0; i < mvec.size(); ++i) {
|
||||||
mvec[i]->dump(0);
|
mvec[i]->dump(0);
|
||||||
if (i < mvec.size() - 1)
|
if (i < mvec.size() - 1)
|
||||||
cerr << "; ";
|
cerr << "; ";
|
||||||
}
|
}
|
||||||
|
|
||||||
cerr << "\n";
|
cerr << "\n";
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "llvm/CodeGen/InstrForest.h"
|
#include "llvm/CodeGen/InstrForest.h"
|
||||||
|
#include "llvm/CodeGen/MachineCodeForInstruction.h"
|
||||||
#include "llvm/Method.h"
|
#include "llvm/Method.h"
|
||||||
#include "llvm/iTerminators.h"
|
#include "llvm/iTerminators.h"
|
||||||
#include "llvm/iMemory.h"
|
#include "llvm/iMemory.h"
|
||||||
@ -125,16 +126,17 @@ InstructionNode::dumpNode(int indent) const
|
|||||||
cerr << " ";
|
cerr << " ";
|
||||||
|
|
||||||
cerr << getInstruction()->getOpcodeName();
|
cerr << getInstruction()->getOpcodeName();
|
||||||
|
const MachineCodeForInstruction &mvec =
|
||||||
|
MachineCodeForInstruction::get(getInstruction());
|
||||||
|
|
||||||
const vector<MachineInstr*> &mvec = getInstruction()->getMachineInstrVec();
|
|
||||||
if (mvec.size() > 0)
|
if (mvec.size() > 0)
|
||||||
cerr << "\tMachine Instructions: ";
|
cerr << "\tMachine Instructions: ";
|
||||||
for (unsigned int i=0; i < mvec.size(); i++)
|
|
||||||
{
|
for (unsigned int i=0; i < mvec.size(); ++i) {
|
||||||
mvec[i]->dump(0);
|
mvec[i]->dump(0);
|
||||||
if (i < mvec.size() - 1)
|
if (i < mvec.size() - 1)
|
||||||
cerr << "; ";
|
cerr << "; ";
|
||||||
}
|
}
|
||||||
|
|
||||||
cerr << "\n";
|
cerr << "\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user