MLIR 22.0.0git
Pattern.cpp File Reference

Go to the source code of this file.

Functions

static unsigned getBitWidth (Type type)
static Value createI32Constant (OpBuilder &builder, Location loc, int32_t value)
static FloatType getFloatingPointType (Type type)
 Return the given type if it's a floating point type.

Function Documentation

◆ createI32Constant()

Value createI32Constant ( OpBuilder & builder,
Location loc,
int32_t value )
static

Definition at line 387 of file Pattern.cpp.

References mlir::Builder::getI32Type().

◆ getBitWidth()

◆ getFloatingPointType()

FloatType getFloatingPointType ( Type type)
static

Return the given type if it's a floating point type.

If the given type is a vector type, return its element type if it's a floating point type.

Definition at line 522 of file Pattern.cpp.

Referenced by mlir::LLVM::detail::isUnsupportedFloatingPointType().