Skip to content

Commit 8c73c9c

Browse files
author
xinyxiao
committed
Enhance DispatchHIPShuffle function with clang-analyzer comments
- Added NOLINTBEGIN and NOLINTEND comments to the DispatchHIPShuffle function to suppress clang-analyzer warnings related to inner pointer usage. - This change improves code clarity and maintains compliance with static analysis tools.
1 parent e7b0f30 commit 8c73c9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/target/intrin_rule_hip.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,13 @@
121121

122122
template <typename T>
123123
static PrimExpr DispatchHIPShuffle(const PrimExpr& e) {
124+
// NOLINTBEGIN(clang-analyzer-cplusplus.InnerPointer)
124125
const CallNode* call = e.as<CallNode>();
125126
ICHECK(call != nullptr);
126127
ICHECK_EQ(call->args.size(), 5); // mask, value, warp_id, width, warp_size
127128
Array<PrimExpr> hip_args{{call->args[0], call->args[1], call->args[2], call->args[3]}};
128-
// NOLINTNEXTLINE(clang-analyzer-cplusplus.InnerPointer)
129129
return Call(call->dtype, T()(call->dtype, Downcast<Op>(call->op)), hip_args);
130+
// NOLINTEND(clang-analyzer-cplusplus.InnerPointer)
130131
}
131132

132133
TVM_REGISTER_OP("tir.clz")

0 commit comments

Comments
 (0)