[llvm] [NVPTX] Add intrinsics for new narrow FP conversions (PR #173954)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 29 21:54:34 PST 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 origin/main HEAD --extensions h -- llvm/lib/Target/NVPTX/NVPTXSubtarget.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/NVPTX/NVPTXSubtarget.h b/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
index c8ca0441f..2a2ed3400 100644
--- a/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
+++ b/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
@@ -201,7 +201,7 @@ public:
hasPTXWithFamilySMs(88, {100, 101, 120}) ||
hasPTXWithAccelSMs(86, {100, 101, 120});
}
-
+
// Checks support for conversions involving the following types:
// - bf16x2 -> f8x2
// - f16x2 -> f6x2
@@ -211,7 +211,7 @@ public:
bool hasFP16X2ToNarrowFPConversionSupport() const {
return hasPTXWithFamilySMs(91, {100, 110, 120});
}
-
+
bool hasS2F6X2ConversionSupport() const {
return hasPTXWithAccelSMs(91, {100, 103, 110, 120, 121});
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/173954
More information about the llvm-commits
mailing list