summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-09-10 16:22:02 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-09-10 16:22:02 +0000
commitc1e23592ec65cd977f881377193bcfdc3e25bdb8 (patch)
tree44d1a824f0e40e9f1945a4029e0519cc9ed62ef6
parent7b047b9c81f8e0b9582da2b867d415a79f6ab8db (diff)
downloadbcm5719-llvm-c1e23592ec65cd977f881377193bcfdc3e25bdb8.tar.gz
bcm5719-llvm-c1e23592ec65cd977f881377193bcfdc3e25bdb8.zip
Distinguish between 'empty' and empty DAG marker.
llvm-svn: 81448
-rw-r--r--llvm/include/llvm/CompilerDriver/Common.td11
-rw-r--r--llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp2
2 files changed, 7 insertions, 6 deletions
diff --git a/llvm/include/llvm/CompilerDriver/Common.td b/llvm/include/llvm/CompilerDriver/Common.td
index 2ea1f4a3f0c..e1a0213bf0b 100644
--- a/llvm/include/llvm/CompilerDriver/Common.td
+++ b/llvm/include/llvm/CompilerDriver/Common.td
@@ -46,9 +46,6 @@ def really_hidden;
def required;
def zero_or_one;
-// Empty DAG marker.
-def empty;
-
// The 'case' construct.
def case;
@@ -66,6 +63,7 @@ def switch_on;
def parameter_equals;
def element_in_list;
def input_languages_contain;
+def empty;
def not_empty;
def default;
@@ -82,6 +80,9 @@ def error;
def inc_weight;
def dec_weight;
+// Empty DAG marker.
+def empty_dag_marker;
+
// Used to specify plugin priority.
class PluginPriority<int p> {
int priority = p;
@@ -111,10 +112,10 @@ class EdgeBase<string t1, string t2, dag d> {
dag weight = d;
}
-class Edge<string t1, string t2> : EdgeBase<t1, t2, (empty)>;
+class Edge<string t1, string t2> : EdgeBase<t1, t2, (empty_dag_marker)>;
// Edge and SimpleEdge are synonyms.
-class SimpleEdge<string t1, string t2> : EdgeBase<t1, t2, (empty)>;
+class SimpleEdge<string t1, string t2> : EdgeBase<t1, t2, (empty_dag_marker)>;
// Optionally enabled edge.
class OptionalEdge<string t1, string t2, dag props> : EdgeBase<t1, t2, props>;
diff --git a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp
index 8a5b36acd58..0807bff0a67 100644
--- a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp
+++ b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp
@@ -89,7 +89,7 @@ void checkNumberOfArguments (const DagInit* d, unsigned min_arguments) {
// isDagEmpty - is this DAG marked with an empty marker?
bool isDagEmpty (const DagInit* d) {
- return d->getOperator()->getAsString() == "empty";
+ return d->getOperator()->getAsString() == "empty_dag_marker";
}
// EscapeVariableName - Escape commas and other symbols not allowed
OpenPOWER on IntegriCloud