[clang] [llvm] [X86] Support apxf in attribute target (PR #184078)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 15 06:19:31 PDT 2026


================
@@ -806,6 +806,19 @@ llvm::X86::getCpuSupportsMask(ArrayRef<StringRef> FeatureStrs) {
   return FeatureMask;
 }
 
+void llvm::X86::expandAPXFeatures(bool Negative, const bool IsOsWindows,
+                                  std::vector<StringRef> &Features) {
+  if (Negative) {
+    Features.insert(Features.end(), {"-egpr", "-ndd", "-ccmp", "-nf", "-zu",
+                                     "-push2pop2", "-ppx", "-cf"});
+  } else {
+    Features.insert(Features.end(), {"+egpr", "+ndd", "+ccmp", "+nf", "+zu"});
+    if (!IsOsWindows) {
----------------
Andarwinux wrote:

Is this still necessary? Windows now fully supported egpr/ppx/push2pop2.

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


More information about the cfe-commits mailing list