OSDN Git Service

Replace the old algorithm that emitted the "print the alias for an instruction"
authorBill Wendling <isanbard@gmail.com>
Thu, 7 Apr 2011 21:20:06 +0000 (21:20 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 7 Apr 2011 21:20:06 +0000 (21:20 +0000)
commit44dcfd36253570ccd5f00189eb918604473135e0
treed78ce020afdf85e2676e5f378b33bcac36f1f005
parente578252c27a85f3e63eb749006def6d0ce5ef1e1
Replace the old algorithm that emitted the "print the alias for an instruction"
with the newer, cleaner model. It uses the IAPrinter class to hold the
information that is needed to match an instruction with its alias. This also
takes into account the available features of the platform.

There is one bit of ugliness. The way the logic determines if a pattern is
unique is O(N**2), which is gross. But in reality, the number of items it's
checking against isn't large. So while it's N**2, it shouldn't be a massive time
sink.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129110 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCInstPrinter.h
lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
lib/Target/X86/InstPrinter/X86ATTInstPrinter.h
lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
lib/Target/X86/InstPrinter/X86IntelInstPrinter.h
utils/TableGen/AsmWriterEmitter.cpp