aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2005-10-25 15:15:28 +0000
committerJim Laskey <jlaskey@mac.com>2005-10-25 15:15:28 +0000
commitdb4621a5f54ec80a24dceb013dd0f66dfcb88ec8 (patch)
treee2a540755b0b8d043b3feecd97c50c1cfbf5f0db /llvm/lib/Target/PowerPC/PPCSubtarget.cpp
parentcb67b650b5c9953499c61e63b6491c96b053c616 (diff)
downloadllvm-db4621a5f54ec80a24dceb013dd0f66dfcb88ec8.zip
llvm-db4621a5f54ec80a24dceb013dd0f66dfcb88ec8.tar.gz
llvm-db4621a5f54ec80a24dceb013dd0f66dfcb88ec8.tar.bz2
Preparation of supporting scheduling info. Need to find info based on selected
CPU. llvm-svn: 23974
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
index fca1f36..1995e1c 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
+++ b/llvm/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;