summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-18 06:47:49 +0000
committerChris Lattner <sabre@nondot.org>2010-02-18 06:47:49 +0000
commit7ed81690ab42e034ac767ab86c239d16c6297527 (patch)
tree484705b84706305c19b7e755f96697ae78881cc5 /llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
parentfd47c7977441b6331ca662528b3334cb5b0f30c6 (diff)
downloadbcm5719-llvm-7ed81690ab42e034ac767ab86c239d16c6297527.tar.gz
bcm5719-llvm-7ed81690ab42e034ac767ab86c239d16c6297527.zip
start sketching out the structure of code for result emission generation.
Nothing real here yet. llvm-svn: 96575
Diffstat (limited to 'llvm/utils/TableGen/DAGISelMatcherEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/DAGISelMatcherEmitter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp b/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
index 5d468194d79..158fe7ff3ab 100644
--- a/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
+++ b/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
@@ -262,6 +262,9 @@ EmitMatcherList(const MatcherNode *N, unsigned Indent) {
}
void MatcherTableEmitter::EmitPredicateFunctions() {
+ // FIXME: Don't build off the DAGISelEmitter's predicates, emit them directly
+ // here into the case stmts.
+
// Emit pattern predicates.
OS << "bool CheckPatternPredicate(unsigned PredNo) const {\n";
OS << " switch (PredNo) {\n";
OpenPOWER on IntegriCloud