mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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:
7
tools/llvmc/examples/Skeleton/AutoGenerated.td
Normal file
7
tools/llvmc/examples/Skeleton/AutoGenerated.td
Normal file
@@ -0,0 +1,7 @@
|
||||
//===- AutoGenerated.td ------------------------------------*- tablegen -*-===//
|
||||
//
|
||||
// Write the TableGen description of your llvmc-based driver here.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
include "llvm/CompilerDriver/Common.td"
|
12
tools/llvmc/examples/Skeleton/Hooks.cpp
Normal file
12
tools/llvmc/examples/Skeleton/Hooks.cpp
Normal 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.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
15
tools/llvmc/examples/Skeleton/Main.cpp
Normal file
15
tools/llvmc/examples/Skeleton/Main.cpp
Normal 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"
|
20
tools/llvmc/examples/Skeleton/Makefile
Normal file
20
tools/llvmc/examples/Skeleton/Makefile
Normal 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
|
6
tools/llvmc/examples/Skeleton/README
Normal file
6
tools/llvmc/examples/Skeleton/README
Normal 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.
|
Reference in New Issue
Block a user