================
@@ -84,3 +84,21 @@ __device__ float test_logb(float x) {
// OGCG: load float, ptr addrspace(4) %{{.*}}
// OGCG: call contract{{.*}} @llvm.fabs.f32
// OGCG: fcmp contract one float %{{.*}}, +inf
+
+__device__ unsigned test_grid_size_x() {
+ return __builtin_amdgcn_grid_size_x();
----------------
aobolensk wrote:
Sure, done
https://github.com/llvm/llvm-project/pull/230798
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits