================ @@ -388,6 +388,76 @@ bool LoongArchTargetInfo::handleTargetFeatures( return true; } +enum class AttrFeatureKind { Arch, Tune, NoFeature, Feature, Invalid }; ---------------- wangleiat wrote: Is Invalid unused? https://github.com/llvm/llvm-project/pull/140700