[PATCH] D39036: AMDGPU: Fix default range in non-kernel functions

Tony Tye via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 21:29:31 PDT 2017


t-tye added inline comments.


================
Comment at: lib/Target/AMDGPU/AMDGPUSubtarget.cpp:199
+  case CallingConv::SPIR_KERNEL:
+    return std::make_pair(getWavefrontSize() * 2, getWavefrontSize() * 4);
+  case CallingConv::AMDGPU_VS:
----------------
Should there be a target property that returns the maximum size supported? 4 * wavefront size may not match every target.


https://reviews.llvm.org/D39036





More information about the llvm-commits mailing list