[PATCH] D17764: Add attributes for AMD GPU Tools

Tom Stellard via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 7 05:05:39 PST 2016


tstellarAMD added inline comments.

================
Comment at: include/clang/Basic/AttrDocs.td:969-973
@@ +968,7 @@
+
+Clang supports the ``__attribute__((amdgpu_tools_num_reserved_vgpr(<num>)))``
+attribute on AMD Southern Islands GPUs and later. If specified, it causes AMD
+GPU Backend to reserve ``<num>`` number of vector registers and do not use those
+registers throughout kernel function execution. Index of the first reserved
+vector register is recorded in the ``amd_kernel_code_t``.
+
----------------
What does the value of this attribute mean?  If I pass 16, does it reserve VGPRS 0 - 15 or
VGPRS 240 - 255 ?  Can you clarify this in the documentation?




http://reviews.llvm.org/D17764





More information about the cfe-commits mailing list