llvm-6502/tools
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
..
bugpoint 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
gccas remove attributions 2007-12-29 20:46:15 +00:00
gccld remove attributions 2007-12-29 20:46:15 +00:00
gold Add a Force option to raw_fd_ostream to specify whether opening 2009-07-15 17:29:42 +00:00
llc Pass target triple string in to TargetMachine constructor. 2009-08-03 04:03:51 +00:00
lli Re-committing r76828 with the JIT memory manager changes now that the build 2009-07-23 21:46:56 +00:00
llvm-ar To simplify the upcoming context-on-type change, switch all command line tools to using the default global context for now. 2009-07-15 22:16:10 +00:00
llvm-as Convert more tools code from cerr and cout to errs() and outs(). 2009-07-16 15:30:09 +00:00
llvm-bcanalyzer Handle NamedMDNode. 2009-07-30 23:03:19 +00:00
llvm-config Reenable asmparser dependency generation, now with improved Perl foo. 2009-07-17 21:26:27 +00:00
llvm-db To simplify the upcoming context-on-type change, switch all command line tools to using the default global context for now. 2009-07-15 22:16:10 +00:00
llvm-dis Convert more tools code from cerr and cout to errs() and outs(). 2009-07-16 15:30:09 +00:00
llvm-extract Convert more tools code from cerr and cout to errs() and outs(). 2009-07-16 15:30:09 +00:00
llvm-ld Added -b option to override the default bitcode output file name. 2009-07-22 18:41:45 +00:00
llvm-link Convert more tools code from cerr and cout to errs() and outs(). 2009-07-16 15:30:09 +00:00
llvm-mc Make SectionKind::get() private. 2009-08-02 00:02:44 +00:00
llvm-nm Add plumbing for the `linker_private' linkage type. This type is meant for 2009-07-20 01:03:30 +00:00
llvm-prof One more getName -> getNameStr 2009-07-25 00:43:31 +00:00
llvm-ranlib To simplify the upcoming context-on-type change, switch all command line tools to using the default global context for now. 2009-07-15 22:16:10 +00:00
llvm-stub Comment headers should extend to 80 chars. 2008-12-31 17:40:52 +00:00
llvmc Convert more tools code from cerr and cout to errs() and outs(). 2009-07-16 15:30:09 +00:00
lto Pass target triple string in to TargetMachine constructor. 2009-08-03 04:03:51 +00:00
opt Switch some clients to Value::getName(), and other getName() user 2009-07-22 21:33:09 +00:00
CMakeLists.txt CMake: remove support for llvm-config-generated dependencies in the build 2009-06-23 18:30:17 +00:00
Makefile LLVMC doesn't need ENABLE_PIC to build now. 2009-07-04 03:54:54 +00:00