[Mlir-commits] [mlir] [TOSA] Add StatefulOps to TOSA Dialect (PR #66843)
Matthias Gehre
llvmlistbot at llvm.org
Fri Sep 22 12:21:49 PDT 2023
================
@@ -427,6 +438,69 @@ LogicalResult TosaValidation::applyLevelCheck(Operation *op) {
return success();
}
+inline bool CompatibleTypes(const mlir::Type &type,
+ const mlir::Type &declared_type) {
+ // for now, simply use type equality comparison
+ return type == declared_type;
+}
+
+bool TosaValidation::CheckVariable(Operation *op) {
+ if (isa<mlir::tosa::VariableOp>(op)) {
----------------
mgehre-amd wrote:
Can we use dyn_cast to avoid the dangerous-looking `cast` below?
https://github.com/llvm/llvm-project/pull/66843
More information about the Mlir-commits
mailing list