[Mlir-commits] [mlir] [mlir][llvm] add experimental.vector.interleave2 intrinsic (PR #79270)
Benjamin Maxwell
llvmlistbot at llvm.org
Fri Jan 26 06:57:03 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))">;
----------------
MacDue wrote:
This would also need to check the number of elements are even, right?
https://github.com/llvm/llvm-project/pull/79270
More information about the Mlir-commits
mailing list