================
@@ -41,10 +41,16 @@ const unsigned HIPCodeObjectAlign = 4096;
// Constructs a triple string for clang offload bundler.
static std::string normalizeForBundler(const llvm::Triple &T,
bool HasTargetID) {
- return HasTargetID ? (T.getArchName() + "-" + T.getVendorName() + "-" +
- T.getOSName() + "-" + T.getEnvironmentName())
- .str()
- : T.normalize(llvm::Triple::CanonicalForm::FOUR_IDENT);
+ // The 'llvm' environment is not recognized by the HIP runtime.
----------------
shiltian wrote:
Is it because HIP runtime uses string comparison?
https://github.com/llvm/llvm-project/pull/214841
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits