summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp
diff options
context:
space:
mode:
authorMichael Kuperstein <michael.m.kuperstein@intel.com>2015-05-13 08:27:08 +0000
committerMichael Kuperstein <michael.m.kuperstein@intel.com>2015-05-13 08:27:08 +0000
commitaba4a34ef23873e66aba9848bdbe5a6fcfbc4705 (patch)
tree61671b9f7fe934ab14545900ab7301699be96440 /llvm/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp
parent60c270764e2fe0d2e212dd859f9983fe0cc4eb66 (diff)
downloadbcm5719-llvm-aba4a34ef23873e66aba9848bdbe5a6fcfbc4705.tar.gz
bcm5719-llvm-aba4a34ef23873e66aba9848bdbe5a6fcfbc4705.zip
Use std::bitset for SubtargetFeatures
Previously, subtarget features were a bitfield with the underlying type being uint64_t. Since several targets (X86 and ARM, in particular) have hit or were very close to hitting this bound, switching the features to use a bitset. No functional change. The first two times this was committed (r229831, r233055), it caused several buildbot failures. At least some of the ARM and MIPS ones were due to gcc/binutils issues, and should now be fixed. llvm-svn: 237234
Diffstat (limited to 'llvm/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp')
-rw-r--r--llvm/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp b/llvm/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp
index d54412c465e..41f7494d674 100644
--- a/llvm/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp
+++ b/llvm/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp
@@ -321,7 +321,7 @@ public:
: MCTargetAsmParser(), STI(STI), MII(MII), Parser(_Parser),
ForcedEncodingSize(0){
- if (!STI.getFeatureBits()) {
+ if (STI.getFeatureBits().none()) {
// Set default features.
STI.ToggleFeature("SOUTHERN_ISLANDS");
}
OpenPOWER on IntegriCloud