[AMD] Update hipify code to oss (#119958)
Summary: Syncing the hipify code to third party. Trunk was broken by multiple diffs D53716382 D53744795
Test Plan: sandcastle
Differential Revision: D53790854
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119958
Approved by: https://github.com/jianyuh, https://github.com/drisspg