diff options
Diffstat (limited to 'tools/llvmc2/Common.td')
-rw-r--r-- | tools/llvmc2/Common.td | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tools/llvmc2/Common.td b/tools/llvmc2/Common.td index 15b9264d88..ea211e1e1e 100644 --- a/tools/llvmc2/Common.td +++ b/tools/llvmc2/Common.td @@ -15,6 +15,10 @@ class Tool<list<dag> l> { list<dag> properties = l; } +// Special Tool instance - root of all toolchains + +def root : Tool<[]>; + // Possible Tool properties def in_language; @@ -52,12 +56,13 @@ class LanguageMap<list<LangToSuffixes> lst> { list<LangToSuffixes> map = lst; } -// Toolchain classes +// Compilation graph -class ToolChain <list<Tool> lst> { - list <Tool> tools = lst; +class Edge<Tool t1, Tool t2> { + Tool a = t1; + Tool b = t2; } -class ToolChains <list<ToolChain> lst> { - list<ToolChain> chains = lst; +class CompilationGraph<list<Edge> lst> { + list<Edge> edges = lst; } |