Lines Matching refs:block_id
53 bool Function::IsFirstBlock(uint32_t block_id) const { in IsFirstBlock()
54 return !ordered_blocks_.empty() && *first_block() == block_id; in IsFirstBlock()
111 spv_result_t Function::RegisterBlock(uint32_t block_id, bool is_definition) { in RegisterBlock() argument
119 blocks_.insert({block_id, BasicBlock(block_id)}); in RegisterBlock()
125 undefined_blocks_.erase(block_id); in RegisterBlock()
128 if (IsFirstBlock(block_id)) current_block_->set_reachable(true); in RegisterBlock()
130 undefined_blocks_.insert(block_id); in RegisterBlock()
224 std::pair<const BasicBlock*, bool> Function::GetBlock(uint32_t block_id) const { in GetBlock()
225 const auto b = blocks_.find(block_id); in GetBlock()
236 std::pair<BasicBlock*, bool> Function::GetBlock(uint32_t block_id) { in GetBlock() argument
240 const_cast<const Function*>(this)->GetBlock(block_id); in GetBlock()