forked from OSchip/llvm-project
Set the is64bit flag and propagate it to PowerPCRegisterInfo
llvm-svn: 15671
This commit is contained in:
parent
39f7533b40
commit
aea37d65c8
|
@ -18,8 +18,10 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
PowerPCInstrInfo::PowerPCInstrInfo()
|
PowerPCInstrInfo::PowerPCInstrInfo(bool is64b)
|
||||||
: TargetInstrInfo(PowerPCInsts, sizeof(PowerPCInsts)/sizeof(PowerPCInsts[0]))
|
: TargetInstrInfo(PowerPCInsts, sizeof(PowerPCInsts)/sizeof(PowerPCInsts[0])),
|
||||||
|
RI(is64b),
|
||||||
|
is64bit(is64b)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
bool PowerPCInstrInfo::isMoveInstr(const MachineInstr& MI,
|
bool PowerPCInstrInfo::isMoveInstr(const MachineInstr& MI,
|
||||||
|
|
|
@ -64,8 +64,9 @@ namespace PPCII {
|
||||||
|
|
||||||
class PowerPCInstrInfo : public TargetInstrInfo {
|
class PowerPCInstrInfo : public TargetInstrInfo {
|
||||||
const PowerPCRegisterInfo RI;
|
const PowerPCRegisterInfo RI;
|
||||||
|
bool is64bit;
|
||||||
public:
|
public:
|
||||||
PowerPCInstrInfo();
|
PowerPCInstrInfo(bool is64b);
|
||||||
|
|
||||||
/// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As
|
/// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As
|
||||||
/// such, whenever a client has an instance of instruction info, it should
|
/// such, whenever a client has an instance of instruction info, it should
|
||||||
|
|
Loading…
Reference in New Issue