[clang] [compiler-rt] [llvm] [X86] Hygon Processors Initial enablement (PR #187622)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 30 07:07:36 PDT 2026


================
@@ -2026,6 +2104,15 @@ def : ProcModel<"znver5", Znver4Model, ProcessorFeatures.ZN5Features,
 def : ProcModel<"znver6", Znver4Model, ProcessorFeatures.ZN6Features,
                 ProcessorFeatures.ZN6Tuning>;
 
+// Hygon CPUs.
+
+def : Proc<"c86-4g-m4", ProcessorFeatures.C864GM4Features,
+                ProcessorFeatures.C864GM4Tuning>;
+def : Proc<"c86-4g-m6", ProcessorFeatures.C864GM6Features,
+                ProcessorFeatures.C864GM6Tuning>;
+def : Proc<"c86-4g-m7", ProcessorFeatures.C864GM7Features,
----------------
RKSimon wrote:

Yes, even if its just until you provide replacement tuned models - ideally I'd like to avoid all uses of Proc<> and always use ProcModel<> even if its just an approximation.

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


More information about the llvm-commits mailing list