Lines Matching refs:function_
50 if (function_ != nullptr) { in AddInstruction()
54 function_ = MakeUnique<Function>(std::move(spv_inst)); in AddInstruction()
56 if (function_ == nullptr) { in AddInstruction()
65 function_->SetFunctionEnd(std::move(spv_inst)); in AddInstruction()
66 module_->AddFunction(std::move(function_)); in AddInstruction()
67 function_ = nullptr; in AddInstruction()
69 if (function_ == nullptr) { in AddInstruction()
79 if (function_ == nullptr) { in AddInstruction()
88 function_->AddBasicBlock(std::move(block_)); in AddInstruction()
91 if (function_ == nullptr) { // Outside function definition in AddInstruction()
131 function_->AddParameter(std::move(spv_inst)); in AddInstruction()
143 if (block_ && function_) { in EndModule()
147 function_->AddBasicBlock(std::move(block_)); in EndModule()
150 if (function_) { in EndModule()
154 module_->AddFunction(std::move(function_)); in EndModule()
155 function_ = nullptr; in EndModule()