llvm-project/llvm/utils
Tim Northover 5896b066e6 TableGen: fix operand counting for aliases
TableGen has a fairly dubious heuristic to decide whether an alias should be
printed: does the alias have lest operands than the real instruction. This is
bad enough (particularly with no way to override it), but it should at least be
calculated consistently for both strings.

This patch implements that logic: first get the *correct* string for the
variant, in the same way as the Matcher, without guessing; then count the
number of whitespace chars.

There are basically 4 changes this brings about after the previous
commits; all of these appear to be good, so I have changed the tests:

+ ARM64: we print "neg X, Y" instead of "sub X, xzr, Y".
+ ARM64: we skip implicit "uxtx" and "uxtw" modifiers.
+ Sparc: we print "mov A, B" instead of "or %g0, A, B".
+ Sparc: we print "fcmpX A, B" instead of "fcmpX %fcc0, A, B"

llvm-svn: 208969
2014-05-16 09:42:04 +00:00
..
FileCheck When a CHECK-NEXT fails because there was no match on the next line, include 2014-04-07 17:09:53 +00:00
FileUpdate raw_ostream: Forward declare OpenFlags and include FileSystem.h only where necessary. 2014-04-29 23:26:49 +00:00
KillTheDoctor
Misc Patch that forces MergeFunctions pass for clang. 2013-09-24 20:06:31 +00:00
PerfectShuffle [CMake] Add build rules for llvm-PerfectShuffle utility 2014-05-07 16:54:00 +00:00
TableGen TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
Target/ARM
bugpoint
buildit ARM64: initial backend import 2014-03-29 10:18:08 +00:00
count Install three utils, "FileCheck", "count", and "not", for now to appease llvmlab dragonegg builder. 2013-12-20 06:25:37 +00:00
crosstool
emacs Add addrspacecast instruction. 2013-11-15 01:34:59 +00:00
fpcmp Don't use PathV1.h in FileUtilities.h. 2013-06-13 20:41:00 +00:00
git
git-svn Use 'git svn find-rev' in git-svnrevert instead of shell script fu. 2013-04-26 03:27:39 +00:00
jedit
kate Remove the linker_private and linker_private_weak linkages. 2014-03-13 23:18:37 +00:00
lint
lit Fix test syntax to work with non-bash /bin/sh. 2014-04-12 21:13:41 +00:00
llvm-build llvm-build: Get rid of 'import *' 2014-04-23 19:17:42 +00:00
llvm-lit lit: Set a base directory for compiler-rt tests 2014-03-31 23:14:10 +00:00
not [CMake] LLVMSupport should be responsible to provide system_libs. 2014-02-10 10:52:19 +00:00
release Display the name of the project failing the url check in the release script 2014-04-14 12:36:48 +00:00
testgen
textmate
unittest Reverted r203879. 2014-03-14 01:56:55 +00:00
valgrind
vim Remove the linker_private and linker_private_weak linkages. 2014-03-13 23:18:37 +00:00
yaml-bench Fix typo 2014-04-05 20:28:13 +00:00
DSAclean.py
DSAextract.py
GenLibDeps.pl
GetRepositoryPath Fix the build for git repositories with multiple remotes. 2013-09-16 09:25:49 +00:00
GetSourceVersion
LLVMBuild.txt
Makefile Move yaml2obj to tools too. 2013-04-05 20:00:35 +00:00
UpdateCMakeLists.pl
check-each-file
clang-parse-diagnostics-file
codegen-diff
countloc.sh
findmisopt
findoptdiff
findsym.pl
getsrcs.sh
lldbDataFormatters.py
llvm-compilers-check
llvm-native-gxx
llvm.grm Remove the linker_private and linker_private_weak linkages. 2014-03-13 23:18:37 +00:00
llvm.natvis Adding support for MSVC debugger visualization of the Optional datatype. 2014-03-03 21:15:07 +00:00
llvmdo
llvmgrep
makellvm
sort_includes.py
test_debuginfo.pl test_debuginfo.pl: Make failures easier to debug by printing the debugger 2014-02-20 19:55:44 +00:00
wciia.py Fix known typos 2014-01-24 17:20:08 +00:00