[PATCH] D90251: [AMDGPU] Add __builtin_amdgcn_grid_size

2020-10-29 Thread Jon Chesterfield via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGdee7704829bd: [AMDGPU] Add __builtin_amdgcn_grid_size (authored by JonChesterfield). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTIO

[PATCH] D90251: [AMDGPU] Add __builtin_amdgcn_grid_size

2020-10-28 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. This revision is now accepted and ready to land. LGTM. Thanks. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90251/new/ https://reviews.llvm.org/D90251

[PATCH] D90251: [AMDGPU] Add __builtin_amdgcn_grid_size

2020-10-27 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. I think there is value in this change. It may help simplify device library and hide some compiler details. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90251/new/ https://reviews.llvm.org/D90251 __

[PATCH] D90251: [AMDGPU] Add __builtin_amdgcn_grid_size

2020-10-27 Thread Jon Chesterfield via Phabricator via cfe-commits
JonChesterfield added a comment. Consistency really. It seemed strange to have a builtin for reading the workgroup size and not one for the grid size. There's probably a range limit that can be set on this one too, I'm just not sure what it is. Repository: rG LLVM Github Monorepo CHANGES S

[PATCH] D90251: [AMDGPU] Add __builtin_amdgcn_grid_size

2020-10-27 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added a comment. What's the point of this? The reason for the other case was because there was no other way to attach the range metadata. The invariant load here is redundant since with AMDGPU AA the load from constant will be treated as invariant anyway Repository: rG LLVM Github M

[PATCH] D90251: [AMDGPU] Add __builtin_amdgcn_grid_size

2020-10-27 Thread Jon Chesterfield via Phabricator via cfe-commits
JonChesterfield created this revision. JonChesterfield added reviewers: yaxunl, arsenm, b-sumner, cfang, rjmccall, Anastasia. Herald added subscribers: openmp-commits, cfe-commits, dexonsmith, kerbowa, t-tye, tpr, dstuttard, nhaehnle, jvesely, kzhuravl. Herald added projects: clang, OpenMP. JonCh