mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
Clean up initializers for GCC 2.96
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@747 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0f0dc4e47c
commit
da47526737
@ -161,9 +161,8 @@ public:
|
|||||||
inline
|
inline
|
||||||
MachineOperand::MachineOperand()
|
MachineOperand::MachineOperand()
|
||||||
: opType(MO_VirtualRegister),
|
: opType(MO_VirtualRegister),
|
||||||
value(NULL),
|
|
||||||
regNum(0),
|
|
||||||
immedVal(0),
|
immedVal(0),
|
||||||
|
regNum(0),
|
||||||
isDef(false)
|
isDef(false)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -171,9 +170,8 @@ inline
|
|||||||
MachineOperand::MachineOperand(MachineOperandType operandType,
|
MachineOperand::MachineOperand(MachineOperandType operandType,
|
||||||
Value* _val)
|
Value* _val)
|
||||||
: opType(operandType),
|
: opType(operandType),
|
||||||
value(_val),
|
|
||||||
regNum(0),
|
|
||||||
immedVal(0),
|
immedVal(0),
|
||||||
|
value(_val),
|
||||||
isDef(false)
|
isDef(false)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -263,13 +261,12 @@ public:
|
|||||||
unsigned numOperands,
|
unsigned numOperands,
|
||||||
OpCodeMask _opCodeMask = 0x0);
|
OpCodeMask _opCodeMask = 0x0);
|
||||||
inline ~MachineInstr () {}
|
inline ~MachineInstr () {}
|
||||||
|
const MachineOpCode getOpCode () const;
|
||||||
const MachineOpCode getOpCode () const { return opCode; }
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Information about explicit operands of the instruction
|
// Information about explicit operands of the instruction
|
||||||
//
|
//
|
||||||
unsigned int getNumOperands () const { return operands.size(); }
|
unsigned int getNumOperands () const;
|
||||||
|
|
||||||
bool operandIsDefined(unsigned int i) const;
|
bool operandIsDefined(unsigned int i) const;
|
||||||
|
|
||||||
@ -422,6 +419,7 @@ public:
|
|||||||
// Purpose:
|
// Purpose:
|
||||||
// Representation of the sequence of machine instructions created
|
// Representation of the sequence of machine instructions created
|
||||||
// for a single VM instruction. Additionally records information
|
// for a single VM instruction. Additionally records information
|
||||||
|
// about hidden and implicit values used by the machine instructions:
|
||||||
// about hidden values used by the machine instructions:
|
// about hidden values used by the machine instructions:
|
||||||
//
|
//
|
||||||
// "Temporary values" are intermediate values used in the machine
|
// "Temporary values" are intermediate values used in the machine
|
||||||
@ -430,6 +428,9 @@ public:
|
|||||||
// no interpretation of their operands (i.e., as a TmpInstruction
|
// no interpretation of their operands (i.e., as a TmpInstruction
|
||||||
// object which actually represents such a value).
|
// object which actually represents such a value).
|
||||||
//
|
//
|
||||||
|
// (2) "Implicit uses" are values used in the VM instruction but not in
|
||||||
|
// the machine instruction sequence
|
||||||
|
//
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
class MachineCodeForVMInstr: public vector<MachineInstr*>
|
class MachineCodeForVMInstr: public vector<MachineInstr*>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user