forked from OSchip/llvm-project
[AMDGPU] remove unused AssemblerPredicates
An internal build is hitting asserts complaining about too many subtarget features: llvm/utils/TableGen/Types.cpp:42: const char* llvm::getMinimalTypeForEnumBitfield(uint64_t): Assertion `MaxIndex <= 64 && "Too many bits"' failed. llvm/utils/TableGen/AsmMatcherEmitter.cpp:1476: void {anonymous}::AsmMatcherInfo::buildInfo(): Assertion `SubtargetFeatures.size() <= 64 && "Too many subtarget features!"' failed. The short-term solution is to remove a few unused AssemblerPredicates to get under the limit. The long-term solution seems to be to revisit these asserts. E.g., rather than hardcoded '64', use the standard sized std::bitset like the other places that track subtarget features. Differential Revision: https://reviews.llvm.org/D58516 llvm-svn: 354604
This commit is contained in:
parent
93ad8b3aa5
commit
599ce44d3f
|
@ -721,17 +721,13 @@ def HasDSAddTid : Predicate<"Subtarget->getGeneration() >= AMDGPUSubtarget::GFX9
|
||||||
def HasAddNoCarryInsts : Predicate<"Subtarget->hasAddNoCarry()">,
|
def HasAddNoCarryInsts : Predicate<"Subtarget->hasAddNoCarry()">,
|
||||||
AssemblerPredicate<"FeatureAddNoCarryInsts">;
|
AssemblerPredicate<"FeatureAddNoCarryInsts">;
|
||||||
|
|
||||||
def NotHasAddNoCarryInsts : Predicate<"!Subtarget->hasAddNoCarry()">,
|
def NotHasAddNoCarryInsts : Predicate<"!Subtarget->hasAddNoCarry()">;
|
||||||
AssemblerPredicate<"!FeatureAddNoCarryInsts">;
|
|
||||||
|
|
||||||
def Has16BitInsts : Predicate<"Subtarget->has16BitInsts()">,
|
def Has16BitInsts : Predicate<"Subtarget->has16BitInsts()">,
|
||||||
AssemblerPredicate<"Feature16BitInsts">;
|
AssemblerPredicate<"Feature16BitInsts">;
|
||||||
def HasVOP3PInsts : Predicate<"Subtarget->hasVOP3PInsts()">,
|
def HasVOP3PInsts : Predicate<"Subtarget->hasVOP3PInsts()">,
|
||||||
AssemblerPredicate<"FeatureVOP3P">;
|
AssemblerPredicate<"FeatureVOP3P">;
|
||||||
|
|
||||||
def NotHasVOP3PInsts : Predicate<"!Subtarget->hasVOP3PInsts()">,
|
|
||||||
AssemblerPredicate<"!FeatureVOP3P">;
|
|
||||||
|
|
||||||
def HasSDWA : Predicate<"Subtarget->hasSDWA()">,
|
def HasSDWA : Predicate<"Subtarget->hasSDWA()">,
|
||||||
AssemblerPredicate<"FeatureSDWA,FeatureVolcanicIslands">;
|
AssemblerPredicate<"FeatureSDWA,FeatureVolcanicIslands">;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue