[Mlir-commits] [mlir] [mlir][NVVM] Add InferTypeOpInterface to sync and ldmatrix ops (PR #188238)
Bastian Hagedorn
llvmlistbot at llvm.org
Wed Mar 25 00:48:45 PDT 2026
================
@@ -2244,6 +2244,21 @@ LogicalResult ShflOp::verify() {
return success();
}
+LogicalResult ShflOp::inferReturnTypes(
+ MLIRContext *context, std::optional<Location> location,
+ ShflOp::Adaptor adaptor,
+ SmallVectorImpl<Type> &inferredReturnTypes) {
+ Type valType = adaptor.getVal().getType();
+ if (adaptor.getReturnValueAndIsValid()) {
+ SmallVector<Type> body = {valType, IntegerType::get(context, 1)};
----------------
bastianhagedorn wrote:
like this?
https://github.com/llvm/llvm-project/pull/188238
More information about the Mlir-commits
mailing list