Ion implantation into a polysilicon gate electrode, rather than into the silicon substrate itself, dopes the gate material specifically to set its work function and, in older transistor generations using doped-poly gates, to tune the resulting threshold voltage of the transistor beneath it. This gate-implant step is a separate, distinct implant from the source/drain or well implants, since it targets the gate stack material rather than the substrate, even though it uses the same underlying ion implantation equipment and physics.