[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCSubtarget.cpp
Jim Laskey
jlaskey at apple.com
Tue Oct 25 08:15:41 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPCSubtarget.cpp updated: 1.12 -> 1.13
---
Log message:
Preparation of supporting scheduling info. Need to find info based on selected
CPU.
---
Diffs of the changes: (+4 -3)
PPCSubtarget.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCSubtarget.cpp
diff -u llvm/lib/Target/PowerPC/PPCSubtarget.cpp:1.12 llvm/lib/Target/PowerPC/PPCSubtarget.cpp:1.13
--- llvm/lib/Target/PowerPC/PPCSubtarget.cpp:1.12 Sun Oct 23 17:34:25 2005
+++ llvm/lib/Target/PowerPC/PPCSubtarget.cpp Tue Oct 25 10:15:28 2005
@@ -76,9 +76,10 @@
#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;
More information about the llvm-commits
mailing list