[OpenMP] Replace copy and paste code with instantiation (#73991)

GitOrigin-RevId: b80b5f180ba64c2d6d9753ce8b310f1759eb2884
9 files changed