@@ -903,10 +903,9 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
903903 auto AMDTriple = getHIPOffloadTargetTriple (*this , C.getInputArgs ());
904904 auto NVPTXTriple = getNVIDIAOffloadTargetTriple (*this , C.getInputArgs (),
905905 HostTC->getTriple ());
906- auto SPIRVTriple = getSPIRVOffloadTargetTriple (*this , C.getInputArgs ());
907906
908907 // Attempt to deduce the offloading triple from the set of architectures.
909- // We can only correctly deduce NVPTX / AMDGPU / SPIR-V triples currently.
908+ // We can only correctly deduce NVPTX / AMDGPU triples currently.
910909 // We need to temporarily create these toolchains so that we can access
911910 // tools for inferring architectures.
912911 llvm::DenseSet<StringRef> Archs;
@@ -925,15 +924,7 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
925924 Archs.insert (Arch);
926925 }
927926
928- if (SPIRVTriple) {
929- auto TempTC = std::make_unique<toolchains::SPIRVOpenMPToolChain>(
930- *this , *SPIRVTriple, *HostTC, C.getInputArgs ());
931- for (StringRef Arch : getOffloadArchs (
932- C, C.getArgs (), Action::OFK_OpenMP, &*TempTC, true ))
933- Archs.insert (Arch);
934- }
935-
936- if (!AMDTriple && !NVPTXTriple && !SPIRVTriple) {
927+ if (!AMDTriple && !NVPTXTriple) {
937928 for (StringRef Arch :
938929 getOffloadArchs (C, C.getArgs (), Action::OFK_OpenMP, nullptr , true ))
939930 Archs.insert (Arch);
@@ -947,8 +938,6 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
947938 IsAMDOffloadArch (StringToOffloadArch (
948939 getProcessorFromTargetID (*AMDTriple, Arch)))) {
949940 DerivedArchs[AMDTriple->getTriple ()].insert (Arch);
950- } else if (SPIRVTriple && Arch == (*SPIRVTriple).str ()) {
951- DerivedArchs[Arch].insert (Arch);
952941 } else {
953942 Diag (clang::diag::err_drv_failed_to_deduce_target_from_arch) << Arch;
954943 return ;
0 commit comments