[clang] [llvm] [X86][APX] Enable PP2/PPX generation on Windows (PR #202984)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 10 07:10:11 PDT 2026


================
@@ -264,16 +264,12 @@ void x86::getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple,
         A->getOption().matches(options::OPT_mno_apxf)) {
       if (IsNegative) {
         EGPROpt = EGPRFeature::Disabled;
-        Features.insert(Features.end(),
-                        {"-egpr", "-ndd", "-ccmp", "-nf", "-zu", "-jmpabs"});
-        if (!Triple.isOSWindows())
-          Features.insert(Features.end(), {"-push2pop2", "-ppx"});
+        Features.insert(Features.end(), {"-egpr", "-push2pop2", "-ppx", "-ndd",
+                                         "-ccmp", "-nf", "-zu", "-jmpabs"});
----------------
phoebewang wrote:

Maybe back to the AliasArgs way given no CPP handling needed anymore?

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


More information about the cfe-commits mailing list