Lines Matching refs:BA

845   Block BA = newNode(NodeAttrs::Code | NodeAttrs::Block);  in newBlock()  local
846 BA.Addr->setCode(BB); in newBlock()
847 Owner.Addr->addMember(BA, *this); in newBlock()
848 return BA; in newBlock()
901 Block BA = newBlock(TheFunc, &B); in build() local
902 BlockNodes.insert(std::make_pair(&B, BA)); in build()
906 buildStmt(BA, I); in build()
940 for (Block BA : Blocks) { in build() local
941 const MachineBasicBlock &B = *BA.Addr->getCode(); in build()
954 Phi PA = newPhi(BA); in build()
971 for (Block BA : Blocks) in build() local
972 recordDefsForDF(PhiM, BA); in build()
973 for (Block BA : Blocks) in build() local
974 buildPhis(PhiM, BA); in build()
1245 void DataFlowGraph::buildStmt(Block BA, MachineInstr &In) { in buildStmt() argument
1246 Stmt SA = newStmt(BA, &In); in buildStmt()
1382 void DataFlowGraph::recordDefsForDF(BlockRefsMap &PhiM, Block BA) { in recordDefsForDF() argument
1386 MachineBasicBlock *BB = BA.Addr->getCode(); in recordDefsForDF()
1398 for (Instr IA : BA.Addr->members(*this)) { in recordDefsForDF()
1425 void DataFlowGraph::buildPhis(BlockRefsMap &PhiM, Block BA) { in buildPhis() argument
1428 auto HasDF = PhiM.find(BA.Id); in buildPhis()
1434 const MachineBasicBlock *MBB = BA.Addr->getCode(); in buildPhis()
1438 const RegisterAggr &Defs = PhiM[BA.Id]; in buildPhis()
1442 Phi PA = newPhi(BA); in buildPhis()
1461 for (Block BA : TheFunc.Addr->members(*this)) { in removeUnusedPhis() local
1462 for (auto P : BA.Addr->members_if(IsPhi, *this)) in removeUnusedPhis()
1498 Block BA = PA.Addr->getOwner(*this); in removeUnusedPhis() local
1499 BA.Addr->removeMember(PA, *this); in removeUnusedPhis()
1582 void DataFlowGraph::linkBlockRefs(DefStackMap &DefM, Block BA) { in linkBlockRefs() argument
1584 markBlock(BA.Id, DefM); in linkBlockRefs()
1593 assert(BA.Addr && "block node address is needed to create a data-flow link"); in linkBlockRefs()
1597 for (Instr IA : BA.Addr->members(*this)) { in linkBlockRefs()
1615 MachineDomTreeNode *N = MDT.getNode(BA.Addr->getCode()); in linkBlockRefs()
1623 auto IsUseForBA = [BA](Node NA) -> bool { in linkBlockRefs()
1627 return PhiUse(NA).Addr->getPredecessor() == BA.Id; in linkBlockRefs()
1631 MachineBasicBlock *MBB = BA.Addr->getCode(); in linkBlockRefs()
1655 releaseBlock(BA.Id, DefM); in linkBlockRefs()