aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/FileUtilities.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-22 19:22:23 +0000
committerChris Lattner <sabre@nondot.org>2005-01-22 19:22:23 +0000
commit92275bb6bbd9ff8f5be8ce3cde9fef6944ea8fe1 (patch)
tree3cc9fd44dc04683583eb136ae704a4cf9781f3ad /llvm/lib/Support/FileUtilities.cpp
parent945e8655dd0658abb2132b1bfaaad2d30fe818b2 (diff)
downloadllvm-92275bb6bbd9ff8f5be8ce3cde9fef6944ea8fe1.zip
llvm-92275bb6bbd9ff8f5be8ce3cde9fef6944ea8fe1.tar.gz
llvm-92275bb6bbd9ff8f5be8ce3cde9fef6944ea8fe1.tar.bz2
Implement *even more* factoring. In particular, if all of the instruction
strings starts out with a constant string, we emit the string first, using a table lookup (instead of a switch statement). Because this is usually the opcode portion of the asm string, the differences between the instructions have now been greatly reduced. This allows many more case statements to be grouped together. This patch also allows instruction cases to be grouped together when the instruction patterns are exactly identical (common after the opcode string has been ripped off), and when the differing operand is a MachineInstr operand that needs to be formatted. The end result of this is a mean and lean generated AsmPrinter! llvm-svn: 19759
Diffstat (limited to 'llvm/lib/Support/FileUtilities.cpp')
0 files changed, 0 insertions, 0 deletions