Lines Matching refs:current_function
214 if (_.current_function().IsFirstBlock(target)) { in FirstBlockAssert()
215 return _.diag(SPV_ERROR_INVALID_CFG, _.FindDef(_.current_function().id())) in FirstBlockAssert()
217 << _.getIdName(_.current_function().id()) << " is targeted by block " in FirstBlockAssert()
218 << _.getIdName(_.current_function().current_block()->id()); in FirstBlockAssert()
224 if (_.current_function().IsBlockType(merge_block, kBlockTypeMerge)) { in MergeBlockAssert()
225 return _.diag(SPV_ERROR_INVALID_CFG, _.FindDef(_.current_function().id())) in MergeBlockAssert()
688 if (auto error = _.current_function().RegisterBlock(inst->id())) in CfgPass()
694 _.current_function().current_block()->set_label(inst); in CfgPass()
701 if (auto error = _.current_function().RegisterLoopMerge(merge_block, in CfgPass()
709 if (auto error = _.current_function().RegisterSelectionMerge(merge_block)) in CfgPass()
716 _.current_function().RegisterBlockEnd({target}, opcode); in CfgPass()
724 _.current_function().RegisterBlockEnd({tlabel, flabel}, opcode); in CfgPass()
734 _.current_function().RegisterBlockEnd({cases}, opcode); in CfgPass()
737 const uint32_t return_type = _.current_function().GetResultTypeId(); in CfgPass()
749 _.current_function().RegisterBlockEnd(std::vector<uint32_t>(), opcode); in CfgPass()
751 _.current_function().RegisterExecutionModelLimitation( in CfgPass()