Skip to content

[SYCL] Rework MarkDevice and children #3475

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

Merged
merged 13 commits into from
Apr 9, 2021
2 changes: 1 addition & 1 deletion clang/include/clang/Sema/Sema.h
Original file line number Diff line number Diff line change
Expand Up @@ -13182,7 +13182,7 @@ class Sema final {
void checkSYCLDeviceVarDecl(VarDecl *Var);
void copySYCLKernelAttrs(const CXXRecordDecl *KernelObj);
void ConstructOpenCLKernel(FunctionDecl *KernelCallerFunc, MangleContext &MC);
void MarkDevice();
void MarkDevices();

/// Emit a diagnostic about the given attribute having a deprecated name, and
/// also emit a fixit hint to generate the new attribute name.
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Sema/Sema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ void Sema::ActOnEndOfTranslationUnitFragment(TUFragmentKind Kind) {
SyclIntHeader->emit(getLangOpts().SYCLIntHeader);
if (SyclIntFooter != nullptr)
SyclIntFooter->emit(getLangOpts().SYCLIntFooter);
MarkDevice();
MarkDevices();
}

emitDeferredDiags();
Expand Down
Loading