[LT] Add IR resuing support for manually-implemented ops
Summary: Add CanBeReused methods for manually-implemented ops and replace MakeNode with
ReuseOrMakeNode.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77616
Approved by: https://github.com/JackCaoG, https://github.com/wconstab