Lines Matching refs:var_id
621 void IRContext::AddVarToEntryPoints(uint32_t var_id) { in AddVarToEntryPoints() argument
625 e.ForEachInOperand([&ocnt, &found, &var_id](const uint32_t* idp) { in AddVarToEntryPoints()
627 if (*idp == var_id) found = true; in AddVarToEntryPoints()
632 e.AddOperand({SPV_OPERAND_TYPE_ID, {var_id}}); in AddVarToEntryPoints()
645 uint32_t var_id = FindBuiltinVar(builtin); in GetBuiltinVarId() local
646 if (var_id == 0) { in GetBuiltinVarId()
677 var_id = TakeNextId(); in GetBuiltinVarId()
679 new Instruction(this, SpvOpVariable, varTyPtrId, var_id, in GetBuiltinVarId()
684 get_decoration_mgr()->AddDecorationVal(var_id, SpvDecorationBuiltIn, in GetBuiltinVarId()
686 AddVarToEntryPoints(var_id); in GetBuiltinVarId()
688 builtin_var_id_map_[builtin] = var_id; in GetBuiltinVarId()
689 return var_id; in GetBuiltinVarId()