[Mlir-commits] [mlir] [MLIR] Add sincos op to math dialect (PR #160772)
Ivan Butygin
llvmlistbot at llvm.org
Tue Sep 30 00:17:50 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()))
----------------
Hardcode84 wrote:
`getType()` should never return null, so just `mlir::dyn_cast<>`.
https://github.com/llvm/llvm-project/pull/160772
More information about the Mlir-commits
mailing list