Skip to content

Commit f631d7a

Browse files
committed
Fix test and remove space
1 parent abdbf89 commit f631d7a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

clang/include/clang/Basic/Attr.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ def SharedVar : SubsetSubject<Var,
143143
def GlobalVar : SubsetSubject<Var,
144144
[{S->hasGlobalStorage()}], "global variables">;
145145

146-
147146
def ExternalGlobalVar : SubsetSubject<Var,
148147
[{S->hasGlobalStorage() &&
149148
S->getStorageClass()!=StorageClass::SC_Static &&

clang/test/CodeGenSYCL/kernel-caller-entry-point.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,10 @@ int main() {
100100

101101
// Verify that SYCL kernel caller functions are emitted for each device target.
102102
//
103-
// FIXME: The following set of matches are used to skip over the declaration of
104-
// main(). main() shouldn't be emitted in device code, but that pruning isn't
105-
// performed yet.
106-
// CHECK-DEVICE: Function Attrs: convergent mustprogress noinline norecurse nounwind optnone
107-
// CHECK-DEVICE-NEXT: define {{[a-z_ ]*}}noundef i32 @main() #0
103+
// main() shouldn't be emitted in device code. It is not annotated with
104+
// sycl_kernel_entry_point or sycl_external attributes.
105+
// Function Attrs: convergent mustprogress noinline norecurse nounwind optnone
106+
// CHECK-NOT: define {{[a-z_ ]*}}noundef i32 @main() #0
108107

109108
// IR for the SYCL kernel caller function generated for
110109
// single_purpose_kernel_task with single_purpose_kernel_name as the SYCL kernel

0 commit comments

Comments
 (0)