[Mlir-commits] [mlir] [mlir][NVVM] Add InferTypeOpInterface to sync and ldmatrix ops (PR #188238)
Pradeep Kumar
llvmlistbot at llvm.org
Tue Mar 24 06:49:06 PDT 2026
================
@@ -2853,6 +2903,17 @@ LogicalResult NVVM::VoteSyncOp::verify() {
return success();
}
+LogicalResult VoteSyncOp::inferReturnTypes(
+ MLIRContext *context, std::optional<Location> location,
+ VoteSyncOp::Adaptor adaptor,
+ SmallVectorImpl<Type> &inferredReturnTypes) {
+ if (adaptor.getKind() == NVVM::VoteSyncKind::ballot)
----------------
schwarzschild-radius wrote:
Maybe, we can deduplicate the code between if and else by moving the condition into a conditional expression?
https://github.com/llvm/llvm-project/pull/188238
More information about the Mlir-commits
mailing list