File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -914,28 +914,6 @@ static mlir::LogicalResult checkReturnAndFunction(cir::ReturnOp op,
914914 return mlir::success ();
915915}
916916
917- mlir::LogicalResult cir::SqrtOp::verify () {
918- auto inTy = getInput ().getType ();
919- auto outTy = getResult ().getType ();
920-
921- if (inTy != outTy)
922- return emitOpError (" input and result types must match" );
923-
924- // Accept scalar CIR/MLIR floating types.
925- if (inTy.isa <mlir::FloatType>())
926- return mlir::success ();
927-
928- // Accept CIR vector of floats.
929- if (auto vecTy = inTy.dyn_cast <cir::VectorType>()) {
930- if (vecTy.getElementType ().isa <mlir::FloatType>())
931- return mlir::success ();
932- }
933-
934- return emitOpError (
935- " requires a floating-point scalar or vector-of-floating-point element type" );
936- }
937-
938-
939917mlir::LogicalResult cir::ReturnOp::verify () {
940918 // Returns can be present in multiple different scopes, get the
941919 // wrapping function and start from there.
You can’t perform that action at this time.
0 commit comments