[PATCH] D39205: AMDGPU: Initialize WavefrontSize from TD files

Konstantin Zhuravlyov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 23 16:03:56 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL316389: AMDGPU: Initialize WavefrontSize from TD files (authored by kzhuravl).

Changed prior to commit:
  https://reviews.llvm.org/D39205?vs=119934&id=119958#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D39205

Files:
  llvm/trunk/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  llvm/trunk/lib/Target/AMDGPU/Processors.td


Index: llvm/trunk/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
@@ -96,7 +96,7 @@
     TargetTriple(TT),
     Gen(TT.getArch() == Triple::amdgcn ? SOUTHERN_ISLANDS : R600),
     IsaVersion(ISAVersion0_0_0),
-    WavefrontSize(64),
+    WavefrontSize(0),
     LocalMemorySize(0),
     LDSBankCount(0),
     MaxPrivateElementSize(0),
Index: llvm/trunk/lib/Target/AMDGPU/Processors.td
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/Processors.td
+++ llvm/trunk/lib/Target/AMDGPU/Processors.td
@@ -13,7 +13,7 @@
 // The code produced for "generic" is only useful for tests and cannot
 // reasonably be expected to execute on any particular target.
 def : ProcessorModel<"generic", NoSchedModel, [
-  FeatureGCN
+  FeatureGCN, FeatureWavefrontSize64
 ]>;
 
 //===----------------------------------------------------------------------===//


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39205.119958.patch
Type: text/x-patch
Size: 1054 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171023/897e89df/attachment.bin>


More information about the llvm-commits mailing list