30 if (
auto bvType = dyn_cast<BitVectorType>(type)) {
31 if (
auto attrValue = dyn_cast<BitVectorAttr>(value)) {
32 assert(bvType == attrValue.getType() &&
"attribute and desired result types have to match");
38 if (
auto boolType = dyn_cast<BoolType>(type)) {
39 if (
auto attrValue = dyn_cast<BoolAttr>(value)) {
::mlir::Operation * materializeConstant(::mlir::OpBuilder &builder, ::mlir::Attribute value, ::mlir::Type type, ::mlir::Location loc) override
Materialize a single constant operation from a given attribute value with the desired resultant type.