Skip to content

Commit

Permalink
arith::{Max|Min}FOp renamed to arith::{Maximum|Minimum}FOp in llvm/ll…
Browse files Browse the repository at this point in the history
  • Loading branch information
sjain-stanford committed Oct 18, 2023
1 parent f4e0b5f commit c049503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Conversion/TcpToLinalg/Elementwise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ createLinalgPayloadForElementwiseOp(Operation *op,
auto minFloat = clampOp.getMinFloat();
auto maxFloat = clampOp.getMaxFloat();
if (minFloat)
result = b.create<arith::MaxFOp>(
result = b.create<arith::MaximumFOp>(
loc, result,
b.create<arith::ConstantFloatOp>(loc, *minFloat, b.getF32Type()));
if (maxFloat)
result = b.create<arith::MinFOp>(
result = b.create<arith::MinimumFOp>(
loc, result,
b.create<arith::ConstantFloatOp>(loc, *maxFloat, b.getF32Type()));
} else if (elemType.isa<mlir::IntegerType>()) {
Expand Down

0 comments on commit c049503

Please sign in to comment.