summaryrefslogtreecommitdiff
path: root/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
commit620d7412508ae63378462df73d75706f19582646 (patch)
tree95c06363af08a4b3f5cfbe8321d65c103035a22c /utils/TableGen/CodeGenInstruction.cpp
parent9be3c97183f832d084bcf0fab82f7cd8aae08385 (diff)
downloadllvm-620d7412508ae63378462df73d75706f19582646.tar.gz
llvm-620d7412508ae63378462df73d75706f19582646.tar.bz2
llvm-620d7412508ae63378462df73d75706f19582646.tar.xz
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!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r--utils/TableGen/CodeGenInstruction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenInstruction.cpp b/utils/TableGen/CodeGenInstruction.cpp
index 0ee6b41d90..8b70647907 100644
--- a/utils/TableGen/CodeGenInstruction.cpp
+++ b/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!";