Allow InstAlias's to use immediate matcher patterns that xform the value.
authorJim Grosbach <grosbach@apple.com>
Fri, 28 Oct 2011 22:32:53 +0000 (22:32 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 28 Oct 2011 22:32:53 +0000 (22:32 +0000)
commit48c1f84b104fd32109d809a56f5ebbf461c0910c
tree9fec923bee9f6fc4ec33522d8b87bf01dea71196
parent017f87cf68c48e0b23f6250c86aa13d212ded77a
Allow InstAlias's to use immediate matcher patterns that xform the value.

For example,

On ARM, "mov r3, #-3" is an alias for "mvn r3, #2", so we want to use a
matcher pattern that handles the bitwise negation when mapping to t2MVNi.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143233 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/AsmMatcherEmitter.cpp
utils/TableGen/CodeGenInstruction.cpp