2008-03-23 09:57:20 +01:00
|
|
|
//===- Example.td - LLVMCC toolchain descriptions ---------*- tablegen -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2008-05-06 18:35:25 +02:00
|
|
|
// This file contains compilation graph description used by llvmcc.
|
2008-03-23 09:57:20 +01:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "Common.td"
|
|
|
|
include "Tools.td"
|
|
|
|
|
|
|
|
// Toolchains
|
|
|
|
|
2008-05-06 18:35:25 +02: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 18:36:50 +02:00
|
|
|
|
2008-05-06 18:35:25 +02:00
|
|
|
Edge<llvm_gcc_c, llc>,
|
|
|
|
Edge<llvm_gcc_cpp, llc>,
|
|
|
|
Edge<llvm_as, llc>,
|
2008-05-06 18:36:50 +02:00
|
|
|
|
2008-05-06 19:23:50 +02:00
|
|
|
OptionalEdge<llvm_gcc_c, opt, [(switch_on "opt")]>,
|
|
|
|
OptionalEdge<llvm_gcc_cpp, opt, [(switch_on "opt")]>,
|
|
|
|
OptionalEdge<llvm_as, opt, [(switch_on "opt")]>,
|
|
|
|
Edge<opt, llc>,
|
2008-05-06 18:36:50 +02:00
|
|
|
|
2008-05-06 18:35:25 +02:00
|
|
|
Edge<llc, llvm_gcc_assembler>,
|
|
|
|
Edge<llvm_gcc_assembler, llvm_gcc_linker>
|
2008-03-23 09:57:20 +01:00
|
|
|
]>;
|