================ @@ -130,17 +131,35 @@ bool X86TargetInfo::initFeatureMap( continue; } - if (!HasAVX512F && Feature.substr(0, 7) == "+avx512") + if (Feature.substr(0, 7) == "+avx10.") { + HasAVX10 = true; HasAVX512F = true; - if (HasAVX512F && Feature == "-avx512f") + if (Feature.substr(Feature.size() - 3, 3) == "512") { + HasEVEX512 = true; + } else if (Feature.substr(7, 2) == "1-") { ---------------- e-kud wrote:
I'm not sure whether the comment here is needed or not, but I've had the first question: why don't we reset `HasEVEX512` for `avx10.2-256`. And only after realization that `avx10.2-256` implies `avx10.1-256`, it makes sense. https://github.com/llvm/llvm-project/pull/67278 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits