[clang] [llvm] [X86][MC,Driver] Support -msse2avx to encode SSE instruction with VEX prefix (PR #96860)

Shengchen Kan via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 15 00:39:33 PDT 2024


================
@@ -2711,6 +2711,8 @@ static void CollectArgsForIntegratedAssembler(Compilation &C,
   }
   if (!UseRelaxRelocations)
     CmdArgs.push_back("-mrelax-relocations=no");
+  if (Args.hasArg(options::OPT_msse2avx))
+    CmdArgs.push_back("-msse2avx");
----------------
KanRobert wrote:

To address @MaskRay target specific comment. Probably you need to put it under sth like `case llvm::Triple::x86 : case llvm::Triple::x86_64:`

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


More information about the cfe-commits mailing list