@@ -20,7 +20,7 @@ using namespace AMDGPU;
2020
2121// / Find KV in array using binary search.
2222static const BasicSubtargetSubTypeKV *
23- Find (StringRef S, ArrayRef<BasicSubtargetSubTypeKV> A) {
23+ find (StringRef S, ArrayRef<BasicSubtargetSubTypeKV> A) {
2424 // Binary search the array
2525 auto F = llvm::lower_bound (A, S);
2626 // If not found then return NULL
@@ -31,14 +31,14 @@ Find(StringRef S, ArrayRef<BasicSubtargetSubTypeKV> A) {
3131}
3232
3333// / For each feature that is (transitively) implied by this feature, set it.
34- static void SetImpliedBits (FeatureBitset &Bits, const FeatureBitset &Implies,
34+ static void setImpliedBits (FeatureBitset &Bits, const FeatureBitset &Implies,
3535 ArrayRef<BasicSubtargetFeatureKV> FeatureTable) {
3636 // OR the Implies bits in outside the loop. This allows the Implies for CPUs
3737 // which might imply features not in FeatureTable to use this.
3838 Bits |= Implies;
3939 for (const auto &FE : FeatureTable)
4040 if (Implies.test (FE.Value ))
41- SetImpliedBits (Bits, FE.Implies .getAsBitset (), FeatureTable);
41+ setImpliedBits (Bits, FE.Implies .getAsBitset (), FeatureTable);
4242}
4343
4444std::optional<llvm::StringMap<bool >> llvm::getCPUDefaultTargetFeatures (
@@ -47,14 +47,14 @@ std::optional<llvm::StringMap<bool>> llvm::getCPUDefaultTargetFeatures(
4747 if (CPU.empty ())
4848 return std::nullopt ;
4949
50- const BasicSubtargetSubTypeKV *CPUEntry = Find (CPU, ProcDesc);
50+ const BasicSubtargetSubTypeKV *CPUEntry = :: find (CPU, ProcDesc);
5151 if (!CPUEntry)
5252 return std::nullopt ;
5353
5454 // Set the features implied by this CPU feature if there is a match.
5555 FeatureBitset Bits;
5656 llvm::StringMap<bool > DefaultFeatures;
57- SetImpliedBits (Bits, CPUEntry->Implies .getAsBitset (), ProcFeatures);
57+ setImpliedBits (Bits, CPUEntry->Implies .getAsBitset (), ProcFeatures);
5858
5959 unsigned BitSize = Bits.size ();
6060 for (const BasicSubtargetFeatureKV &FE : ProcFeatures) {
0 commit comments