[clang] [llvm] [DirectX] Implement UseNativeLowPrecision shader flag analysis (PR #134288)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 3 11:19:41 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- clang/lib/CodeGen/CGHLSLRuntime.cpp llvm/lib/Target/DirectX/DXILShaderFlags.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/CGHLSLRuntime.cpp b/clang/lib/CodeGen/CGHLSLRuntime.cpp
index ca5f180d2..de115d78c 100644
--- a/clang/lib/CodeGen/CGHLSLRuntime.cpp
+++ b/clang/lib/CodeGen/CGHLSLRuntime.cpp
@@ -288,7 +288,8 @@ void CGHLSLRuntime::finishCodeGen() {
if (T.getArch() == Triple::ArchType::dxil)
addDxilValVersion(TargetOpts.DxilValidatorVersion, M);
if (LangOpts.NativeHalfType)
- M.setModuleFlag(llvm::Module::ModFlagBehavior::Error, "dx.nativelowprec", 1);
+ M.setModuleFlag(llvm::Module::ModFlagBehavior::Error, "dx.nativelowprec",
+ 1);
generateGlobalCtorDtorCalls();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/134288
More information about the llvm-commits
mailing list