blob: 57629904d18dca75424c8d75dd90da2a09f67ec5 [file] [log] [blame]
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +00001//===- Example.td - LLVMCC toolchain descriptions ---------*- tablegen -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
Mikhail Glushenkov2cfd2232008-05-06 16:35:25 +000010// This file contains compilation graph description used by llvmcc.
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000011//
12//===----------------------------------------------------------------------===//
13
14include "Common.td"
15include "Tools.td"
16
17// Toolchains
18
Mikhail Glushenkov2cfd2232008-05-06 16:35:25 +000019def CompilationGraph : CompilationGraph<[
20 Edge<root, llvm_gcc_c>,
21 Edge<root, llvm_gcc_assembler>,
22 Edge<root, llvm_gcc_cpp>,
23 Edge<root, llvm_as>,
Mikhail Glushenkov761958d2008-05-06 16:36:50 +000024
Mikhail Glushenkov2cfd2232008-05-06 16:35:25 +000025 Edge<llvm_gcc_c, llc>,
26 Edge<llvm_gcc_cpp, llc>,
27 Edge<llvm_as, llc>,
Mikhail Glushenkov761958d2008-05-06 16:36:50 +000028
Mikhail Glushenkovf68efe12008-05-06 17:23:50 +000029 OptionalEdge<llvm_gcc_c, opt, [(switch_on "opt")]>,
30 OptionalEdge<llvm_gcc_cpp, opt, [(switch_on "opt")]>,
31 OptionalEdge<llvm_as, opt, [(switch_on "opt")]>,
32 Edge<opt, llc>,
Mikhail Glushenkov761958d2008-05-06 16:36:50 +000033
Mikhail Glushenkov2cfd2232008-05-06 16:35:25 +000034 Edge<llc, llvm_gcc_assembler>,
Mikhail Glushenkov49254b52008-05-06 18:10:20 +000035 Edge<llvm_gcc_assembler, llvm_gcc_linker>,
36
37 Edge<root, llvm_gcc_linker>
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000038 ]>;