llvm-6502/include/llvm/Target
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
..
COFFTargetAsmInfo.h remove TargetAsmInfo::TM, which is now dead. The basic TAI class now 2009-08-02 04:27:24 +00:00
DarwinTargetAsmInfo.h remove TargetAsmInfo::TM, which is now dead. The basic TAI class now 2009-08-02 04:27:24 +00:00
SubtargetFeature.h Propagate CPU string out of SubtargetFeatures 2009-05-23 19:50:50 +00:00
Target.td 1. Introduce a new TargetOperandInfo::getRegClass() helper method 2009-07-29 21:10:12 +00:00
TargetAsmInfo.h move dwarf debug info section selection stuff from TAI to 2009-08-02 07:24:22 +00:00
TargetAsmParser.h Move X86 instruction parsing into X86/AsmParser. 2009-07-28 22:40:46 +00:00
TargetCallingConv.td Add CCIfSRet calling convention predicate. 2009-07-12 13:15:50 +00:00
TargetData.h assert(0) -> LLVM_UNREACHABLE. 2009-07-11 20:10:48 +00:00
TargetELFWriterInfo.h Change ELFCodeEmitter logic to emit the constant pool and jump tables to 2009-07-21 23:13:26 +00:00
TargetFrameInfo.h Tidy up #includes, deleting a bunch of unnecessary #includes. 2009-01-05 17:59:02 +00:00
TargetInstrDesc.h 1. Introduce a new TargetOperandInfo::getRegClass() helper method 2009-07-29 21:10:12 +00:00
TargetInstrInfo.h Move the getInlineAsmLength virtual method from TAI to TII, where 2009-08-02 05:20:37 +00:00
TargetInstrItineraries.h Implement ComputeLatency for MachineInstr ScheduleDAGs. Factor 2008-11-21 00:12:10 +00:00
TargetIntrinsicInfo.h Added support to have TableGen provide information if an intrinsic (core 2009-02-24 23:17:49 +00:00
TargetJITInfo.h First patch in the direction of splitting MachineCodeEmitter in two subclasses: 2009-05-30 20:51:52 +00:00
TargetLowering.h Minor whitespace tidiness. 2009-08-01 21:25:46 +00:00
TargetLoweringObjectFile.h move dwarf debug info section selection stuff from TAI to 2009-08-02 07:24:22 +00:00
TargetMachine.h move an enum from TM -> TargetOptions. This makes TargetOptions.h 2009-08-02 04:08:52 +00:00
TargetMachOWriterInfo.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
TargetOptions.h move an enum from TM -> TargetOptions. This makes TargetOptions.h 2009-08-02 04:08:52 +00:00
TargetRegisterInfo.h Give getPointerRegClass() a "kind" value so that targets can 2009-07-29 20:31:52 +00:00
TargetRegistry.h Pass target triple string in to TargetMachine constructor. 2009-08-03 04:03:51 +00:00
TargetSchedule.td Move target independent td files from lib/Target/ to include/llvm/Target so they can be distributed along with the header files. 2008-11-24 07:34:46 +00:00
TargetSelect.h Add llvm::InitializeAllTargetInfos and llvm::InitializeAllAsmParsers. 2009-07-17 22:35:35 +00:00
TargetSelectionDAG.td Make IntInits and ListInits typed. This helps deduce types of !if and 2009-06-08 20:23:18 +00:00
TargetSubtarget.h Add initial support for back-scheduling address computations, 2008-12-16 03:35:01 +00:00