Lines Matching refs:function_
113 if (function_ != nullptr) { in AddInstruction()
117 function_ = MakeUnique<Function>(std::move(spv_inst)); in AddInstruction()
119 if (function_ == nullptr) { in AddInstruction()
128 function_->SetFunctionEnd(std::move(spv_inst)); in AddInstruction()
129 module_->AddFunction(std::move(function_)); in AddInstruction()
130 function_ = nullptr; in AddInstruction()
132 if (function_ == nullptr) { in AddInstruction()
142 if (function_ == nullptr) { in AddInstruction()
153 function_->AddBasicBlock(std::move(block_)); in AddInstruction()
159 if (function_ == nullptr) { // Outside function definition in AddInstruction()
221 function_->AddDebugInstructionInHeader(std::move(spv_inst)); in AddInstruction()
228 function_->AddDebugInstructionInHeader(std::move(spv_inst)); in AddInstruction()
248 function_->AddDebugInstructionInHeader(std::move(spv_inst)); in AddInstruction()
255 function_->AddDebugInstructionInHeader(std::move(spv_inst)); in AddInstruction()
279 function_->AddParameter(std::move(spv_inst)); in AddInstruction()
292 if (block_ && function_) { in EndModule()
296 function_->AddBasicBlock(std::move(block_)); in EndModule()
299 if (function_) { in EndModule()
303 module_->AddFunction(std::move(function_)); in EndModule()
304 function_ = nullptr; in EndModule()