mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Add method CreateCodeToCopyIntToFloat.
Include handle to TargetMachine in each Machine...Info object. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1200 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e64574ce71
commit
44508e333c
@ -72,13 +72,17 @@ struct MachineInstrDescriptor {
|
||||
|
||||
|
||||
class MachineInstrInfo : public NonCopyableV {
|
||||
public:
|
||||
const TargetMachine& target;
|
||||
|
||||
protected:
|
||||
const MachineInstrDescriptor* desc; // raw array to allow static init'n
|
||||
unsigned int descSize; // number of entries in the desc array
|
||||
unsigned int numRealOpCodes; // number of non-dummy op codes
|
||||
|
||||
public:
|
||||
MachineInstrInfo(const MachineInstrDescriptor *desc, unsigned descSize,
|
||||
MachineInstrInfo(const TargetMachine& tgt,
|
||||
const MachineInstrDescriptor *desc, unsigned descSize,
|
||||
unsigned numRealOpCodes);
|
||||
virtual ~MachineInstrInfo();
|
||||
|
||||
@ -231,6 +235,19 @@ public:
|
||||
Instruction* dest,
|
||||
vector<MachineInstr*>& minstrVec,
|
||||
vector<TmpInstruction*>& temps) const =0;
|
||||
|
||||
// Create an instruction sequence to copy an integer value `val' from an
|
||||
// integer to a floating point register `dest'. val must be an integral
|
||||
// type. dest must be a Float or Double.
|
||||
// The generated instructions are returned in `minstrVec'.
|
||||
// Any temp. registers (TmpInstruction) created are returned in `tempVec'.
|
||||
//
|
||||
virtual void CreateCodeToCopyIntToFloat(Method* method,
|
||||
Value* val,
|
||||
Instruction* dest,
|
||||
vector<MachineInstr*>& minstrVec,
|
||||
vector<TmpInstruction*>& tempVec,
|
||||
TargetMachine& target) const = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -72,13 +72,17 @@ struct MachineInstrDescriptor {
|
||||
|
||||
|
||||
class MachineInstrInfo : public NonCopyableV {
|
||||
public:
|
||||
const TargetMachine& target;
|
||||
|
||||
protected:
|
||||
const MachineInstrDescriptor* desc; // raw array to allow static init'n
|
||||
unsigned int descSize; // number of entries in the desc array
|
||||
unsigned int numRealOpCodes; // number of non-dummy op codes
|
||||
|
||||
public:
|
||||
MachineInstrInfo(const MachineInstrDescriptor *desc, unsigned descSize,
|
||||
MachineInstrInfo(const TargetMachine& tgt,
|
||||
const MachineInstrDescriptor *desc, unsigned descSize,
|
||||
unsigned numRealOpCodes);
|
||||
virtual ~MachineInstrInfo();
|
||||
|
||||
@ -231,6 +235,19 @@ public:
|
||||
Instruction* dest,
|
||||
vector<MachineInstr*>& minstrVec,
|
||||
vector<TmpInstruction*>& temps) const =0;
|
||||
|
||||
// Create an instruction sequence to copy an integer value `val' from an
|
||||
// integer to a floating point register `dest'. val must be an integral
|
||||
// type. dest must be a Float or Double.
|
||||
// The generated instructions are returned in `minstrVec'.
|
||||
// Any temp. registers (TmpInstruction) created are returned in `tempVec'.
|
||||
//
|
||||
virtual void CreateCodeToCopyIntToFloat(Method* method,
|
||||
Value* val,
|
||||
Instruction* dest,
|
||||
vector<MachineInstr*>& minstrVec,
|
||||
vector<TmpInstruction*>& tempVec,
|
||||
TargetMachine& target) const = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user