[clang] [clang][HIP] Apply clang-cl optimization options to device code (PR #228096)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 2 07:27:57 PDT 2026
================
@@ -0,0 +1,139 @@
+//===--- ClangCLArgs.cpp - clang-cl arguments -----------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "ClangCLArgs.h"
+#include "clang/Options/Options.h"
+#include "llvm/ADT/StringExtras.h"
+#include "llvm/ADT/StringRef.h"
+#include "llvm/Option/Arg.h"
+#include "llvm/Option/ArgList.h"
+#include "llvm/Option/OptTable.h"
+#include "llvm/Option/Option.h"
+#include "llvm/TargetParser/Triple.h"
+#include <cstddef>
+
+using namespace clang;
+using namespace clang::driver;
+using namespace llvm::opt;
+
+ClangCLArgs::ClangCLArgs(const ArgList &Args, const llvm::Triple &HostTriple)
----------------
jhuber6 wrote:
I'd expect to see this layer extract the handling that is in the MSVC toolchain entirely
https://github.com/llvm/llvm-project/pull/228096
More information about the cfe-commits
mailing list