summaryrefslogtreecommitdiffstats
path: root/llvm/test/LLVMC
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/LLVMC')
-rw-r--r--llvm/test/LLVMC/Alias.td2
-rw-r--r--llvm/test/LLVMC/AppendCmdHook.td2
-rw-r--r--llvm/test/LLVMC/EnvParentheses.td2
-rw-r--r--llvm/test/LLVMC/ForwardAs.td2
-rw-r--r--llvm/test/LLVMC/ForwardTransformedValue.td2
-rw-r--r--llvm/test/LLVMC/ForwardValue.td2
-rw-r--r--llvm/test/LLVMC/HookWithArguments.td2
-rw-r--r--llvm/test/LLVMC/HookWithInFile.td2
-rw-r--r--llvm/test/LLVMC/Init.td2
-rw-r--r--llvm/test/LLVMC/LanguageMap.td29
-rw-r--r--llvm/test/LLVMC/MultiValuedOption.td2
-rw-r--r--llvm/test/LLVMC/NoActions.td2
-rw-r--r--llvm/test/LLVMC/OneOrMore.td2
-rw-r--r--llvm/test/LLVMC/OptionPreprocessor.td2
-rw-r--r--llvm/test/LLVMC/OutputSuffixHook.td2
15 files changed, 43 insertions, 14 deletions
diff --git a/llvm/test/LLVMC/Alias.td b/llvm/test/LLVMC/Alias.td
index 45f7296b720..88e142dae27 100644
--- a/llvm/test/LLVMC/Alias.td
+++ b/llvm/test/LLVMC/Alias.td
@@ -21,4 +21,4 @@ def dummy_tool : Tool<[
(switch_on "dummy1"), (forward "dummy1")))
]>;
-def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
diff --git a/llvm/test/LLVMC/AppendCmdHook.td b/llvm/test/LLVMC/AppendCmdHook.td
index b7e73fc4205..690ece779df 100644
--- a/llvm/test/LLVMC/AppendCmdHook.td
+++ b/llvm/test/LLVMC/AppendCmdHook.td
@@ -26,4 +26,4 @@ def dummy_tool : Tool<[
(switch_on "dummy2"), (append_cmd "-arg3 $CALL(MyHook)")))
]>;
-def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
diff --git a/llvm/test/LLVMC/EnvParentheses.td b/llvm/test/LLVMC/EnvParentheses.td
index dbbb171d23f..403beb9521f 100644
--- a/llvm/test/LLVMC/EnvParentheses.td
+++ b/llvm/test/LLVMC/EnvParentheses.td
@@ -13,6 +13,6 @@ def dummy_tool : Tool<[
(out_language "dummy")
]>;
-def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
def Graph : CompilationGraph<[]>;
diff --git a/llvm/test/LLVMC/ForwardAs.td b/llvm/test/LLVMC/ForwardAs.td
index 521f3c291e2..326e94b0e86 100644
--- a/llvm/test/LLVMC/ForwardAs.td
+++ b/llvm/test/LLVMC/ForwardAs.td
@@ -18,4 +18,4 @@ def dummy_tool : Tool<[
(not_empty "dummy"), (forward_as "dummy", "unique_name")))
]>;
-def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
diff --git a/llvm/test/LLVMC/ForwardTransformedValue.td b/llvm/test/LLVMC/ForwardTransformedValue.td
index a390d03d89f..10038f68d3e 100644
--- a/llvm/test/LLVMC/ForwardTransformedValue.td
+++ b/llvm/test/LLVMC/ForwardTransformedValue.td
@@ -24,4 +24,4 @@ def dummy_tool : Tool<[
(not_empty "b"), (forward_transformed_value "b", "HookB")))
]>;
-def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
diff --git a/llvm/test/LLVMC/ForwardValue.td b/llvm/test/LLVMC/ForwardValue.td
index 93368f482a8..402fa50f7a2 100644
--- a/llvm/test/LLVMC/ForwardValue.td
+++ b/llvm/test/LLVMC/ForwardValue.td
@@ -21,4 +21,4 @@ def dummy_tool : Tool<[
(not_empty "b"), (forward_value "b")))
]>;
-def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
diff --git a/llvm/test/LLVMC/HookWithArguments.td b/llvm/test/LLVMC/HookWithArguments.td
index ba5f8201f72..b3260a973b8 100644
--- a/llvm/test/LLVMC/HookWithArguments.td
+++ b/llvm/test/LLVMC/HookWithArguments.td
@@ -17,4 +17,4 @@ def dummy_tool : Tool<[
(out_language "dummy")
]>;
-def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
diff --git a/llvm/test/LLVMC/HookWithInFile.td b/llvm/test/LLVMC/HookWithInFile.td
index b8ae7e21208..cc5da43b663 100644
--- a/llvm/test/LLVMC/HookWithInFile.td
+++ b/llvm/test/LLVMC/HookWithInFile.td
@@ -13,4 +13,4 @@ def dummy_tool : Tool<[
(out_language "dummy")
]>;
-def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
diff --git a/llvm/test/LLVMC/Init.td b/llvm/test/LLVMC/Init.td
index 59459d9a7e3..8ab07d880b4 100644
--- a/llvm/test/LLVMC/Init.td
+++ b/llvm/test/LLVMC/Init.td
@@ -22,4 +22,4 @@ def dummy_tool : Tool<[
(not_empty "dummy2"), (forward "dummy2")))
]>;
-def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
diff --git a/llvm/test/LLVMC/LanguageMap.td b/llvm/test/LLVMC/LanguageMap.td
new file mode 100644
index 00000000000..aa1149ca7f0
--- /dev/null
+++ b/llvm/test/LLVMC/LanguageMap.td
@@ -0,0 +1,29 @@
+// Check that LanguageMap is processed properly.
+// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
+// RUN: FileCheck -input-file %t %s
+// RUN: %compile_cxx -x c++ %t
+// XFAIL: vg_leak
+
+include "llvm/CompilerDriver/Common.td"
+
+def OptList : OptionList<[
+(switch_option "dummy1", (help "none"))
+]>;
+
+def dummy_tool : Tool<[
+(command "dummy_cmd"),
+(in_language "dummy_lang"),
+(out_language "dummy_lang"),
+(actions (case
+ (switch_on "dummy1"), (forward "dummy1")))
+]>;
+
+def lang_map : LanguageMap<[
+ // CHECK: langMap["dummy"] = "dummy_lang"
+ // CHECK: langMap["DUM"] = "dummy_lang"
+ (lang_to_suffixes "dummy_lang", ["dummy", "DUM"]),
+ // CHECK: langMap["DUM2"] = "dummy_lang_2"
+ (lang_to_suffixes "dummy_lang_2", "DUM2")
+]>;
+
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
diff --git a/llvm/test/LLVMC/MultiValuedOption.td b/llvm/test/LLVMC/MultiValuedOption.td
index 50c1f3d22a1..b6da6ce4c1d 100644
--- a/llvm/test/LLVMC/MultiValuedOption.td
+++ b/llvm/test/LLVMC/MultiValuedOption.td
@@ -21,4 +21,4 @@ def dummy_tool : Tool<[
(not_empty "baz"), (forward "baz")))
]>;
-def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
diff --git a/llvm/test/LLVMC/NoActions.td b/llvm/test/LLVMC/NoActions.td
index 1bc1c0268f7..2573fbe2f2c 100644
--- a/llvm/test/LLVMC/NoActions.td
+++ b/llvm/test/LLVMC/NoActions.td
@@ -13,4 +13,4 @@ def dummy_tool : Tool<[
(out_language "dummy")
]>;
-def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
diff --git a/llvm/test/LLVMC/OneOrMore.td b/llvm/test/LLVMC/OneOrMore.td
index fac22e6bc4b..bb0ad8b11b1 100644
--- a/llvm/test/LLVMC/OneOrMore.td
+++ b/llvm/test/LLVMC/OneOrMore.td
@@ -22,4 +22,4 @@ def dummy_tool : Tool<[
(not_empty "baz"), (forward "baz")))
]>;
-def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
diff --git a/llvm/test/LLVMC/OptionPreprocessor.td b/llvm/test/LLVMC/OptionPreprocessor.td
index e1e8eff63de..556530b8f76 100644
--- a/llvm/test/LLVMC/OptionPreprocessor.td
+++ b/llvm/test/LLVMC/OptionPreprocessor.td
@@ -63,5 +63,5 @@ def dummy : Tool<
(not_empty "foo_l"), (error)))
]>;
-def Graph : CompilationGraph<[Edge<"root", "dummy">]>;
+def Graph : CompilationGraph<[(edge "root", "dummy")]>;
diff --git a/llvm/test/LLVMC/OutputSuffixHook.td b/llvm/test/LLVMC/OutputSuffixHook.td
index f217dc72cfc..6bb2866c38b 100644
--- a/llvm/test/LLVMC/OutputSuffixHook.td
+++ b/llvm/test/LLVMC/OutputSuffixHook.td
@@ -21,4 +21,4 @@ def dummy_tool : Tool<[
(switch_on "dummy1"), (output_suffix "$CALL(MyHook)")))
]>;
-def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
OpenPOWER on IntegriCloud