Author: Shilei Tian
Date: 2026-03-01T14:41:57-05:00
New Revision: dddd06be8c3ed10eaef4f986ec4ceb828be7e789

URL: 
https://github.com/llvm/llvm-project/commit/dddd06be8c3ed10eaef4f986ec4ceb828be7e789
DIFF: 
https://github.com/llvm/llvm-project/commit/dddd06be8c3ed10eaef4f986ec4ceb828be7e789.diff

LOG: [NFC][Clang] Auto generate check lines for 
`clang/test/CodeGenOpenCL/cl-uniform-wg-size.cl` (#183926)

Added: 
    

Modified: 
    clang/test/CodeGenOpenCL/cl-uniform-wg-size.cl

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGenOpenCL/cl-uniform-wg-size.cl 
b/clang/test/CodeGenOpenCL/cl-uniform-wg-size.cl
index 98587c694619f..004a8109fd452 100644
--- a/clang/test/CodeGenOpenCL/cl-uniform-wg-size.cl
+++ b/clang/test/CodeGenOpenCL/cl-uniform-wg-size.cl
@@ -1,19 +1,36 @@
-// RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL1.2 -o - %s 2>&1 | FileCheck %s 
-check-prefixes CHECK,CHECK-UNIFORM
-// RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL2.0 -o - %s 2>&1 | FileCheck %s 
-check-prefixes CHECK,CHECK-NONUNIFORM
-// RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL2.0 -cl-uniform-work-group-size -o 
- %s 2>&1 | FileCheck %s -check-prefixes CHECK,CHECK-UNIFORM
-// RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL2.0 -foffload-uniform-block -o - 
%s 2>&1 | FileCheck %s -check-prefixes CHECK,CHECK-UNIFORM
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py 
UTC_ARGS: --check-attributes --check-globals all --version 6
+// RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL1.2 -o - %s | FileCheck %s 
-check-prefixes CHECK,CHECK-UNIFORM-12
+// RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL2.0 -o - %s | FileCheck %s 
-check-prefixes CHECK,CHECK-NONUNIFORM-20
+// RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL2.0 -cl-uniform-work-group-size -o 
- %s | FileCheck %s -check-prefixes CHECK,CHECK-UNIFORM-20
+// RUN: %clang_cc1 -emit-llvm -O0 -cl-std=CL2.0 -foffload-uniform-block -o - 
%s | FileCheck %s -check-prefixes CHECK,CHECK-UNIFORM-20
 
+// CHECK: Function Attrs: convergent noinline norecurse nounwind optnone
+// CHECK-LABEL: define dso_local spir_kernel void @ker(
+// CHECK-SAME: ) #[[ATTR0:[0-9]+]] !kernel_arg_addr_space [[META3:![0-9]+]] 
!kernel_arg_access_qual [[META3]] !kernel_arg_type [[META3]] 
!kernel_arg_base_type [[META3]] !kernel_arg_type_qual [[META3]] {
+// CHECK-NEXT:  [[ENTRY:.*:]]
+// CHECK-NEXT:    call void @__clang_ocl_kern_imp_ker() #[[ATTR2:[0-9]+]]
+// CHECK-NEXT:    ret void
+//
 kernel void ker() {};
-// CHECK: define{{.*}}@ker() #[[ATTR0:[0-9]+]]
-
-// CHECK: define{{.*}}@__clang_ocl_kern_imp_ker() #[[ATTR1:[0-9]+]]
 
+// CHECK: Function Attrs: convergent noinline norecurse nounwind optnone
+// CHECK-LABEL: define dso_local void @foo(
+// CHECK-SAME: ) #[[ATTR1:[0-9]+]] {
+// CHECK-NEXT:  [[ENTRY:.*:]]
+// CHECK-NEXT:    ret void
+//
 void foo() {};
-// CHECK: define{{.*}}@foo() #[[ATTR1:[0-9]+]]
-
-// CHECK: attributes #[[ATTR0]]
-// CHECK-UNIFORM: "uniform-work-group-size"="true"
-// CHECK-NONUNIFORM: "uniform-work-group-size"="false"
 
-// CHECK: attributes #[[ATTR1]]
-// CHECK-NOT: uniform-work-group-size
+//.
+// CHECK-UNIFORM-12: attributes #[[ATTR0]] = { convergent noinline norecurse 
nounwind optnone "min-legal-vector-width"="0" "no-trapping-math"="true" 
"stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" 
"uniform-work-group-size"="true" }
+// CHECK-UNIFORM-12: attributes #[[ATTR1]] = { convergent noinline norecurse 
nounwind optnone "min-legal-vector-width"="0" "no-trapping-math"="true" 
"stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" 
}
+// CHECK-UNIFORM-12: attributes #[[ATTR2]] = { convergent nounwind }
+//.
+// CHECK-NONUNIFORM-20: attributes #[[ATTR0]] = { convergent noinline 
norecurse nounwind optnone "min-legal-vector-width"="0" 
"no-trapping-math"="true" "stack-protector-buffer-size"="8" 
"target-features"="+cx8,+mmx,+sse,+sse2,+x87" "uniform-work-group-size"="false" 
}
+// CHECK-NONUNIFORM-20: attributes #[[ATTR1]] = { convergent noinline 
norecurse nounwind optnone "min-legal-vector-width"="0" 
"no-trapping-math"="true" "stack-protector-buffer-size"="8" 
"target-features"="+cx8,+mmx,+sse,+sse2,+x87" }
+// CHECK-NONUNIFORM-20: attributes #[[ATTR2]] = { convergent nounwind }
+//.
+// CHECK-UNIFORM-20: attributes #[[ATTR0]] = { convergent noinline norecurse 
nounwind optnone "min-legal-vector-width"="0" "no-trapping-math"="true" 
"stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" 
"uniform-work-group-size"="true" }
+// CHECK-UNIFORM-20: attributes #[[ATTR1]] = { convergent noinline norecurse 
nounwind optnone "min-legal-vector-width"="0" "no-trapping-math"="true" 
"stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" 
}
+// CHECK-UNIFORM-20: attributes #[[ATTR2]] = { convergent nounwind }
+//.


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to