[llvm] [LLVM][NVPTX] Enable family specific support for a few intrinsics (PR #173268)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 22 07:10:53 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 55e42a47b..23a5d84c4 100644
--- a/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
+++ b/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
@@ -226,9 +226,7 @@ public:
// present.
bool hasPTXASUnreachableBug() const { return PTXVersion < 83; }
bool hasCvtaParam() const { return SmVersion >= 70 && PTXVersion >= 77; }
- bool hasCVTRs() const {
- return hasPTXWithAccelSMs(87, {100, 103});
- }
+ bool hasCVTRs() const { return hasPTXWithAccelSMs(87, {100, 103}); }
unsigned int getFullSmVersion() const { return FullSmVersion; }
unsigned int getSmVersion() const { return getFullSmVersion() / 10; }
unsigned int getSmFamilyVersion() const { return getFullSmVersion() / 100; }
``````````
</details>
https://github.com/llvm/llvm-project/pull/173268
More information about the llvm-commits
mailing list