2008-05-30 06:20:54 +00:00
|
|
|
//===- Graph.td - LLVMCC toolchain descriptions ------------*- tablegen -*-===//
|
2008-03-23 08:57:20 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2008-05-06 16:35:25 +00:00
|
|
|
// This file contains compilation graph description used by llvmcc.
|
2008-03-23 08:57:20 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "Common.td"
|
|
|
|
include "Tools.td"
|
|
|
|
|
|
|
|
// Toolchains
|
|
|
|
|
2008-05-06 16:35:25 +00:00
|
|
|
def CompilationGraph : CompilationGraph<[
|
|
|
|
Edge<root, llvm_gcc_c>,
|
|
|
|
Edge<root, llvm_gcc_assembler>,
|
|
|
|
Edge<root, llvm_gcc_cpp>,
|
|
|
|
Edge<root, llvm_as>,
|
2008-05-06 16:36:50 +00:00
|
|
|
|
2008-05-06 16:35:25 +00:00
|
|
|
Edge<llvm_gcc_c, llc>,
|
|
|
|
Edge<llvm_gcc_cpp, llc>,
|
|
|
|
Edge<llvm_as, llc>,
|
2008-05-06 16:36:50 +00:00
|
|
|
|
2008-05-30 06:08:50 +00:00
|
|
|
OptionalEdge<llvm_gcc_c, opt, (case (switch_on "opt"), (inc_weight))>,
|
|
|
|
OptionalEdge<llvm_gcc_cpp, opt, (case (switch_on "opt"), (inc_weight))>,
|
|
|
|
OptionalEdge<llvm_as, opt, (case (switch_on "opt"), (inc_weight))>,
|
2008-05-06 17:23:50 +00:00
|
|
|
Edge<opt, llc>,
|
2008-05-06 16:36:50 +00:00
|
|
|
|
2008-05-06 16:35:25 +00:00
|
|
|
Edge<llc, llvm_gcc_assembler>,
|
2008-05-06 18:10:20 +00:00
|
|
|
Edge<llvm_gcc_assembler, llvm_gcc_linker>,
|
2008-05-06 18:13:00 +00:00
|
|
|
OptionalEdge<llvm_gcc_assembler, llvm_gcc_cpp_linker,
|
2008-05-30 06:08:50 +00:00
|
|
|
(case
|
|
|
|
(input_languages_contain "c++"), (inc_weight),
|
|
|
|
(or (parameter_equals "linker", "g++"),
|
|
|
|
(parameter_equals "linker", "c++")), (inc_weight))>,
|
2008-05-06 18:10:20 +00:00
|
|
|
|
2008-05-06 18:13:00 +00:00
|
|
|
|
|
|
|
Edge<root, llvm_gcc_linker>,
|
|
|
|
OptionalEdge<root, llvm_gcc_cpp_linker,
|
2008-05-30 06:08:50 +00:00
|
|
|
(case
|
|
|
|
(input_languages_contain "c++"), (inc_weight),
|
|
|
|
(or (parameter_equals "linker", "g++"),
|
|
|
|
(parameter_equals "linker", "c++")), (inc_weight))>
|
2008-03-23 08:57:20 +00:00
|
|
|
]>;
|