| 68 | } |
| 69 | |
| 70 | std::optional<std::string> |
| 71 | mlir::tblgen::extractDefaultValue(const NamedAttribute &namedAttr) { |
| 72 | if (namedAttr.attr.hasDefaultValue()) |
| 73 | return namedAttr.attr.getDefaultValue().str(); |
| 74 | return std::nullopt; |
| 75 | } |
| 76 | |
| 77 | std::string mlir::tblgen::extractVersionFromOperation(const Operator &op) { |
| 78 | const auto &def = op.getDef(); |
nothing calls this directly
no outgoing calls
no test coverage detected