llvm-6502/lib/Support
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
..
Allocator.cpp Added a test and fixed a bug in BumpPtrAllocator relating to large alignment 2009-07-25 21:26:02 +00:00
APFloat.cpp llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. 2009-07-14 16:55:14 +00:00
APInt.cpp llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. 2009-07-14 16:55:14 +00:00
APSInt.cpp
CMakeLists.txt Update CMake files. 2009-07-31 18:50:22 +00:00
CommandLine.cpp Remove duplicated colons and spaces. 2009-08-02 12:13:02 +00:00
ConstantRange.cpp Fix ConstantRange::unionWith. Also make it work a little hard in some cases to 2009-07-19 03:44:35 +00:00
Debug.cpp Hide the DOUT static variable behind a function interface. 2009-07-20 16:16:06 +00:00
Dwarf.cpp llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. 2009-07-14 16:55:14 +00:00
ErrorHandling.cpp Allow llvm_report_error to accept a Twine. 2009-07-24 07:58:10 +00:00
FileUtilities.cpp
FoldingSet.cpp llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. 2009-07-14 16:55:14 +00:00
FormattedStream.cpp Re-apply previous changes and improve column padding performance some more. 2009-07-29 16:08:27 +00:00
GraphWriter.cpp
IsInf.cpp
IsNAN.cpp
Makefile
ManagedStatic.cpp
MemoryBuffer.cpp
PluginLoader.cpp
PrettyStackTrace.cpp add a knob to turn off PrettyStackTrace globally. Patch by Zoltan 2009-07-16 06:17:45 +00:00
raw_ostream.cpp Add raw_ostream::write_hex 2009-07-30 18:21:23 +00:00
SlowOperationInformer.cpp
SmallPtrSet.cpp
SourceMgr.cpp
Statistic.cpp
Streams.cpp
StringExtras.cpp
StringMap.cpp Convert StringMap to using StringRef for its APIs. 2009-07-23 18:17:34 +00:00
StringPool.cpp Convert StringMap to using StringRef for its APIs. 2009-07-23 18:17:34 +00:00
SystemUtils.cpp Add a raw_ostream version of CheckBitcodeOutputToConsole. 2009-07-15 17:04:50 +00:00
TargetRegistry.cpp Remove unused header 2009-07-26 02:23:52 +00:00
Timer.cpp
Triple.cpp Pass target triple string in to TargetMachine constructor. 2009-08-03 04:03:51 +00:00
Twine.cpp Add missing flush(). 2009-08-02 04:12:28 +00:00