@@ -166,9 +166,8 @@ static bool selectBfloatLibs(const llvm::Triple &Triple, const Compilation &C,
166166 // spir64 target is actually JIT compilation, so we defer selection of
167167 // bfloat16 libraries to runtime. For AOT we need libraries, but skip
168168 // for Nvidia and AMD.
169- NeedLibs =
170- Triple.getSubArch () != llvm::Triple::NoSubArch && !Triple.isNVPTX ()
171- && !Triple.isAMDGCN ();
169+ NeedLibs = Triple.getSubArch () != llvm::Triple::NoSubArch &&
170+ !Triple.isNVPTX () && !Triple.isAMDGCN ();
172171 UseNative = false ;
173172 if (NeedLibs && Triple.getSubArch () == llvm::Triple::SPIRSubArch_gen &&
174173 C.hasOffloadToolChain <Action::OFK_SYCL>()) {
@@ -242,7 +241,8 @@ SYCL::getDeviceLibraries(const Compilation &C, const llvm::Triple &TargetTriple,
242241 for (StringRef Val : A->getValues ()) {
243242 if (Val == " all" ) {
244243 for (const auto &K : DeviceLibLinkInfo.keys ())
245- DeviceLibLinkInfo[K] = (!ignore_single_libs && !NoDeviceLibs) || (K == " internal" && NoDeviceLibs) ;
244+ DeviceLibLinkInfo[K] = (!ignore_single_libs && !NoDeviceLibs) ||
245+ (K == " internal" && NoDeviceLibs);
246246 printUnusedLibWarning = false ;
247247 break ;
248248 }
@@ -259,7 +259,7 @@ SYCL::getDeviceLibraries(const Compilation &C, const llvm::Triple &TargetTriple,
259259 }
260260 if (printUnusedLibWarning)
261261 C.getDriver ().Diag (diag::warn_ignored_clang_option)
262- << A->getSpelling () << A->getAsString (Args);
262+ << A->getSpelling () << A->getAsString (Args);
263263 }
264264 }
265265
0 commit comments