AMDGPU/SI: Emit HSA kernels with symbol type STT_AMDGPU_HSA_KERNEL
[oota-llvm.git] / lib / Target / AMDGPU / AMDGPURegisterInfo.td
index 835a1464395c3a627fe9db56ba190fbaeefd2939..ba0490abee8ca5098f92df68aa8af10d29901d13 100644 (file)
@@ -14,8 +14,7 @@
 let Namespace = "AMDGPU" in {
 
 foreach Index = 0-15 in {
-  // Indices are used in a variety of ways here, so don't set a size/offset.
-  def sub#Index : SubRegIndex<-1, -1>;
+  def sub#Index : SubRegIndex<32, !shl(Index, 5)>;
 }
 
 def INDIRECT_BASE_ADDR : Register <"INDIRECT_BASE_ADDR">;