[clang] [llvm] [PowerPC] frontend get target feature from backend with cpu name (PR #137670)

David Tenty via cfe-commits cfe-commits at lists.llvm.org
Thu May 29 08:10:48 PDT 2025


================
@@ -52,23 +60,35 @@ struct SubtargetFeatureKV {
 //===----------------------------------------------------------------------===//
 
 /// Used to provide key value pairs for feature and CPU bit flags.
-struct SubtargetSubTypeKV {
-  const char *Key;                      ///< K-V key string
-  FeatureBitArray Implies;              ///< K-V bit mask
-  FeatureBitArray TuneImplies;          ///< K-V bit mask
-  const MCSchedModel *SchedModel;
+struct BasicSubtargetSubTypeKV {
----------------
daltenty wrote:

nit: I'd be nicer to use inheritance to make this cleaner, but I think that can be a post-commit refactoring

https://github.com/llvm/llvm-project/pull/137670


More information about the cfe-commits mailing list