@@ -1185,6 +1185,7 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
11851185 llvm::StringMap<llvm::DenseSet<StringRef>> DerivedArchs;
11861186 llvm::StringMap<StringRef> FoundNormalizedTriples;
11871187 llvm::SmallVector<llvm::Triple, 4 > UniqueSYCLTriplesVec;
1188+ // StringSet to contain SYCL target triples.
11881189 llvm::StringSet<> SYCLTriples;
11891190 if (HasSYCLTargetsOption) {
11901191 // At this point, we know we have a valid combination
@@ -1299,7 +1300,7 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
12991300 else if (HasValidSYCLRuntime &&
13001301 C.getInputArgs ().hasArg (options::OPT_offload_arch_EQ) && !IsHIP &&
13011302 !IsCuda) {
1302- // SYCL offloading to Intel CPUs and Intel GPUs with ``--offload-arch``
1303+ // SYCL offloading to AOT Targets with ``--offload-arch``
13031304 // is currently enabled only with ``--offload-new-driver`` option.
13041305 // Emit a diagnostic if ``--offload-arch`` is invoked without
13051306 // ``--offload-new driver`` option.
@@ -1371,8 +1372,6 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
13711372 llvm::Triple SYCLTargetTriple (MakeSYCLDeviceTriple (Val.getKey ()));
13721373 std::string NormalizedName = SYCLTargetTriple.normalize ();
13731374
1374-
1375-
13761375 // Make sure we don't have a duplicate triple.
13771376 auto Duplicate = FoundNormalizedTriples.find (NormalizedName);
13781377 if (Duplicate != FoundNormalizedTriples.end ()) {
0 commit comments