mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
More llvmc bits. Spotted by Benjamin on IRC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
33fe8eb46c
commit
78d0835969
@ -190,19 +190,6 @@ uninstall:: uninstall-local
|
||||
install-local:: all-local
|
||||
install-bytecode:: install-bytecode-local
|
||||
|
||||
###############################################################################
|
||||
# LLVMC: Provide rules for compiling llvmc-based driver
|
||||
###############################################################################
|
||||
|
||||
ifdef LLVMC_BASED_DRIVER
|
||||
|
||||
TOOLNAME = $(LLVMC_BASED_DRIVER)
|
||||
|
||||
LLVMLIBS = CompilerDriver.a
|
||||
LINK_COMPONENTS = support
|
||||
|
||||
endif # LLVMC_BASED_DRIVER
|
||||
|
||||
###############################################################################
|
||||
# VARIABLES: Set up various variables based on configuration data
|
||||
###############################################################################
|
||||
@ -1686,10 +1673,6 @@ ifdef TARGET
|
||||
TABLEGEN_INC_FILES_COMMON = 1
|
||||
endif
|
||||
|
||||
ifdef LLVMC_BASED_DRIVER
|
||||
TABLEGEN_INC_FILES_COMMON = 1
|
||||
endif
|
||||
|
||||
ifdef TABLEGEN_INC_FILES_COMMON
|
||||
|
||||
INCFiles := $(filter %.inc,$(BUILT_SOURCES))
|
||||
@ -1805,27 +1788,6 @@ clean-local::
|
||||
|
||||
endif # TARGET
|
||||
|
||||
ifdef LLVMC_BASED_DRIVER
|
||||
|
||||
TDSrc := $(sort $(strip $(wildcard $(PROJ_SRC_DIR)/*.td)) \
|
||||
$(strip $(wildcard $(PROJ_OBJ_DIR)/*.td)))
|
||||
|
||||
TDCommon := $(strip $(wildcard \
|
||||
$(LLVM_SRC_ROOT)/include/llvm/CompilerDriver/*.td))
|
||||
|
||||
TDFiles := $(TDSrc) $(TDCommon)
|
||||
|
||||
$(INCTMPFiles) : $(TBLGEN) $(TDFiles)
|
||||
|
||||
$(ObjDir)/%.inc.tmp: %.td $(ObjDir)/.dir
|
||||
$(Echo) "Building LLVMC compilation graph description with tblgen"
|
||||
$(Verb) $(TableGen) -gen-llvmc -o $(call SYSPATH, $@) $<
|
||||
|
||||
clean-local::
|
||||
-$(Verb) $(RM) -f $(INCFiles)
|
||||
|
||||
endif # LLVMC_BASED_DRIVER
|
||||
|
||||
###############################################################################
|
||||
# OTHER RULES: Other rules needed
|
||||
###############################################################################
|
||||
|
@ -72,9 +72,6 @@
|
||||
<li>After Subversion update, rebuilding gives the error "No rule to make
|
||||
target".</li>
|
||||
|
||||
<li><a href="#llvmc">The <tt>llvmc</tt> program gives me errors/doesn't
|
||||
work.</a></li>
|
||||
|
||||
<li><a href="#srcdir-objdir">When I compile LLVM-GCC with srcdir == objdir,
|
||||
it fails. Why?</a></li>
|
||||
</ol></li>
|
||||
@ -419,16 +416,6 @@ Stop.
|
||||
rebuilding.</p>
|
||||
</div>
|
||||
|
||||
<div class="question">
|
||||
<p><a name="llvmc">The <tt>llvmc</tt> program gives me errors/doesn't
|
||||
work.</a></p>
|
||||
</div>
|
||||
|
||||
<div class="answer">
|
||||
<p><tt>llvmc</tt> is experimental and isn't really supported. We suggest
|
||||
using <tt>llvm-gcc</tt> instead.</p>
|
||||
</div>
|
||||
|
||||
<div class="question">
|
||||
<p><a name="srcdir-objdir">When I compile LLVM-GCC with srcdir == objdir, it
|
||||
fails. Why?</a></p>
|
||||
|
@ -1595,16 +1595,6 @@ information is in the <a href="CommandGuide/index.html">Command Guide</a>.</p>
|
||||
href="HowToSubmitABug.html">HowToSubmitABug.html</a> for more information
|
||||
on using <tt>bugpoint</tt>.</dd>
|
||||
|
||||
<dt><tt><b>llvmc</b></tt></dt>
|
||||
<dd>The LLVM Compiler Driver. This program can
|
||||
be configured to utilize both LLVM and non-LLVM compilation tools to enable
|
||||
pre-processing, translation, optimization, assembly, and linking of programs
|
||||
all from one command line. <tt>llvmc</tt> also takes care of processing the
|
||||
dependent libraries found in bitcode. This reduces the need to get the
|
||||
traditional <tt>-l<name></tt> options right on the command line. Please
|
||||
note that this tool, while functional, is still experimental and not feature
|
||||
complete.</dd>
|
||||
|
||||
<dt><tt><b>llvm-ar</b></tt></dt>
|
||||
<dd>The archiver produces an archive containing
|
||||
the given LLVM bitcode files, optionally with an index for faster
|
||||
@ -1620,9 +1610,9 @@ information is in the <a href="CommandGuide/index.html">Command Guide</a>.</p>
|
||||
|
||||
<dt><tt><b>llvm-ld</b></tt></dt>
|
||||
<dd><tt>llvm-ld</tt> is a general purpose and extensible linker for LLVM.
|
||||
This is the linker invoked by <tt>llvmc</tt>. It performs standard link time
|
||||
optimizations and allows optimization modules to be loaded and run so that
|
||||
language specific optimizations can be applied at link time.</dd>
|
||||
It performs standard link time optimizations and allows optimization
|
||||
modules to be loaded and run so that language specific optimizations can
|
||||
be applied at link time.</dd>
|
||||
|
||||
<dt><tt><b>llvm-link</b></tt></dt>
|
||||
<dd><tt>llvm-link</tt>, not surprisingly, links multiple LLVM modules into
|
||||
|
@ -87,7 +87,6 @@ Current tools:
|
||||
<a href="/cmds/opt.html">opt</a>,
|
||||
<a href="/cmds/llc.html">llc</a>,
|
||||
<a href="/cmds/lli.html">lli</a>,
|
||||
<a href="/cmds/llvmc.html">llvmc</a>
|
||||
<a href="/cmds/llvmgcc.html">llvm-gcc</a>,
|
||||
<a href="/cmds/llvmgxx.html">llvm-g++</a>,
|
||||
<a href="/cmds/bugpoint.html">bugpoint</a>,
|
||||
|
Loading…
Reference in New Issue
Block a user