[Mlir-commits] [mlir] [TOSA] Change PadOp padding to tosa.shape (PR #123133)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Jan 21 13:15:43 PST 2025


================
@@ -229,6 +229,14 @@ SmallVector<T> applyTOSAPermutation(ArrayRef<T> input,
   return permuted;
 }
 
+// Computes shape value using tosa const_shape op.
+Value getTosaConstShape(PatternRewriter &rewriter, Location loc,
+                        llvm::ArrayRef<int64_t> shape);
+SmallVector<int64_t> convertFromMlirShape(ArrayRef<int64_t> shape);
+
+bool ExtractConstShapeValue(Operation *op,
----------------
Jerry-Ge wrote:

thanks for the review. updated `ExtractConstShapeValue` to `getConstShapeValue` 

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


More information about the Mlir-commits mailing list