================ @@ -100,11 +100,10 @@ int main() { // Verify that SYCL kernel caller functions are emitted for each device target. // -// FIXME: The following set of matches are used to skip over the declaration of -// main(). main() shouldn't be emitted in device code, but that pruning isn't -// performed yet. -// CHECK-DEVICE: Function Attrs: convergent mustprogress noinline norecurse nounwind optnone -// CHECK-DEVICE-NEXT: define {{[a-z_ ]*}}noundef i32 @main() #0 +// main() shouldn't be emitted in device code. It is not annotated with +// sycl_kernel_entry_point or sycl_external attributes. +// Function Attrs: convergent mustprogress noinline norecurse nounwind optnone +// CHECK-NOT: define {{[a-z_ ]*}}noundef i32 @main() #0 ---------------- tahonermann wrote:
The "Function Attrs" comment looks like a leftover that can be removed. ```suggestion // main() shouldn't be emitted in device code since tt is not annotated with // either the sycl_kernel_entry_point or sycl_external attribute. // CHECK-NOT: define {{[a-z_ ]*}}noundef i32 @main() #0 ``` https://github.com/llvm/llvm-project/pull/140282 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits