[PATCH] D88370: Emit predefined macro for wavefront size for amdgcn

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 09:42:41 PDT 2020


yaxunl marked an inline comment as done.
yaxunl added inline comments.


================
Comment at: clang/lib/Basic/Targets/AMDGPU.h:419
+
+    if (llvm::find(Features, "+wavefrontsize64") != Features.end())
+      WavefrontSize = 64;
----------------
arsenm wrote:
> Why is this not redundant with the features check?
You mean the above check for target ID features? It only checks features in target ID, i.e. xnack and sramecc.


================
Comment at: clang/test/Driver/amdgpu-macros.cl:351
+
+// GFX600-DAG: #define __amdgcn_wavefront_size 64
+// GFX601-DAG: #define __amdgcn_wavefront_size 64
----------------
arsenm wrote:
> Macros should be all caps
will change


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88370/new/

https://reviews.llvm.org/D88370



More information about the cfe-commits mailing list