summaryrefslogtreecommitdiff
path: root/include/llvm/Target/Target.td
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2012-09-11 23:47:08 +0000
committerOwen Anderson <resistor@mac.com>2012-09-11 23:47:08 +0000
commit83c0eefa3b4698edd007a4cb24d550fd42566063 (patch)
treef1e52784c00cd18e6ac8fd96203c2e0dad3743a0 /include/llvm/Target/Target.td
parentd2c699706ceae4a118a8dcafbef73b85093e5390 (diff)
downloadllvm-83c0eefa3b4698edd007a4cb24d550fd42566063.tar.gz
llvm-83c0eefa3b4698edd007a4cb24d550fd42566063.tar.bz2
llvm-83c0eefa3b4698edd007a4cb24d550fd42566063.tar.xz
Improve tblgen code cleanliness: create an unknown_class, from which the unknown def inherits. Make tblgen check for that class, rather than checking for the def itself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/Target.td')
-rw-r--r--include/llvm/Target/Target.td3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Target/Target.td b/include/llvm/Target/Target.td
index 87bd84ec84..42747af41e 100644
--- a/include/llvm/Target/Target.td
+++ b/include/llvm/Target/Target.td
@@ -495,7 +495,8 @@ def ptr_rc : PointerLikeRegClass<0>;
/// unknown definition - Mark this operand as being of unknown type, causing
/// it to be resolved by inference in the context it is used.
-def unknown;
+class unknown_class;
+def unknown : unknown_class;
/// AsmOperandClass - Representation for the kinds of operands which the target
/// specific parser can create and the assembly matcher may need to distinguish.