[Mlir-commits] [llvm] [mlir] [NVPTX] Add "exclusive" intrinsic variants for tcgen05.alloc/dealloc (PR #216016)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Aug 13 04:58:18 PDT 2026
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 -- llvm/lib/IR/AutoUpgrade.cpp llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp --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/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp b/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
index aa14de76c..e6b4cb8ef 100644
--- a/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
+++ b/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
@@ -4981,9 +4981,8 @@ Tcgen05AllocOp::getIntrinsicIDAndArgs(Operation &op,
"expected generic or shared memory address");
bool is2CTAMode = curOp.getGroup() == CTAGroupKind::CTA_2;
- llvm::Intrinsic::ID id =
- is2CTAMode ? llvm::Intrinsic::nvvm_tcgen05_alloc_cg2
- : llvm::Intrinsic::nvvm_tcgen05_alloc_cg1;
+ llvm::Intrinsic::ID id = is2CTAMode ? llvm::Intrinsic::nvvm_tcgen05_alloc_cg2
+ : llvm::Intrinsic::nvvm_tcgen05_alloc_cg1;
// Fill the Intrinsic Args
args.push_back(mt.lookupValue(curOp.getAddr()));
``````````
</details>
https://github.com/llvm/llvm-project/pull/216016
More information about the Mlir-commits
mailing list