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 | 83aeaab4620b6c3218ac36a7f329a4cb82abff81 (patch) | |
tree | 20e2e92d288ff69f8d696149590606fa44a4a897 /llvm/utils/TableGen/CodeGenDAGPatterns.cpp | |
parent | be6b17f92798e953d36a88693076ae95e3a06a39 (diff) | |
download | bcm5719-llvm-83aeaab4620b6c3218ac36a7f329a4cb82abff81.tar.gz bcm5719-llvm-83aeaab4620b6c3218ac36a7f329a4cb82abff81.zip |
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.
llvm-svn: 98934
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index 98f86f8246f..3e1b5dabba5 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -671,6 +671,8 @@ SDNodeInfo::SDNodeInfo(Record *R) : Def(R) { Properties |= 1 << SDNPSideEffect; } else if (PropList[i]->getName() == "SDNPMemOperand") { Properties |= 1 << SDNPMemOperand; + } else if (PropList[i]->getName() == "SDNPVariadic") { + Properties |= 1 << SDNPVariadic; } else { errs() << "Unknown SD Node property '" << PropList[i]->getName() << "' on node '" << R->getName() << "'!\n"; |