[Mlir-commits] [mlir] [MLIR] Add sincos op to math dialect (PR #160772)

Asher Mancinelli llvmlistbot at llvm.org
Tue Sep 30 07:24:47 PDT 2025


================
@@ -284,6 +284,16 @@ OpFoldResult math::SinhOp::fold(FoldAdaptor adaptor) {
       });
 }
 
+//===----------------------------------------------------------------------===//
+// SinCosOp getShapeForUnroll
+//===----------------------------------------------------------------------===//
+
+std::optional<SmallVector<int64_t, 4>> math::SincosOp::getShapeForUnroll() {
+  if (auto vt = mlir::dyn_cast_or_null<VectorType>(getOperand().getType()))
----------------
ashermancinelli wrote:

Good catch, thanks!

https://github.com/llvm/llvm-project/pull/160772


More information about the Mlir-commits mailing list