• Home
  • Raw
  • Download

Lines Matching refs:current_function

349   if (_.current_function().IsFirstBlock(target)) {  in FirstBlockAssert()
350 return _.diag(SPV_ERROR_INVALID_CFG, _.FindDef(_.current_function().id())) in FirstBlockAssert()
352 << _.getIdName(_.current_function().id()) << " is targeted by block " in FirstBlockAssert()
353 << _.getIdName(_.current_function().current_block()->id()); in FirstBlockAssert()
359 if (_.current_function().IsBlockType(merge_block, kBlockTypeMerge)) { in MergeBlockAssert()
360 return _.diag(SPV_ERROR_INVALID_CFG, _.FindDef(_.current_function().id())) in MergeBlockAssert()
930 if (auto error = _.current_function().RegisterBlock(inst->id())) in CfgPass()
936 _.current_function().current_block()->set_label(inst); in CfgPass()
943 if (auto error = _.current_function().RegisterLoopMerge(merge_block, in CfgPass()
951 if (auto error = _.current_function().RegisterSelectionMerge(merge_block)) in CfgPass()
958 _.current_function().RegisterBlockEnd({target}); in CfgPass()
966 _.current_function().RegisterBlockEnd({tlabel, flabel}); in CfgPass()
976 _.current_function().RegisterBlockEnd({cases}); in CfgPass()
979 const uint32_t return_type = _.current_function().GetResultTypeId(); in CfgPass()
986 _.current_function().RegisterBlockEnd(std::vector<uint32_t>()); in CfgPass()
995 _.current_function().RegisterBlockEnd(std::vector<uint32_t>()); in CfgPass()
997 _.current_function().RegisterExecutionModelLimitation( in CfgPass()
1002 _.current_function().RegisterExecutionModelLimitation( in CfgPass()
1007 _.current_function().RegisterExecutionModelLimitation( in CfgPass()
1012 _.current_function().RegisterExecutionModelLimitation( in CfgPass()