From aea37d65c8039cdfe175d237cfec49bc16c7d0b8 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Wed, 11 Aug 2004 23:45:43 +0000 Subject: [PATCH] Set the is64bit flag and propagate it to PowerPCRegisterInfo llvm-svn: 15671 --- llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp | 6 ++++-- llvm/lib/Target/PowerPC/PowerPCInstrInfo.h | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp index 17b0989e1f40..7c1fda549488 100644 --- a/llvm/lib/Target/PowerPC/PowerPCInstrInfo.cpp +++ b/llvm/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/llvm/lib/Target/PowerPC/PowerPCInstrInfo.h b/llvm/lib/Target/PowerPC/PowerPCInstrInfo.h index e975caf88b4a..63edb782271d 100644 --- a/llvm/lib/Target/PowerPC/PowerPCInstrInfo.h +++ b/llvm/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