This patch refactors the HIP tool chain for new HIP tool chain, HIPSPV
tool chain, which is added in the follow up patch part 2.
- Rename HIPToolChain to HIPAMDToolChain and Renames HIP.* files to HIPAMD.*.
- Introduce HIPUtility.* file where common HIP utilities, shared among HIP tool chain implementations, are placed in.
- Move constructHIPFatbinCommand() and constructGenerateObjFileFromHIPFatBinary() to HIPUtility. HIPSPV tool chain is going to use them.
- Tweak bundle target ID in constructHIPFatbinCommand(): extra dashes are dropped if the Target ID is empty and 'hip' offload kind is made default for non-AMD targets.
clang-format: please reformat the code
- const InputInfoList &Inputs, - const InputInfo &Output, - const llvm::opt::ArgList &Args) const { + const InputInfoList &Inputs, + const InputInfo &Output, + const llvm::opt::ArgList &Args) const {