================
@@ -3167,3 +3167,29 @@ void tools::handleInterchangeLoopsArgs(const ArgList 
&Args,
                    options::OPT_fno_loop_interchange, EnableInterchange))
     CmdArgs.push_back("-floop-interchange");
 }
+
+std::optional<StringRef> tools::ParseMPreferVectorWidthOption(
+    clang::DiagnosticsEngine &Diags, const llvm::opt::ArgList &Args,
+    ArgStringList &CmdArgs, bool isCompilerDriver) {
+  // If this was invoked by the Compiler Driver, we pass through the option
+  // as-is. Otherwise, if this is the Frontend Driver, we want just the value.
+  StringRef Out = (isCompilerDriver) ? "-mprefer-vector-width=" : "";
+
+  Arg *A = 
Args.getLastArg(clang::driver::options::OPT_mprefer_vector_width_EQ);
+  if (!A)
+    return std::nullopt;
+
+  StringRef Value = A->getValue();
+  unsigned Width;
----------------
mcinally wrote:

Looks like we can't add this. The MSVC build is failing since 
`__attribute((uninitialized))` isn't supported there. I'll remove this.

https://github.com/llvm/llvm-project/pull/142800
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to