From: Misha Brukman Date: Wed, 11 Aug 2004 23:45:43 +0000 (+0000) Subject: Set the is64bit flag and propagate it to PowerPCRegisterInfo X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a6ecd9ee47ea0a80362c58c4fbd7b29d9b61ee61;p=oota-llvm.git 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 --- diff --git a/lib/Target/PowerPC/PowerPCInstrInfo.cpp b/lib/Target/PowerPC/PowerPCInstrInfo.cpp index 17b0989e1f4..7c1fda54948 100644 --- a/lib/Target/PowerPC/PowerPCInstrInfo.cpp +++ b/lib/Target/PowerPC/PowerPCInstrInfo.cpp @@ -18,8 +18,10 @@ #include 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, diff --git a/lib/Target/PowerPC/PowerPCInstrInfo.h b/lib/Target/PowerPC/PowerPCInstrInfo.h index e975caf88b4..63edb782271 100644 --- a/lib/Target/PowerPC/PowerPCInstrInfo.h +++ b/lib/Target/PowerPC/PowerPCInstrInfo.h @@ -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