[PATCH] D77010: [OpenMP] set_bits iterator yields unsigned elements, no reference (NFC).
Florian Hahn via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 29 09:36:14 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG99913ef3d14f: [OpenMP] set_bits iterator yields unsigned elements, no reference (NFC). (authored by fhahn).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77010/new/
https://reviews.llvm.org/D77010
Files:
llvm/lib/Frontend/OpenMP/OMPContext.cpp
Index: llvm/lib/Frontend/OpenMP/OMPContext.cpp
===================================================================
--- llvm/lib/Frontend/OpenMP/OMPContext.cpp
+++ llvm/lib/Frontend/OpenMP/OMPContext.cpp
@@ -79,8 +79,8 @@
LLVM_DEBUG({
dbgs() << "[" << DEBUG_TYPE
<< "] New OpenMP context with the following properties:\n";
- for (const auto &SetBitsIt : ActiveTraits.set_bits()) {
- TraitProperty Property = TraitProperty(SetBitsIt);
+ for (unsigned Bit : ActiveTraits.set_bits()) {
+ TraitProperty Property = TraitProperty(Bit);
dbgs() << "\t " << getOpenMPContextTraitPropertyFullName(Property)
<< "\n";
}
@@ -127,8 +127,8 @@
// relation is not required to be strict.
if (VMI0.RequiredTraits.count() >= VMI1.RequiredTraits.count())
return false;
- for (const auto &SetBitsIt : VMI0.RequiredTraits.set_bits())
- if (!VMI1.RequiredTraits.test(SetBitsIt))
+ for (unsigned Bit : VMI0.RequiredTraits.set_bits())
+ if (!VMI1.RequiredTraits.test(Bit))
return false;
if (!isSubset<TraitProperty>(VMI0.ConstructTraits, VMI1.ConstructTraits))
return false;
@@ -139,8 +139,8 @@
const VariantMatchInfo &VMI, const OMPContext &Ctx,
SmallVectorImpl<unsigned> *ConstructMatches) {
- for (const auto &SetBitsIt : VMI.RequiredTraits.set_bits()) {
- TraitProperty Property = TraitProperty(SetBitsIt);
+ for (unsigned Bit : VMI.RequiredTraits.set_bits()) {
+ TraitProperty Property = TraitProperty(Bit);
bool IsActiveTrait = Ctx.ActiveTraits.test(unsigned(Property));
if (!IsActiveTrait) {
@@ -191,8 +191,8 @@
APInt Score(64, 1);
unsigned NoConstructTraits = VMI.ConstructTraits.size();
- for (const auto &SetBitsIt : VMI.RequiredTraits.set_bits()) {
- TraitProperty Property = TraitProperty(SetBitsIt);
+ for (unsigned Bit : VMI.RequiredTraits.set_bits()) {
+ TraitProperty Property = TraitProperty(Bit);
// If there is a user score attached, use it.
if (VMI.ScoreMap.count(Property)) {
const APInt &UserScore = VMI.ScoreMap.lookup(Property);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77010.253429.patch
Type: text/x-patch
Size: 2087 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200329/6e932e4b/attachment-0001.bin>
More information about the cfe-commits
mailing list