Lines Matching refs:PBQPRAGraph
136 void initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM, Spiller &VRegSpiller);
145 bool mapPBQPToRegAlloc(const PBQPRAGraph &G,
163 void apply(PBQPRAGraph &G) override {
177 PBQPRAGraph::RawVector NodeCosts(G.getNodeCosts(NId));
190 typedef DenseMap<IKey, PBQPRAGraph::MatrixPtr> IMatrixCache;
195 bool haveDisjointAllowedRegs(const PBQPRAGraph &G, PBQPRAGraph::NodeId NId,
196 PBQPRAGraph::NodeId MId,
210 void setDisjointAllowedRegs(const PBQPRAGraph &G, PBQPRAGraph::NodeId NId,
211 PBQPRAGraph::NodeId MId,
277 void apply(PBQPRAGraph &G) override {
369 bool createInterferenceEdge(PBQPRAGraph &G,
370 PBQPRAGraph::NodeId NId, PBQPRAGraph::NodeId MId,
386 PBQPRAGraph::RawMatrix M(NRegs.size() + 1, MRegs.size() + 1, 0);
402 PBQPRAGraph::EdgeId EId = G.addEdge(NId, MId, std::move(M));
412 void apply(PBQPRAGraph &G) override {
436 PBQPRAGraph::NodeId NId = G.getMetadata().getNodeIdForVReg(SrcReg);
438 const PBQPRAGraph::NodeMetadata::AllowedRegVector &Allowed =
446 PBQPRAGraph::RawVector NewCosts(G.getNodeCosts(NId));
451 PBQPRAGraph::NodeId N1Id = G.getMetadata().getNodeIdForVReg(DstReg);
452 PBQPRAGraph::NodeId N2Id = G.getMetadata().getNodeIdForVReg(SrcReg);
453 const PBQPRAGraph::NodeMetadata::AllowedRegVector *Allowed1 =
455 const PBQPRAGraph::NodeMetadata::AllowedRegVector *Allowed2 =
458 PBQPRAGraph::EdgeId EId = G.findEdge(N1Id, N2Id);
460 PBQPRAGraph::RawMatrix Costs(Allowed1->size() + 1,
469 PBQPRAGraph::RawMatrix Costs(G.getEdgeCosts(EId));
481 PBQPRAGraph::RawMatrix &CostMat,
482 const PBQPRAGraph::NodeMetadata::AllowedRegVector &Allowed1,
483 const PBQPRAGraph::NodeMetadata::AllowedRegVector &Allowed2,
561 void RegAllocPBQP::initializeGraph(PBQPRAGraph &G, VirtRegMap &VRM,
619 PBQPRAGraph::RawVector NodeCosts(VRegAllowed.size() + 1, 0);
627 PBQPRAGraph::NodeId NId = G.addNode(std::move(NodeCosts));
663 bool RegAllocPBQP::mapPBQPToRegAlloc(const PBQPRAGraph &G,
793 PBQPRAGraph G(PBQPRAGraph::GraphMetadata(MF, LIS, MBFI));
829 static Printable PrintNodeInfo(PBQP::RegAlloc::PBQPRAGraph::NodeId NId,
830 const PBQP::RegAlloc::PBQPRAGraph &G) {
840 void PBQP::RegAlloc::PBQPRAGraph::dump(raw_ostream &OS) const {
861 LLVM_DUMP_METHOD void PBQP::RegAlloc::PBQPRAGraph::dump() const { dump(dbgs()); }
863 void PBQP::RegAlloc::PBQPRAGraph::printDot(raw_ostream &OS) const {