AMDGPU: Initialize WavefrontSize from TD files

Differential Revision: https://reviews.llvm.org/D39205

llvm-svn: 316389
This commit is contained in:
Konstantin Zhuravlyov 2017-10-23 23:02:39 +00:00
parent 921f24cef1
commit 339e74440a
2 changed files with 2 additions and 2 deletions

View 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),

View 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
]>;
//===----------------------------------------------------------------------===//