Home
last modified time | relevance | path

Searched refs:toFloatType (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/IR/
H A DLinalgOps.cpp450 } else if (auto toFloatType = toType.dyn_cast<FloatType>()) { in cast() local
455 return builder.create<arith::UIToFPOp>(loc, toFloatType, operand); in cast()
456 return builder.create<arith::SIToFPOp>(loc, toFloatType, operand); in cast()
459 if (toFloatType.getWidth() > fromFloatType.getWidth()) in cast()
460 return builder.create<arith::ExtFOp>(loc, toFloatType, operand); in cast()
461 if (toFloatType.getWidth() < fromFloatType.getWidth()) in cast()
462 return builder.create<arith::TruncFOp>(loc, toFloatType, operand); in cast()