llvm-project
520ddf22 - [TableGen] Remove duplicate code in applyMnemonicAliases when target uses DefaultAsmParserVariant. (#108494)

Commit
1 year ago
[TableGen] Remove duplicate code in applyMnemonicAliases when target uses DefaultAsmParserVariant. (#108494) The DefaultAsmParserVariant has an empty name. MnemonicAlias uses an empty string to mean the alias applies to all variants. Targets that uses DefaultAsmParserVariant were emitting the same code inside the variant loop and after the variant loop because an empty string got passed to emitMnemonicAliasVariant in both places. This patch detects the empty variant name in the loop and skips the emission.
Author
Parents
Loading