From a10fff51d9d6bdf99676dd432fa5c528b83c51bd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 31 Dec 2007 04:13:23 +0000 Subject: Rename SSARegMap -> MachineRegisterInfo in keeping with the idea that "machine" classes are used to represent the current state of the code being compiled. Given this expanded name, we can start moving other stuff into it. For now, move the UsedPhysRegs and LiveIn/LoveOuts vectors from MachineFunction into it. Update all the clients to match. This also reduces some needless #includes, such as MachineModuleInfo from MachineFunction. llvm-svn: 45467 --- llvm/lib/CodeGen/MachineRegisterInfo.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 llvm/lib/CodeGen/MachineRegisterInfo.cpp (limited to 'llvm/lib/CodeGen/MachineRegisterInfo.cpp') diff --git a/llvm/lib/CodeGen/MachineRegisterInfo.cpp b/llvm/lib/CodeGen/MachineRegisterInfo.cpp new file mode 100644 index 00000000000..19c09eee51c --- /dev/null +++ b/llvm/lib/CodeGen/MachineRegisterInfo.cpp @@ -0,0 +1,20 @@ +//===-- MachineRegisterInfo.cpp -------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of the MachineRegisterInfo class. +// +//===----------------------------------------------------------------------===// + +#include "llvm/CodeGen/MachineRegisterInfo.h" +using namespace llvm; + +MachineRegisterInfo::MachineRegisterInfo(const MRegisterInfo &MRI) { + VRegInfo.reserve(256); + UsedPhysRegs.resize(MRI.getNumRegs()); +} -- cgit v1.2.3