mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65943 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			TableGen
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			TableGen
		
	
	
	
	
	
//===- Simple.td - A simple plugin for LLVMC ------------------------------===//
 | 
						|
//
 | 
						|
//                     The LLVM Compiler Infrastructure
 | 
						|
//
 | 
						|
// This file is distributed under the University of Illinois Open Source
 | 
						|
// License. See LICENSE.TXT for details.
 | 
						|
//
 | 
						|
//===----------------------------------------------------------------------===//
 | 
						|
//
 | 
						|
// A simple LLVMC-based gcc wrapper that shows how to write LLVMC plugins.
 | 
						|
//
 | 
						|
// To compile, use this command:
 | 
						|
//
 | 
						|
//      $ cd $LLVMC_DIR/example/Simple
 | 
						|
//      $ make
 | 
						|
//
 | 
						|
// Run as:
 | 
						|
//
 | 
						|
//      $ llvmc -load $LLVM_DIR/Release/lib/plugin_llvmc_Simple.so
 | 
						|
//
 | 
						|
// For instructions on how to build your own LLVMC-based driver, see
 | 
						|
// the 'example/Skeleton' directory.
 | 
						|
//===----------------------------------------------------------------------===//
 | 
						|
 | 
						|
include "llvm/CompilerDriver/Common.td"
 | 
						|
 | 
						|
def gcc : Tool<
 | 
						|
[(in_language "c"),
 | 
						|
 (out_language "executable"),
 | 
						|
 (output_suffix "out"),
 | 
						|
 (cmd_line "gcc $INFILE -o $OUTFILE"),
 | 
						|
 (sink)
 | 
						|
]>;
 | 
						|
 | 
						|
def LanguageMap : LanguageMap<[LangToSuffixes<"c", ["c"]>]>;
 | 
						|
 | 
						|
def CompilationGraph : CompilationGraph<[Edge<"root", "gcc">]>;
 |