[PATCH] D12452: AMDGPU/SI: Add support for llvm.r600.local.size.* instrics when targeting HSA

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 15:18:15 PDT 2015


arsenm added inline comments.

================
Comment at: lib/Target/AMDGPU/SIISelLowering.cpp:1040
@@ +1039,3 @@
+    BasePtr = TRI->getPreloadedValue(MF, SIRegisterInfo::DISPATCH_PTR);
+    Offset = SI::DispatchPacketOffset::LOCAL_SIZE_X + (Dim * 4);
+    MemVT = MVT::i16;
----------------
This should be Dim * 2 since this is an i16.


http://reviews.llvm.org/D12452





More information about the llvm-commits mailing list