Skip to content

Commit 440871c

Browse files
committed
Modified device code generation.
1 parent 046d28a commit 440871c

File tree

5 files changed

+279
-422
lines changed

5 files changed

+279
-422
lines changed

clang/include/clang/Sema/Sema.h

+3-6
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ class SYCLIntegrationHeader {
340340
/// the kernel with given name. Starts new kernel invocation descriptor.
341341
void startKernel(const FunctionDecl *SyclKernel, QualType KernelNameType,
342342
SourceLocation Loc, bool IsESIMD, bool IsUnnamedKernel,
343-
bool IsFreeFunctionKernel, int64_t ObjSize);
343+
int64_t ObjSize);
344344

345345
/// Adds a kernel parameter descriptor to current kernel invocation
346346
/// descriptor.
@@ -421,18 +421,15 @@ class SYCLIntegrationHeader {
421421
// hasn't provided an explicit name for.
422422
bool IsUnnamedKernel;
423423

424-
// Whether this is a free function kernel.
425-
bool IsFreeFunctionKernel;
426-
427424
/// Size of the kernel object.
428425
int64_t ObjSize = 0;
429426

430427
KernelDesc(const FunctionDecl *SyclKernel, QualType NameType,
431428
SourceLocation KernelLoc, bool IsESIMD, bool IsUnnamedKernel,
432-
bool IsFreeFunctionKernel, int64_t ObjSize)
429+
int64_t ObjSize)
433430
: SyclKernel(SyclKernel), NameType(NameType), KernelLocation(KernelLoc),
434431
IsESIMDKernel(IsESIMD), IsUnnamedKernel(IsUnnamedKernel),
435-
IsFreeFunctionKernel(IsFreeFunctionKernel), ObjSize(ObjSize) {}
432+
ObjSize(ObjSize) {}
436433

437434
void updateKernelNames(StringRef Name, StringRef StableName) {
438435
this->Name = Name.str();

0 commit comments

Comments
 (0)