llvmc: Update examples.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mikhail Glushenkov
2010-08-19 20:04:19 +00:00
parent 8f2766df7f
commit b57326c8aa
27 changed files with 116 additions and 187 deletions

View File

@@ -0,0 +1,7 @@
//===- AutoGenerated.td ------------------------------------*- tablegen -*-===//
//
// Write the TableGen description of your llvmc-based driver here.
//
//===----------------------------------------------------------------------===//
include "llvm/CompilerDriver/Common.td"

View File

@@ -0,0 +1,12 @@
//===--- Hooks.cpp - The LLVM Compiler Driver -------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open
// Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Hook definitions should go here.
//
//===----------------------------------------------------------------------===//

View File

@@ -0,0 +1,15 @@
//===--- Main.cpp - The LLVM Compiler Driver -------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open
// Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Just include CompilerDriver/Main.inc and AutoGenerated.inc.
//
//===----------------------------------------------------------------------===//
#include "llvm/CompilerDriver/Main.inc"
#include "AutoGenerated.inc"

View File

@@ -0,0 +1,20 @@
##===- llvmc/examples/Skeleton/Makefile --------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open
# Source License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
# Change this so that $(LEVEL)/Makefile.common refers to
# $LLVM_OBJ_DIR/Makefile.common or $YOUR_LLVM_BASED_PROJECT/Makefile.common.
export LEVEL = ../../../..
# Change this to the name of your LLVMC-based driver.
LLVMC_BASED_DRIVER = llvmc-skeleton
# Change this to the name of .inc file built from your .td file.
BUILT_SOURCES = AutoGenerated.inc
include $(LEVEL)/Makefile.common

View File

@@ -0,0 +1,6 @@
This is a template that can be used to create your own LLVMC-based drivers. Just
copy the `Skeleton` directory to the location of your preference and edit
`Skeleton/Makefile` and `Skeleton/AutoGenerated.inc`.
The build system assumes that your project is based on LLVM.