diff options
author | Jim Laskey <jlaskey@mac.com> | 2005-10-25 15:15:28 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2005-10-25 15:15:28 +0000 |
commit | 34bd5d5d876212611d8b66a18f4c8604b342c6eb (patch) | |
tree | b65e1b0e1660aa3cdbbc7b1639fce08b82eb411c /lib/Target/PowerPC/PPCSubtarget.cpp | |
parent | e9c6d3637752b940a3c280196b0f594b65725e54 (diff) |
Preparation of supporting scheduling info. Need to find info based on selected
CPU.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCSubtarget.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.cpp b/lib/Target/PowerPC/PPCSubtarget.cpp index fca1f36ae7..1995e1ceb0 100644 --- a/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/lib/Target/PowerPC/PPCSubtarget.cpp @@ -76,9 +76,10 @@ PPCSubtarget::PPCSubtarget(const Module &M, const std::string &FS) #if defined(__APPLE__) CPU = GetCurrentPowerPCCPU(); #endif - uint32_t Bits = - SubtargetFeatures::Parse(FS, CPU, - SubTypeKV, SubTypeKVSize, FeatureKV, FeatureKVSize); + SubtargetFeatures Features(FS); + Features.setCPUIfNone(CPU); + uint32_t Bits = Features.getBits(SubTypeKV, SubTypeKVSize, + FeatureKV, FeatureKVSize); IsGigaProcessor = (Bits & FeatureGPUL ) != 0; Is64Bit = (Bits & Feature64Bit) != 0; HasFSQRT = (Bits & FeatureFSqrt) != 0; |