summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenInstruction.cpp
diff options
context:
space:
mode:
authorChristopher Lamb <christopher.lamb@gmail.com>2008-03-10 04:13:41 +0000
committerChristopher Lamb <christopher.lamb@gmail.com>2008-03-10 04:13:41 +0000
commit0faed2a9a60d470569529eebf46aa8092ff8911c (patch)
treeb561a84f8e38deb135462a4286ae6510b4cf72f9 /llvm/utils/TableGen/CodeGenInstruction.cpp
parentb73a43cc01ee4984b0c74c117348280e8b9ee5ae (diff)
downloadbcm5719-llvm-0faed2a9a60d470569529eebf46aa8092ff8911c.tar.gz
bcm5719-llvm-0faed2a9a60d470569529eebf46aa8092ff8911c.zip
Add support in TableGen for unknown operands that infer their type from the pattern their used in. This will be used to allow insert/extract subreg patterns in .td files!
llvm-svn: 48125
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenInstruction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp
index 0ee6b41d908..8b706479077 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.cpp
+++ b/llvm/utils/TableGen/CodeGenInstruction.cpp
@@ -163,7 +163,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
isVariadic = true;
continue;
} else if (!Rec->isSubClassOf("RegisterClass") &&
- Rec->getName() != "ptr_rc")
+ Rec->getName() != "ptr_rc" && Rec->getName() != "unknown")
throw "Unknown operand class '" + Rec->getName() +
"' in instruction '" + R->getName() + "' instruction!";
OpenPOWER on IntegriCloud