summaryrefslogtreecommitdiffstats
path: root/include/llvm/CompilerDriver/Common.td
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CompilerDriver/Common.td')
-rw-r--r--include/llvm/CompilerDriver/Common.td21
1 files changed, 15 insertions, 6 deletions
diff --git a/include/llvm/CompilerDriver/Common.td b/include/llvm/CompilerDriver/Common.td
index 1f6bacc..5b7c543 100644
--- a/include/llvm/CompilerDriver/Common.td
+++ b/include/llvm/CompilerDriver/Common.td
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
//
-// This file contains common definitions used in llvmc2 tool description files.
+// This file contains common definitions used in llvmc tool description files.
//
//===----------------------------------------------------------------------===//
@@ -39,29 +39,35 @@ def prefix_list_option;
def extern;
def help;
def hidden;
+def init;
def multi_val;
def one_or_more;
def really_hidden;
def required;
def zero_or_one;
-// Empty DAG marker.
-def empty;
-
// The 'case' construct.
def case;
+// Boolean constants.
+def true;
+def false;
+
// Boolean operators.
def and;
def or;
+def not;
// Primitive tests.
def switch_on;
def parameter_equals;
def element_in_list;
def input_languages_contain;
+def empty;
def not_empty;
def default;
+def single_input_file;
+def multiple_input_files;
// Possible actions.
@@ -76,6 +82,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;
@@ -105,10 +114,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>;
OpenPOWER on IntegriCloud