Implement Subtarget support
authorNate Begeman <natebegeman@mac.com>
Tue, 12 Jul 2005 01:41:54 +0000 (01:41 +0000)
committerNate Begeman <natebegeman@mac.com>
Tue, 12 Jul 2005 01:41:54 +0000 (01:41 +0000)
commitfb5792f416089d8d8d0c6ee62c1f41a55d2cf75d
treee2b2a65b1d1e7f426d6f3035bca964ce25c0d79d
parent73213f6c07afc1479f8d7bf53ea99adf7fd60b78
Implement Subtarget support
Implement the X86 Subtarget.

This consolidates the checks for target triple, and setting options based
on target triple into one place.  This allows us to convert the asm printer
and isel over from being littered with "forDarwin", "forCygwin", etc. into
just having the appropriate flags for each subtarget feature controlling
the code for that feature.

This patch also implements indirect external and weak references in the
X86 pattern isel, for darwin.  Next up is to convert over the asm printers
to use this new interface.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22389 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetMachine.h
include/llvm/Target/TargetSubtarget.h [new file with mode: 0644]
lib/Target/TargetSubtarget.cpp [new file with mode: 0644]
lib/Target/X86/X86ISelPattern.cpp
lib/Target/X86/X86Subtarget.cpp [new file with mode: 0644]
lib/Target/X86/X86Subtarget.h [new file with mode: 0644]
lib/Target/X86/X86TargetMachine.cpp
lib/Target/X86/X86TargetMachine.h