MLIR 23.0.0git
Utils.h File Reference

Go to the source code of this file.

Namespaces

namespace  mlir
 Include the generated interface declarations.

Functions

Value mlir::getAPFloatSemanticsValue (OpBuilder &b, Location loc, FloatType floatTy)
Value mlir::forEachScalarValue (mlir::RewriterBase &rewriter, Location loc, Value operand1, Value operand2, Type resultType, llvm::function_ref< Value(Value, Value, Type)> fn)
 Given two operands of vector type and vector result type (with the same shape), call the given function for each pair of scalar operands and package the result into a vector.
LogicalResult mlir::checkPreconditions (RewriterBase &rewriter, Operation *op)
 Check preconditions for the conversion: