summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCSubtargetInfo.cpp
diff options
context:
space:
mode:
authorJohn Brawn <john.brawn@arm.com>2015-06-05 13:29:24 +0000
committerJohn Brawn <john.brawn@arm.com>2015-06-05 13:29:24 +0000
commitd03d22922dee3bdb039c5926c49c4e1e5da5a734 (patch)
treedc155b9c744601a5608f6e646ee70ab7c15e0457 /llvm/lib/MC/MCSubtargetInfo.cpp
parent6f2b88a39838fa46b222e506c9407f1cc31feeb3 (diff)
downloadbcm5719-llvm-d03d22922dee3bdb039c5926c49c4e1e5da5a734.tar.gz
bcm5719-llvm-d03d22922dee3bdb039c5926c49c4e1e5da5a734.zip
[ARM] Add knowledge of FPU subtarget features to TargetParser
Add getFPUFeatures to TargetParser, which gets the list of subtarget features that are enabled/disabled for each FPU, and use it when handling the .fpu directive. No functional change in this commit, though clang will start behaving differently once it starts using this. Differential Revision: http://reviews.llvm.org/D10237 llvm-svn: 239150
Diffstat (limited to 'llvm/lib/MC/MCSubtargetInfo.cpp')
-rw-r--r--llvm/lib/MC/MCSubtargetInfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCSubtargetInfo.cpp b/llvm/lib/MC/MCSubtargetInfo.cpp
index 6abdd3acbc5..7954a02d83b 100644
--- a/llvm/lib/MC/MCSubtargetInfo.cpp
+++ b/llvm/lib/MC/MCSubtargetInfo.cpp
@@ -81,6 +81,11 @@ FeatureBitset MCSubtargetInfo::ToggleFeature(StringRef FS) {
return FeatureBits;
}
+FeatureBitset MCSubtargetInfo::ApplyFeatureFlag(StringRef FS) {
+ SubtargetFeatures Features;
+ FeatureBits = Features.ApplyFeatureFlag(FeatureBits, FS, ProcFeatures);
+ return FeatureBits;
+}
MCSchedModel
MCSubtargetInfo::getSchedModelForCPU(StringRef CPU) const {
OpenPOWER on IntegriCloud