LLVM backend for 6502
Go to file
Daniel Dunbar 3c2d4bf97f Pass target triple string in to TargetMachine constructor.
This is not just a matter of passing in the target triple from the module;
currently backends are making decisions based on the build and host
architecture. The goal is to migrate to making these decisions based off of the
triple (in conjunction with the feature string). Thus most clients pass in the
target triple, or the host triple if that is empty.

This has one important change in the way behavior of the JIT and llc.

For the JIT, it was previously selecting the Target based on the host
(naturally), but it was setting the target machine features based on the triple
from the module. Now it is setting the target machine features based on the
triple of the host.

For LLC, -march was previously only used to select the target, the target
machine features were initialized from the module's triple (which may have been
empty). Now the target triple is taken from the module, or the host's triple is
used if that is empty. Then the triple is adjusted to match -march.

The take away is that -march for llc is now used in conjunction with the host
triple to initialize the subtarget. If users want more deterministic behavior
from llc, they should use -mtriple, or set the triple in the input module.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77946 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 04:03:51 +00:00
autoconf Build Blackfin target with autoconf and cmake. 2009-08-02 17:32:37 +00:00
bindings
cmake CMake configuration: find mkdtemp, mkstemp, mktemp. 2009-07-27 18:23:41 +00:00
docs Remove duplicated colons and spaces. 2009-08-02 12:13:02 +00:00
examples Move a few more APIs back to 2.5 forms. The only remaining ones left to change back are 2009-07-31 20:28:14 +00:00
include Pass target triple string in to TargetMachine constructor. 2009-08-03 04:03:51 +00:00
lib Pass target triple string in to TargetMachine constructor. 2009-08-03 04:03:51 +00:00
projects
runtime
test Pass target triple string in to TargetMachine constructor. 2009-08-03 04:03:51 +00:00
tools Pass target triple string in to TargetMachine constructor. 2009-08-03 04:03:51 +00:00
unittests Remove now empty unit test directory. 2009-08-01 19:07:29 +00:00
utils Fix an ENABLE_EXPENSIVE_CHECKS error. 2009-08-02 01:21:22 +00:00
website
win32
Xcode
build-for-llvm-top.sh
CMakeLists.txt Build Blackfin target with autoconf and cmake. 2009-08-02 17:32:37 +00:00
configure Build Blackfin target with autoconf and cmake. 2009-08-02 17:32:37 +00:00
CREDITS.TXT
LICENSE.TXT one fewer license, yay. :) 2009-08-01 22:54:39 +00:00
llvm.spec.in
Makefile
Makefile.common
Makefile.config.in
Makefile.rules
ModuleInfo.txt
README.txt

Low Level Virtual Machine (LLVM)
================================

This directory and its subdirectories contain source code for the Low Level 
Virtual Machine, a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments. 

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the HTML documentation provided in docs/index.html for further
assistance with LLVM.