mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Add example/Skeleton.
This is a template that can be used to build your own LLVMC-based drivers. It can be also useful as a "bare-bones" LLVMC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65944 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
18
tools/llvmc/example/Skeleton/plugins/Makefile
Normal file
18
tools/llvmc/example/Skeleton/plugins/Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
##===- llvmc/example/Skeleton/plugins/Makefile -------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open
|
||||
# Source License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL = $(LLVMC_BASE_LEVEL)/..
|
||||
|
||||
ifneq ($(LLVMC_BUILTIN_PLUGINS),)
|
||||
DIRS = $(LLVMC_BUILTIN_PLUGINS)
|
||||
endif
|
||||
|
||||
export LLVMC_BUILTIN_PLUGIN=1
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
17
tools/llvmc/example/Skeleton/plugins/Plugin/Makefile
Normal file
17
tools/llvmc/example/Skeleton/plugins/Plugin/Makefile
Normal file
@@ -0,0 +1,17 @@
|
||||
##===- llvmc/example/Skeleton/plugins/Plugin/Makefile ------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL = $(LLVMC_BASE_LEVEL)/../..
|
||||
|
||||
# Change this to the name of your plugin.
|
||||
LLVMC_PLUGIN = Plugin
|
||||
|
||||
BUILT_SOURCES = AutoGenerated.inc
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
7
tools/llvmc/example/Skeleton/plugins/Plugin/Plugin.td
Normal file
7
tools/llvmc/example/Skeleton/plugins/Plugin/Plugin.td
Normal file
@@ -0,0 +1,7 @@
|
||||
//===- Plugin.td - A skeleton plugin for LLVMC -------------*- tablegen -*-===//
|
||||
//
|
||||
// Write the code for your plugin here.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
include "llvm/CompilerDriver/Common.td"
|
@@ -0,0 +1 @@
|
||||
#include "AutoGenerated.inc"
|
Reference in New Issue
Block a user