Lines Matching refs:function_
134 if (function_ != nullptr) { in AddInstruction()
138 function_ = MakeUnique<Function>(std::move(spv_inst)); in AddInstruction()
140 if (function_ == nullptr) { in AddInstruction()
149 function_->SetFunctionEnd(std::move(spv_inst)); in AddInstruction()
150 module_->AddFunction(std::move(function_)); in AddInstruction()
151 function_ = nullptr; in AddInstruction()
153 if (function_ == nullptr) { in AddInstruction()
163 if (function_ == nullptr) { in AddInstruction()
174 function_->AddBasicBlock(std::move(block_)); in AddInstruction()
180 if (function_ == nullptr) { // Outside function definition in AddInstruction()
245 function_->AddDebugInstructionInHeader(std::move(spv_inst)); in AddInstruction()
252 function_->AddDebugInstructionInHeader(std::move(spv_inst)); in AddInstruction()
301 function_->AddDebugInstructionInHeader(std::move(spv_inst)); in AddInstruction()
308 function_->AddDebugInstructionInHeader(std::move(spv_inst)); in AddInstruction()
332 function_->AddParameter(std::move(spv_inst)); in AddInstruction()
345 if (block_ && function_) { in EndModule()
349 function_->AddBasicBlock(std::move(block_)); in EndModule()
352 if (function_) { in EndModule()
356 module_->AddFunction(std::move(function_)); in EndModule()
357 function_ = nullptr; in EndModule()