summaryrefslogtreecommitdiff
path: root/utils/TableGen/InstrSelectorEmitter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-07 19:28:55 +0000
committerChris Lattner <sabre@nondot.org>2003-08-07 19:28:55 +0000
commit2b8b2b4aeeb4b64ed57372faf8a4b2a25dc3a5ec (patch)
tree894237b05edff716aa4271da411a38ea0c3a3bc4 /utils/TableGen/InstrSelectorEmitter.h
parentb356a24bf199f448704f5860e4b64af552a22922 (diff)
downloadllvm-2b8b2b4aeeb4b64ed57372faf8a4b2a25dc3a5ec.tar.gz
llvm-2b8b2b4aeeb4b64ed57372faf8a4b2a25dc3a5ec.tar.bz2
llvm-2b8b2b4aeeb4b64ed57372faf8a4b2a25dc3a5ec.tar.xz
Cleanup and reorganize code, no functional changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/InstrSelectorEmitter.h')
-rw-r--r--utils/TableGen/InstrSelectorEmitter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/TableGen/InstrSelectorEmitter.h b/utils/TableGen/InstrSelectorEmitter.h
index 681830ffa8..a9d7028eb0 100644
--- a/utils/TableGen/InstrSelectorEmitter.h
+++ b/utils/TableGen/InstrSelectorEmitter.h
@@ -88,6 +88,13 @@ public:
}
void dump() const;
+
+
+ // UpdateNodeType - Set the node type of N to VT if VT contains information.
+ // If N already contains a conflicting type, then throw an exception. This
+ // returns true if any information was updated.
+ //
+ bool updateNodeType(MVT::ValueType VT, const std::string &RecName);
};
std::ostream &operator<<(std::ostream &OS, const TreePatternNode &N);