diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-19 05:07:09 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-19 05:07:09 +0000 |
| commit | d7e53fb1280db21f60475eb2cade502f78937df4 (patch) | |
| tree | f941dd1fcd848b714c9d589a6fdac67c96c75d84 /utils/TableGen/CodeGenTarget.cpp | |
| parent | df91b1abe338969ac58b49f8a321fef063a4e5bd (diff) | |
| download | external_llvm-d7e53fb1280db21f60475eb2cade502f78937df4.zip external_llvm-d7e53fb1280db21f60475eb2cade502f78937df4.tar.gz external_llvm-d7e53fb1280db21f60475eb2cade502f78937df4.tar.bz2 | |
add a new SDNPVariadic SDNP node flag, and use it in
dag isel gen instead of instruction properties. This
allows the oh-so-useful behavior of matching a variadic
non-root node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.cpp')
| -rw-r--r-- | utils/TableGen/CodeGenTarget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index a0c2c21..79bc30d 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/utils/TableGen/CodeGenTarget.cpp @@ -395,6 +395,8 @@ ComplexPattern::ComplexPattern(Record *R) { Properties |= 1 << SDNPSideEffect; } else if (PropList[i]->getName() == "SDNPMemOperand") { Properties |= 1 << SDNPMemOperand; + } else if (PropList[i]->getName() == "SDNPVariadic") { + Properties |= 1 << SDNPVariadic; } else { errs() << "Unsupported SD Node property '" << PropList[i]->getName() << "' on ComplexPattern '" << R->getName() << "'!\n"; |
