mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
AMDGPU: Add feature vi-insts
This is necessary to add a VI specific builtin, __builtin_amdgcn_s_dcache_wb. We already have an overly specific feature for one of these builtins, for s_memrealtime. I'm not sure whether it's better to add more of those, or to get rid of that and merge it with vi-insts. Alternatively, maybe this logically goes with scalar-stores? llvm-svn: 339104
This commit is contained in:
parent
371c57f538
commit
513e534210
@ -140,6 +140,12 @@ def FeatureCIInsts : SubtargetFeature<"ci-insts",
|
||||
"Additional instructions for CI+"
|
||||
>;
|
||||
|
||||
def FeatureVIInsts : SubtargetFeature<"vi-insts",
|
||||
"VIInsts",
|
||||
"true",
|
||||
"Additional instructions for VI+"
|
||||
>;
|
||||
|
||||
def FeatureGFX9Insts : SubtargetFeature<"gfx9-insts",
|
||||
"GFX9Insts",
|
||||
"true",
|
||||
@ -421,7 +427,7 @@ def FeatureSeaIslands : GCNSubtargetFeatureGeneration<"SEA_ISLANDS",
|
||||
def FeatureVolcanicIslands : GCNSubtargetFeatureGeneration<"VOLCANIC_ISLANDS",
|
||||
[FeatureFP64, FeatureLocalMemorySize65536, FeatureMIMG_R128,
|
||||
FeatureWavefrontSize64, FeatureFlatAddressSpace, FeatureGCN,
|
||||
FeatureGCN3Encoding, FeatureCIInsts, Feature16BitInsts,
|
||||
FeatureGCN3Encoding, FeatureCIInsts, FeatureVIInsts, Feature16BitInsts,
|
||||
FeatureSMemRealTime, FeatureVGPRIndexMode, FeatureMovrel,
|
||||
FeatureScalarStores, FeatureInv2PiInlineImm,
|
||||
FeatureSDWA, FeatureSDWAOutModsVOPC, FeatureSDWAMac, FeatureDPP,
|
||||
@ -432,7 +438,7 @@ def FeatureVolcanicIslands : GCNSubtargetFeatureGeneration<"VOLCANIC_ISLANDS",
|
||||
def FeatureGFX9 : GCNSubtargetFeatureGeneration<"GFX9",
|
||||
[FeatureFP64, FeatureLocalMemorySize65536,
|
||||
FeatureWavefrontSize64, FeatureFlatAddressSpace, FeatureGCN,
|
||||
FeatureGCN3Encoding, FeatureCIInsts, Feature16BitInsts,
|
||||
FeatureGCN3Encoding, FeatureCIInsts, FeatureVIInsts, Feature16BitInsts,
|
||||
FeatureSMemRealTime, FeatureScalarStores, FeatureInv2PiInlineImm,
|
||||
FeatureApertureRegs, FeatureGFX9Insts, FeatureVOP3P, FeatureVGPRIndexMode,
|
||||
FeatureFastFMAF32, FeatureDPP, FeatureIntClamp,
|
||||
|
@ -180,6 +180,7 @@ GCNSubtarget::GCNSubtarget(const Triple &TT, StringRef GPU, StringRef FS,
|
||||
FP64(false),
|
||||
GCN3Encoding(false),
|
||||
CIInsts(false),
|
||||
VIInsts(false),
|
||||
GFX9Insts(false),
|
||||
SGPRInitBug(false),
|
||||
HasSMemRealTime(false),
|
||||
|
@ -337,6 +337,7 @@ protected:
|
||||
bool IsGCN;
|
||||
bool GCN3Encoding;
|
||||
bool CIInsts;
|
||||
bool VIInsts;
|
||||
bool GFX9Insts;
|
||||
bool SGPRInitBug;
|
||||
bool HasSMemRealTime;
|
||||
|
Loading…
Reference in New Issue
Block a user