mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-13 06:34:24 +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…
x
Reference in New Issue
Block a user