19 int32_t sem = llvm::APFloatBase::SemanticsToEnum(floatTy.getFloatSemantics());
20 return arith::ConstantOp::create(
b, loc,
b.getI32Type(),
21 b.getIntegerAttr(
b.getI32Type(), sem));
This class defines the main interface for locations in MLIR and acts as a non-nullable wrapper around...
This class helps build Operations.
This class represents an instance of an SSA value in the MLIR system, representing a computable value...
Value getAPFloatSemanticsValue(OpBuilder &b, Location loc, FloatType floatTy)