Lines Matching refs:var_id
770 void IRContext::AddVarToEntryPoints(uint32_t var_id) { in AddVarToEntryPoints() argument
774 e.ForEachInOperand([&ocnt, &found, &var_id](const uint32_t* idp) { in AddVarToEntryPoints()
776 if (*idp == var_id) found = true; in AddVarToEntryPoints()
781 e.AddOperand({SPV_OPERAND_TYPE_ID, {var_id}}); in AddVarToEntryPoints()
794 uint32_t var_id = FindBuiltinInputVar(builtin); in GetBuiltinInputVarId() local
795 if (var_id == 0) { in GetBuiltinInputVarId()
848 var_id = TakeNextId(); in GetBuiltinInputVarId()
850 new Instruction(this, SpvOpVariable, varTyPtrId, var_id, in GetBuiltinInputVarId()
855 get_decoration_mgr()->AddDecorationVal(var_id, SpvDecorationBuiltIn, in GetBuiltinInputVarId()
857 AddVarToEntryPoints(var_id); in GetBuiltinInputVarId()
859 builtin_var_id_map_[builtin] = var_id; in GetBuiltinInputVarId()
860 return var_id; in GetBuiltinInputVarId()