]> granicus.if.org Git - llvm/commitdiff
AMDGPU: Initialize WavefrontSize from TD files
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Mon, 23 Oct 2017 23:02:39 +0000 (23:02 +0000)
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Mon, 23 Oct 2017 23:02:39 +0000 (23:02 +0000)
Differential Revision: https://reviews.llvm.org/D39205

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316389 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/AMDGPUSubtarget.cpp
lib/Target/AMDGPU/Processors.td

index 06ebff7b3947ddfb786013a8610ae0242c6e9660..86431fe88f460e0413181fe2bbbd801c7c8d1421 100644 (file)
@@ -96,7 +96,7 @@ AMDGPUSubtarget::AMDGPUSubtarget(const Triple &TT, StringRef GPU, StringRef FS,
     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 1f8f5a7e8d421ed4a6ff72f06b262ecf74be0228..c00383a176b4582fd72b707683faf4f1a856e1bf 100644 (file)
@@ -13,7 +13,7 @@ class Proc<string Name, ProcessorItineraries itin, list<SubtargetFeature> Featur
 // 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
 ]>;
 
 //===----------------------------------------------------------------------===//