-
Notifications
You must be signed in to change notification settings - Fork 798
Resolve sycl-web test failures caused by https://github.com/llvm/llvm-project/pull/140282 #19895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
5e620a1
4865cbe
5ce1b9f
c126b29
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6901,7 +6901,7 @@ CodeGenModule::getLLVMLinkageForDeclarator(const DeclaratorDecl *D, | |
// have this, linkonce_odr suffices. If -fno-sycl-rdc is passed, we know there | ||
// is only one translation unit and can so mark them internal. | ||
if (getLangOpts().SYCLIsDevice && !D->hasAttr<DeviceKernelAttr>() && | ||
!D->hasAttr<SYCLDeviceAttr>() && | ||
!(D->hasAttr<SYCLDeviceAttr>() || D->hasAttr<SYCLExternalAttr>()) && | ||
!SemaSYCL::isTypeDecoratedWithDeclAttribute<SYCLDeviceGlobalAttr>( | ||
D->getType())) | ||
return getLangOpts().GPURelocatableDeviceCode | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We'll need to do something similar to this in upstream as part of fixing emit of inline functions in device code. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
// RUN: %clang_cc1 -O1 -triple spirv32 -cl-std=CL3.0 -x cl %s -emit-llvm -o - | FileCheck %s | ||
|
||
#ifdef __SYCL_DEVICE_ONLY__ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Something seems off here. Why would There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The very first line runs clang with -fsycl-is-device. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, and this makes sense for that RUN line. My question is about the other two RUN lines that pass |
||
#define SYCL_EXTERNAL [[clang::sycl_external]] | ||
#define SYCL_EXTERNAL [[clang::sycl_external]] __attribute__((sycl_device)) | ||
schittir marked this conversation as resolved.
Show resolved
Hide resolved
schittir marked this conversation as resolved.
Show resolved
Hide resolved
schittir marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#else | ||
#define SYCL_EXTERNAL | ||
#endif | ||
|
Uh oh!
There was an error while loading. Please reload this page.