[OpenMP][NFC] Pass a DeviceTy, not the device number to `target`

This unifies the API of `target` relative to `targetUpdateData` and
such.

Reviewed By: tianshilei1992, grokos

Differential Revision: https://reviews.llvm.org/D96429

GitOrigin-RevId: 44f3022cdf01b26d46ebff3c26a5e572aee2acdf
4 files changed