Skip to content

Commit 075cf2e

Browse files
author
Martin Wehking
committed
Reduce diff
1 parent 254e98e commit 075cf2e

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ SYCL::getDeviceLibraries(const Compilation &C, const llvm::Triple &TargetTriple,
223223
};
224224

225225
bool NoDeviceLibs = false;
226-
227226
// Currently, all SYCL device libraries will be linked by default. Linkage
228227
// of "internal" libraries cannot be affected via -fno-sycl-device-lib.
229228
llvm::StringMap<bool> DeviceLibLinkInfo = {
@@ -504,19 +503,35 @@ void SYCL::populateSYCLDeviceTraitsMacrosArgs(
504503
// The list should match pre-built SYCL device library files located in
505504
// compiler package. Once we add or remove any SYCL device library files,
506505
// the list should be updated accordingly.
507-
static llvm::SmallVector<StringRef, 16> SYCLDeviceLibList {
508-
"bfloat16", "crt", "cmath", "cmath-fp64", "complex", "complex-fp64",
506+
static llvm::SmallVector<StringRef, 16> SYCLDeviceLibList{
507+
"bfloat16",
508+
"crt",
509+
"cmath",
510+
"cmath-fp64",
511+
"complex",
512+
"complex-fp64",
509513
#if defined(_WIN32)
510-
"msvc-math",
514+
"msvc-math",
511515
#else
512-
"sanitizer",
516+
"sanitizer",
513517
#endif
514-
"imf", "imf-fp64", "imf-bf16", "itt-compiler-wrappers", "itt-stubs",
515-
"itt-user-wrappers", "fallback-cassert", "fallback-cstring",
516-
"fallback-cmath", "fallback-cmath-fp64", "fallback-complex",
517-
"fallback-complex-fp64", "fallback-imf", "fallback-imf-fp64",
518-
"fallback-imf-bf16", "fallback-bfloat16", "native-bfloat16"
519-
};
518+
"imf",
519+
"imf-fp64",
520+
"imf-bf16",
521+
"itt-compiler-wrappers",
522+
"itt-stubs",
523+
"itt-user-wrappers",
524+
"fallback-cassert",
525+
"fallback-cstring",
526+
"fallback-cmath",
527+
"fallback-cmath-fp64",
528+
"fallback-complex",
529+
"fallback-complex-fp64",
530+
"fallback-imf",
531+
"fallback-imf-fp64",
532+
"fallback-imf-bf16",
533+
"fallback-bfloat16",
534+
"native-bfloat16"};
520535

521536
const char *SYCL::Linker::constructLLVMLinkCommand(
522537
Compilation &C, const JobAction &JA, const InputInfo &Output,

0 commit comments

Comments
 (0)