mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 05:30:49 +00:00
e5557f4da4
Besides assigning edge weights, it will also be used by the cmd_line tool property. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51727 91177308-0d34-0410-b5e6-96231b3b80d8
50 lines
1.7 KiB
TableGen
50 lines
1.7 KiB
TableGen
//===- 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.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains compilation graph description used by llvmcc.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
include "Common.td"
|
|
include "Tools.td"
|
|
|
|
// Toolchains
|
|
|
|
def CompilationGraph : CompilationGraph<[
|
|
Edge<root, llvm_gcc_c>,
|
|
Edge<root, llvm_gcc_assembler>,
|
|
Edge<root, llvm_gcc_cpp>,
|
|
Edge<root, llvm_as>,
|
|
|
|
Edge<llvm_gcc_c, llc>,
|
|
Edge<llvm_gcc_cpp, llc>,
|
|
Edge<llvm_as, llc>,
|
|
|
|
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))>,
|
|
Edge<opt, llc>,
|
|
|
|
Edge<llc, llvm_gcc_assembler>,
|
|
Edge<llvm_gcc_assembler, llvm_gcc_linker>,
|
|
OptionalEdge<llvm_gcc_assembler, llvm_gcc_cpp_linker,
|
|
(case
|
|
(input_languages_contain "c++"), (inc_weight),
|
|
(or (parameter_equals "linker", "g++"),
|
|
(parameter_equals "linker", "c++")), (inc_weight))>,
|
|
|
|
|
|
Edge<root, llvm_gcc_linker>,
|
|
OptionalEdge<root, llvm_gcc_cpp_linker,
|
|
(case
|
|
(input_languages_contain "c++"), (inc_weight),
|
|
(or (parameter_equals "linker", "g++"),
|
|
(parameter_equals "linker", "c++")), (inc_weight))>
|
|
]>;
|