summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--support/tools/TableGen/Makefile9
-rw-r--r--utils/TableGen/Makefile9
2 files changed, 14 insertions, 4 deletions
diff --git a/support/tools/TableGen/Makefile b/support/tools/TableGen/Makefile
index a9c235037e..667998242f 100644
--- a/support/tools/TableGen/Makefile
+++ b/support/tools/TableGen/Makefile
@@ -8,9 +8,14 @@ clean::
-rm -f FileParser.cpp FileParser.h FileLexer.cpp CommandLine.cpp
-rm -f FileParser.output
-test::
+
+dump::
$(TOOLEXENAME_G) < X86.td
- # -parse
+
+parse:
+ $(TOOLEXENAME_G) < X86.td -parse
+
+test::
@echo "enum {"
@$(TOOLEXENAME_G) < X86.td -class=Register
diff --git a/utils/TableGen/Makefile b/utils/TableGen/Makefile
index a9c235037e..667998242f 100644
--- a/utils/TableGen/Makefile
+++ b/utils/TableGen/Makefile
@@ -8,9 +8,14 @@ clean::
-rm -f FileParser.cpp FileParser.h FileLexer.cpp CommandLine.cpp
-rm -f FileParser.output
-test::
+
+dump::
$(TOOLEXENAME_G) < X86.td
- # -parse
+
+parse:
+ $(TOOLEXENAME_G) < X86.td -parse
+
+test::
@echo "enum {"
@$(TOOLEXENAME_G) < X86.td -class=Register