Searched refs:blk_id (Results 1 – 10 of 10) sorted by relevance
35 const std::vector<uint32_t>& preds(uint32_t blk_id) const { in preds() argument36 assert(label2preds_.count(blk_id)); in preds()37 return label2preds_.at(blk_id); in preds()42 BasicBlock* block(uint32_t blk_id) const { return id2block_.at(blk_id); } in block() argument92 uint32_t blk_id = blk->id(); in RegisterBlock() local93 id2block_[blk_id] = blk; in RegisterBlock()123 void RemoveNonExistingEdges(uint32_t blk_id);
50 uint32_t blk_id = blk->id(); in AddEdges() local53 label2preds_[blk_id]; in AddEdges()56 [blk_id, this](const uint32_t succ_id) { AddEdge(blk_id, succ_id); }); in AddEdges()59 void CFG::RemoveNonExistingEdges(uint32_t blk_id) { in RemoveNonExistingEdges() argument61 for (uint32_t id : preds(blk_id)) { in RemoveNonExistingEdges()64 pred_blk->ForEachSuccessorLabel([&has_branch, blk_id](uint32_t succ) { in RemoveNonExistingEdges()65 if (succ == blk_id) { in RemoveNonExistingEdges()72 label2preds_.at(blk_id) = std::move(updated_pred_list); in RemoveNonExistingEdges()
822 uint32_t blk_id = TakeNextId(); in GetDirectReadFunctionId() local823 std::unique_ptr<Instruction> blk_label(NewLabel(blk_id)); in GetDirectReadFunctionId()
3476 for (auto &blk_id : entry_func.blocks) in add_interface_block() local3478 auto &blk = get<SPIRBlock>(blk_id); in add_interface_block()