[fx] Minor modifications to pass infra (#82485)
* Made PassBase calls optionally return PassResult since some passes
might want to base inplace.
* Added additional documentation
Pull Request resolved: https://github.com/pytorch/pytorch/pull/82485
Approved by: https://github.com/SherlockNoMad