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 | db4621a5f54ec80a24dceb013dd0f66dfcb88ec8 (patch) | |
tree | e2a540755b0b8d043b3feecd97c50c1cfbf5f0db /llvm/lib/Target/Alpha/AlphaSubtarget.cpp | |
parent | cb67b650b5c9953499c61e63b6491c96b053c616 (diff) | |
download | bcm5719-llvm-db4621a5f54ec80a24dceb013dd0f66dfcb88ec8.tar.gz bcm5719-llvm-db4621a5f54ec80a24dceb013dd0f66dfcb88ec8.zip |
Preparation of supporting scheduling info. Need to find info based on selected
CPU.
llvm-svn: 23974
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaSubtarget.cpp')
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaSubtarget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaSubtarget.cpp b/llvm/lib/Target/Alpha/AlphaSubtarget.cpp index 570f68018e8..cc3a6b11f93 100644 --- a/llvm/lib/Target/Alpha/AlphaSubtarget.cpp +++ b/llvm/lib/Target/Alpha/AlphaSubtarget.cpp @@ -19,10 +19,10 @@ using namespace llvm; AlphaSubtarget::AlphaSubtarget(const Module &M, const std::string &FS) : HasF2I(false), HasCT(false) { std::string CPU = "generic"; - 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); HasF2I = (Bits & FeatureFIX) != 0; HasCT = (Bits & FeatureCIX) != 0; } |