Skip to content

Commit ed3bfe1

Browse files
committed
Remove custom SqrtOp verifier
1 parent 6c7f5a6 commit ed3bfe1

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

clang/lib/CIR/Dialect/IR/CIRDialect.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff 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-
939917
mlir::LogicalResult cir::ReturnOp::verify() {
940918
// Returns can be present in multiple different scopes, get the
941919
// wrapping function and start from there.

0 commit comments

Comments
 (0)