Add lowerings to special functions (#119187)
As in the title.
In addition, the PR introduces infrastructure for lowerings of pointwise functions that have both cpp and triton implementations available.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119187
Approved by: https://github.com/peterbell10