[llvm] [NVPTX] Add intrinsics and codegen for tensormap.replace (PR #172458)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 17 00:13:31 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 cpp,h -- llvm/include/llvm/IR/NVVMIntrinsicUtils.h llvm/lib/IR/NVVMIntrinsicUtils.cpp llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp 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/IR/NVVMIntrinsicUtils.cpp b/llvm/lib/IR/NVVMIntrinsicUtils.cpp
index 2c939ff0c..3d392a592 100644
--- a/llvm/lib/IR/NVVMIntrinsicUtils.cpp
+++ b/llvm/lib/IR/NVVMIntrinsicUtils.cpp
@@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/ADT/StringRef.h"
#include "llvm/IR/NVVMIntrinsicUtils.h"
+#include "llvm/ADT/StringRef.h"
using namespace llvm;
using namespace nvvm;
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
index a8d5da340..ccd7ce90e 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -4589,7 +4589,7 @@ bool NVPTXTargetLowering::getTgtMemIntrinsic(IntrinsicInfo &Info,
}
case Intrinsic::nvvm_tensormap_replace_global_address:
- case Intrinsic::nvvm_tensormap_replace_global_stride:{
+ case Intrinsic::nvvm_tensormap_replace_global_stride: {
Info.opc = ISD::INTRINSIC_VOID;
Info.memVT = MVT::i64;
Info.ptrVal = I.getArgOperand(0);
``````````
</details>
https://github.com/llvm/llvm-project/pull/172458
More information about the llvm-commits
mailing list