Lines Matching refs:VirtRegMap
1 //===-- llvm/CodeGen/VirtRegMap.cpp - Virtual Register Map ----------------===//
10 // This file implements the VirtRegMap class.
20 #include "llvm/CodeGen/VirtRegMap.h"
45 // VirtRegMap implementation
48 char VirtRegMap::ID = 0;
50 INITIALIZE_PASS(VirtRegMap, "virtregmap", "Virtual Register Map", false, false)
52 bool VirtRegMap::runOnMachineFunction(MachineFunction &mf) {
66 void VirtRegMap::grow() {
73 unsigned VirtRegMap::createSpillSlot(const TargetRegisterClass *RC) {
80 bool VirtRegMap::hasPreferredPhys(unsigned VirtReg) {
89 bool VirtRegMap::hasKnownPreference(unsigned VirtReg) {
98 int VirtRegMap::assignVirt2StackSlot(unsigned virtReg) {
106 void VirtRegMap::assignVirt2StackSlot(unsigned virtReg, int SS) {
116 void VirtRegMap::print(raw_ostream &OS, const Module*) const {
120 if (Virt2PhysMap[Reg] != (unsigned)VirtRegMap::NO_PHYS_REG) {
129 if (Virt2StackSlotMap[Reg] != VirtRegMap::NO_STACK_SLOT) {
138 void VirtRegMap::dump() const {
149 // VirtRegMap analysis. It also updates live-in information on basic blocks
161 VirtRegMap *VRM;
183 INITIALIZE_PASS_DEPENDENCY(VirtRegMap)
197 AU.addRequired<VirtRegMap>();
209 VRM = &getAnalysis<VirtRegMap>();
248 assert(PhysReg != VirtRegMap::NO_PHYS_REG && "Unmapped virtual register.");
288 assert(PhysReg != VirtRegMap::NO_PHYS_REG &&