[Mlir-commits] [mlir] [mlir][gpu] Warp execute terminator getter (PR #154729)
Charitha Saumya
llvmlistbot at llvm.org
Thu Aug 21 11:37:07 PDT 2025
================
@@ -2511,6 +2510,10 @@ bool WarpExecuteOnLane0Op::areTypesCompatible(Type lhs, Type rhs) {
verifyDistributedType(lhs, rhs, getWarpSize(), getOperation()));
}
+gpu::YieldOp WarpExecuteOnLane0Op::getTerminator() {
+ return cast<gpu::YieldOp>(getBody()->getTerminator());
----------------
charithaintc wrote:
question out of curiosity, is the body always guaranteed to have a terminator? How enesures that?
https://github.com/llvm/llvm-project/pull/154729
More information about the Mlir-commits
mailing list