llvm.org GIT mirror llvm / 14c1927
AMDGPU: Fix names for generation features We should overall stop using these, but the uppercase name didn't work. Any feature string is converted to lowercase, so these could never be found in the table. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357541 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Arsenault 1 year, 5 months ago
4 changed file(s) with 17 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
430430 >;
431431
432432 class GCNSubtargetFeatureGeneration
433 list Implies> :
434 SubtargetFeatureGeneration ;
433 string FeatureName,
434 list Implies> :
435 SubtargetFeatureGeneration ;
435436
436437 def FeatureSouthernIslands : GCNSubtargetFeatureGeneration<"SOUTHERN_ISLANDS",
438 "southern-islands",
437439 [FeatureFP64, FeatureLocalMemorySize32768, FeatureMIMG_R128,
438440 FeatureWavefrontSize64,
439441 FeatureLDSBankCount32, FeatureMovrel, FeatureTrigReducedRange]
440442 >;
441443
442444 def FeatureSeaIslands : GCNSubtargetFeatureGeneration<"SEA_ISLANDS",
445 "sea-islands",
443446 [FeatureFP64, FeatureLocalMemorySize65536, FeatureMIMG_R128,
444447 FeatureWavefrontSize64, FeatureFlatAddressSpace,
445448 FeatureCIInsts, FeatureMovrel, FeatureTrigReducedRange]
446449 >;
447450
448451 def FeatureVolcanicIslands : GCNSubtargetFeatureGeneration<"VOLCANIC_ISLANDS",
452 "volcanic-islands",
449453 [FeatureFP64, FeatureLocalMemorySize65536, FeatureMIMG_R128,
450454 FeatureWavefrontSize64, FeatureFlatAddressSpace,
451455 FeatureGCN3Encoding, FeatureCIInsts, FeatureVIInsts, Feature16BitInsts,
457461 >;
458462
459463 def FeatureGFX9 : GCNSubtargetFeatureGeneration<"GFX9",
464 "gfx9",
460465 [FeatureFP64, FeatureLocalMemorySize65536,
461466 FeatureWavefrontSize64, FeatureFlatAddressSpace,
462467 FeatureGCN3Encoding, FeatureCIInsts, FeatureVIInsts, Feature16BitInsts,
4848 def FeatureWavefrontSize32 : SubtargetFeatureWavefrontSize<32>;
4949 def FeatureWavefrontSize64 : SubtargetFeatureWavefrontSize<64>;
5050
51 class SubtargetFeatureGeneration Subtarget,
51 class SubtargetFeatureGeneration FeatureName,
52 string Subtarget,
5253 list Implies> :
53 SubtargetFeature <Value, "Gen", Subtarget#"::"#Value,
54 SubtargetFeature <FeatureName, "Gen", Subtarget#"::"#Value,
5455 Value#" GPU generation", Implies>;
5556
5657 def FeaturePromoteAlloca : SubtargetFeature <"promote-alloca",
931931
932932 if (getFeatureBits().none()) {
933933 // Set default features.
934 copySTI().ToggleFeature("SOUTHERN_ISLANDS");
934 copySTI().ToggleFeature("southern-islands");
935935 }
936936
937937 setAvailableFeatures(ComputeAvailableFeatures(getFeatureBits()));
3939 "GPU has CF_ALU bug"
4040 >;
4141
42 class R600SubtargetFeatureGeneration
42 class R600SubtargetFeatureGeneration string FeatureName,
4343 list Implies> :
44 SubtargetFeatureGeneration "R600Subtarget", Implies>;
44 SubtargetFeatureGeneration FeatureName, "R600Subtarget", Implies>;
4545
46 def FeatureR600 : R600SubtargetFeatureGeneration<"R600",
46 def FeatureR600 : R600SubtargetFeatureGeneration<"R600", "r600",
4747 [FeatureR600ALUInst, FeatureFetchLimit8, FeatureLocalMemorySize0]
4848 >;
4949
50 def FeatureR700 : R600SubtargetFeatureGeneration<"R700",
50 def FeatureR700 : R600SubtargetFeatureGeneration<"R700", "r700",
5151 [FeatureFetchLimit16, FeatureLocalMemorySize0]
5252 >;
5353
54 def FeatureEvergreen : R600SubtargetFeatureGeneration<"EVERGREEN",
54 def FeatureEvergreen : R600SubtargetFeatureGeneration<"EVERGREEN", "evergreen",
5555 [FeatureFetchLimit16, FeatureLocalMemorySize32768]
5656 >;
5757
5858 def FeatureNorthernIslands : R600SubtargetFeatureGeneration<"NORTHERN_ISLANDS",
59 "northern-islands",
5960 [FeatureFetchLimit16, FeatureWavefrontSize64,
6061 FeatureLocalMemorySize32768]
6162 >;