Lines Matching defs:BA

845   Block BA = newNode(NodeAttrs::Code | NodeAttrs::Block);
846 BA.Addr->setCode(BB);
847 Owner.Addr->addMember(BA, *this);
848 return BA;
901 Block BA = newBlock(TheFunc, &B);
902 BlockNodes.insert(std::make_pair(&B, BA));
906 buildStmt(BA, I);
940 for (Block BA : Blocks) {
941 const MachineBasicBlock &B = *BA.Addr->getCode();
954 Phi PA = newPhi(BA);
971 for (Block BA : Blocks)
972 recordDefsForDF(PhiM, BA);
973 for (Block BA : Blocks)
974 buildPhis(PhiM, BA);
1243 // Create a new statement node in the block node BA that corresponds to
1245 void DataFlowGraph::buildStmt(Block BA, MachineInstr &In) {
1246 Stmt SA = newStmt(BA, &In);
1380 // Scan all defs in the block node BA and record in PhiM the locations of
1382 void DataFlowGraph::recordDefsForDF(BlockRefsMap &PhiM, Block BA) {
1383 // Check all defs from block BA and record them in each block in BA's
1386 MachineBasicBlock *BB = BA.Addr->getCode();
1398 for (Instr IA : BA.Addr->members(*this)) {
1424 // that are located in the block node BA.
1425 void DataFlowGraph::buildPhis(BlockRefsMap &PhiM, Block BA) {
1428 auto HasDF = PhiM.find(BA.Id);
1434 const MachineBasicBlock *MBB = BA.Addr->getCode();
1438 const RegisterAggr &Defs = PhiM[BA.Id];
1442 Phi PA = newPhi(BA);
1461 for (Block BA : TheFunc.Addr->members(*this)) {
1462 for (auto P : BA.Addr->members_if(IsPhi, *this))
1498 Block BA = PA.Addr->getOwner(*this);
1499 BA.Addr->removeMember(PA, *this);
1580 // Create data-flow links for all instructions in the block node BA. This
1581 // will include updating any phi nodes in BA.
1582 void DataFlowGraph::linkBlockRefs(DefStackMap &DefM, Block BA) {
1584 markBlock(BA.Id, DefM);
1593 assert(BA.Addr && "block node address is needed to create a data-flow link");
1597 for (Instr IA : BA.Addr->members(*this)) {
1615 MachineDomTreeNode *N = MDT.getNode(BA.Addr->getCode());
1623 auto IsUseForBA = [BA](Node NA) -> bool {
1627 return PhiUse(NA).Addr->getPredecessor() == BA.Id;
1631 MachineBasicBlock *MBB = BA.Addr->getCode();
1655 releaseBlock(BA.Id, DefM);