1 //===- Simple.td - A simple plugin for LLVMC ------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // A simple LLVMC-based gcc wrapper that shows how to write LLVMC plugins.
12 // To compile, use this command:
14 // $ cd $LLVMC_DIR/example/Simple
19 // $ llvmc -load $LLVM_DIR/Release/lib/plugin_llvmc_Simple.so
21 // For instructions on how to build your own LLVMC-based driver, see
22 // the 'example/Skeleton' directory.
23 //===----------------------------------------------------------------------===//
25 include "llvm/CompilerDriver/Common.td"
29 (out_language "executable"),
30 (output_suffix "out"),
31 (cmd_line "gcc $INFILE -o $OUTFILE"),
35 def LanguageMap : LanguageMap<[LangToSuffixes<"c", ["c"]>]>;
37 def CompilationGraph : CompilationGraph<[Edge<"root", "gcc">]>;