[flang-commits] [flang] [mlir] [mlir][NVVM] Add ops for vote all and any sync (PR #134309)
Durgadoss R via flang-commits
flang-commits at lists.llvm.org
Fri Apr 4 01:40:24 PDT 2025
================
@@ -1160,6 +1132,19 @@ LogicalResult NVVM::MatchSyncOp::verify() {
return success();
}
+LogicalResult NVVM::VoteSyncOp::verify() {
+ if (getKind() == NVVM::VoteSyncKind::ballot) {
+ if (!getType().isInteger(32)) {
+ return emitOpError("vote.sync 'ballot' returns an i32");
+ }
+ } else {
+ if (!getType().isInteger(1)) {
+ return emitOpError("match.sync 'any', 'all' and 'uni' returns an i1");
----------------
durga4github wrote:
I believe you meant `vote.sync` here..
https://github.com/llvm/llvm-project/pull/134309
More information about the flang-commits
mailing list