mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-30 07:00:57 +00:00
Set the is64bit flag and propagate it to PowerPCRegisterInfo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15671 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dceb457607
commit
a6ecd9ee47
@ -18,8 +18,10 @@
|
||||
#include <iostream>
|
||||
using namespace llvm;
|
||||
|
||||
PowerPCInstrInfo::PowerPCInstrInfo()
|
||||
: TargetInstrInfo(PowerPCInsts, sizeof(PowerPCInsts)/sizeof(PowerPCInsts[0]))
|
||||
PowerPCInstrInfo::PowerPCInstrInfo(bool is64b)
|
||||
: TargetInstrInfo(PowerPCInsts, sizeof(PowerPCInsts)/sizeof(PowerPCInsts[0])),
|
||||
RI(is64b),
|
||||
is64bit(is64b)
|
||||
{ }
|
||||
|
||||
bool PowerPCInstrInfo::isMoveInstr(const MachineInstr& MI,
|
||||
|
@ -64,8 +64,9 @@ namespace PPCII {
|
||||
|
||||
class PowerPCInstrInfo : public TargetInstrInfo {
|
||||
const PowerPCRegisterInfo RI;
|
||||
bool is64bit;
|
||||
public:
|
||||
PowerPCInstrInfo();
|
||||
PowerPCInstrInfo(bool is64b);
|
||||
|
||||
/// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As
|
||||
/// such, whenever a client has an instance of instruction info, it should
|
||||
|
Loading…
Reference in New Issue
Block a user