Lines Matching refs:PBQPRAGraph
130 void initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM, Spiller &VRegSpiller);
139 bool mapPBQPToRegAlloc(const PBQPRAGraph &G,
156 void apply(PBQPRAGraph &G) override { in apply()
170 PBQPRAGraph::RawVector NodeCosts(G.getNodeCosts(NId)); in apply()
183 typedef DenseMap<IKey, PBQPRAGraph::MatrixPtr> IMatrixCache;
188 bool haveDisjointAllowedRegs(const PBQPRAGraph &G, PBQPRAGraph::NodeId NId, in haveDisjointAllowedRegs()
189 PBQPRAGraph::NodeId MId, in haveDisjointAllowedRegs()
203 void setDisjointAllowedRegs(const PBQPRAGraph &G, PBQPRAGraph::NodeId NId, in setDisjointAllowedRegs()
204 PBQPRAGraph::NodeId MId, in setDisjointAllowedRegs()
270 void apply(PBQPRAGraph &G) override { in apply()
362 bool createInterferenceEdge(PBQPRAGraph &G, in createInterferenceEdge()
363 PBQPRAGraph::NodeId NId, PBQPRAGraph::NodeId MId, in createInterferenceEdge()
379 PBQPRAGraph::RawMatrix M(NRegs.size() + 1, MRegs.size() + 1, 0); in createInterferenceEdge()
395 PBQPRAGraph::EdgeId EId = G.addEdge(NId, MId, std::move(M)); in createInterferenceEdge()
405 void apply(PBQPRAGraph &G) override { in apply()
429 PBQPRAGraph::NodeId NId = G.getMetadata().getNodeIdForVReg(SrcReg); in apply()
431 const PBQPRAGraph::NodeMetadata::AllowedRegVector &Allowed = in apply()
439 PBQPRAGraph::RawVector NewCosts(G.getNodeCosts(NId)); in apply()
444 PBQPRAGraph::NodeId N1Id = G.getMetadata().getNodeIdForVReg(DstReg); in apply()
445 PBQPRAGraph::NodeId N2Id = G.getMetadata().getNodeIdForVReg(SrcReg); in apply()
446 const PBQPRAGraph::NodeMetadata::AllowedRegVector *Allowed1 = in apply()
448 const PBQPRAGraph::NodeMetadata::AllowedRegVector *Allowed2 = in apply()
451 PBQPRAGraph::EdgeId EId = G.findEdge(N1Id, N2Id); in apply()
453 PBQPRAGraph::RawMatrix Costs(Allowed1->size() + 1, in apply()
462 PBQPRAGraph::RawMatrix Costs(G.getEdgeCosts(EId)); in apply()
474 PBQPRAGraph::RawMatrix &CostMat, in addVirtRegCoalesce()
475 const PBQPRAGraph::NodeMetadata::AllowedRegVector &Allowed1, in addVirtRegCoalesce()
476 const PBQPRAGraph::NodeMetadata::AllowedRegVector &Allowed2, in addVirtRegCoalesce()
554 void RegAllocPBQP::initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM, in initializeGraph()
612 PBQPRAGraph::RawVector NodeCosts(VRegAllowed.size() + 1, 0); in initializeGraph()
620 PBQPRAGraph::NodeId NId = G.addNode(std::move(NodeCosts)); in initializeGraph()
655 bool RegAllocPBQP::mapPBQPToRegAlloc(const PBQPRAGraph &G, in mapPBQPToRegAlloc()
775 PBQPRAGraph G(PBQPRAGraph::GraphMetadata(MF, LIS, MBFI)); in runOnMachineFunction()
810 static Printable PrintNodeInfo(PBQP::RegAlloc::PBQPRAGraph::NodeId NId, in PrintNodeInfo()
811 const PBQP::RegAlloc::PBQPRAGraph &G) { in PrintNodeInfo()
821 void PBQP::RegAlloc::PBQPRAGraph::dump(raw_ostream &OS) const { in dump()
842 void PBQP::RegAlloc::PBQPRAGraph::dump() const { dump(dbgs()); } in dump()
844 void PBQP::RegAlloc::PBQPRAGraph::printDot(raw_ostream &OS) const { in printDot()