[clang] [llvm] [DirectX][DXIL] Set DXIL Version in DXIL target triple based on shader model version (PR #90809)
Xiang Li via cfe-commits
cfe-commits at lists.llvm.org
Wed May 1 20:21:34 PDT 2024
================
@@ -760,7 +760,7 @@ using namespace clang::targets;
TargetInfo *
TargetInfo::CreateTargetInfo(DiagnosticsEngine &Diags,
const std::shared_ptr<TargetOptions> &Opts) {
- llvm::Triple Triple(Opts->Triple);
+ llvm::Triple Triple(llvm::Triple::normalize(Opts->Triple));
----------------
python3kgae wrote:
Why do we need to call llvm::Triple::normalize here?
https://github.com/llvm/llvm-project/pull/90809
More information about the cfe-commits
mailing list