mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-12 21:56:41 +00:00
64683edb4d
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50730 91177308-0d34-0410-b5e6-96231b3b80d8
38 lines
1.2 KiB
TableGen
38 lines
1.2 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, [(switch_on "S")]>,
|
|
OptionalEdge<llvm_gcc_cpp, opt, [(switch_on "S")]>,
|
|
OptionalEdge<llvm_as, opt, [(switch_on "S")]>,
|
|
OptionalEdge<opt, llc, [(and (switch_on "S"), (parameter_equals "O", "V")),
|
|
(element_in_list "P", "E")]>,
|
|
|
|
Edge<llc, llvm_gcc_assembler>,
|
|
Edge<llvm_gcc_assembler, llvm_gcc_linker>
|
|
]>;
|