[LT] Move MakeNode into ir_builder.h
Summary: Move MakeNode into ir_builder.h to avoid circular header
reference later when introducing a trie cache for IR node lookup.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/76482
Approved by: https://github.com/wconstab