[Mlir-commits] [mlir] [mlir][llvm] add experimental.vector.interleave2 intrinsic (PR #79270)
Cullen Rhodes
llvmlistbot at llvm.org
Fri Jan 26 09:47:18 PST 2024
================
@@ -969,6 +969,20 @@ def LLVM_vector_extract
}];
}
+class HalfElementsVectorTypeConstraint<string lhs, string rhs>
+ : TypesMatchWith<
+ "'" # rhs # "'" # " has half elements of '" # lhs # "'",
+ lhs, rhs,
+ "VectorType(VectorType::Builder(::llvm::cast<VectorType>($_self))"
+ ".setDim(0, ::llvm::cast<VectorType>($_self).getShape()[0] / 2))">;
----------------
c-rhodes wrote:
I've simplified it by reversing the check.
https://github.com/llvm/llvm-project/pull/79270
More information about the Mlir-commits
mailing list