@@ -658,7 +658,7 @@ class FunctionsCategorizer {
658
658
}
659
659
660
660
// Creates a simple rule, which adds one or another value to a resulting
661
- // identifier based on a presence of a metadata on a function.
661
+ // identifier based on the presence of a metadata on a function.
662
662
void registerSimpleFlagAttributeRule (StringRef AttrName,
663
663
StringRef IfPresentStr,
664
664
StringRef IfAbsentStr = " " ) {
@@ -667,7 +667,7 @@ class FunctionsCategorizer {
667
667
}
668
668
669
669
// Creates a simple rule, which adds one or another value to a resulting
670
- // identifier based on a presence of a metadata on a function.
670
+ // identifier based on the presence of a metadata on a function.
671
671
void registerSimpleFlagMetadataRule (StringRef MetadataName,
672
672
StringRef IfPresentStr,
673
673
StringRef IfAbsentStr = " " ) {
@@ -791,13 +791,13 @@ std::string FunctionsCategorizer::computeCategoryFor(Function *F) const {
791
791
if (F->hasMetadata (MetadataName)) {
792
792
MDNode *MDN = F->getMetadata (MetadataName);
793
793
794
- SmallVector<unsigned , 8 > Values;
794
+ SmallVector<std:: uint64_t , 8 > Values;
795
795
for (const MDOperand &MDOp : MDN->operands ())
796
796
Values.push_back (mdconst::extract<ConstantInt>(MDOp)->getZExtValue ());
797
797
798
798
llvm::sort (Values);
799
799
800
- for (unsigned V : Values)
800
+ for (std:: uint64_t V : Values)
801
801
Result += " -" + std::to_string (V);
802
802
}
803
803
} break ;
@@ -880,8 +880,8 @@ getDeviceCodeSplitter(ModuleDesc &&MD, IRSplitMode Mode, bool IROutputOnly,
880
880
Groups.reserve (EntryPointsMap.size ());
881
881
// Start with properties of a source module
882
882
EntryPointGroup::Properties MDProps = MD.getEntryPointGroup ().Props ;
883
- for (auto &It : EntryPointsMap)
884
- Groups.emplace_back (It. first , std::move (It. second ), MDProps);
883
+ for (auto &[Key, EntryPoints] : EntryPointsMap)
884
+ Groups.emplace_back (Key , std::move (EntryPoints ), MDProps);
885
885
}
886
886
887
887
bool DoSplit = (Mode != SPLIT_NONE &&
0 commit comments