| 24 | using namespace mlir; |
| 25 | |
| 26 | std::pair<std::string, std::string> |
| 27 | mlir::tblgen::parseVersion(StringRef version) { |
| 28 | const size_t dotPos = version.find('.'); |
| 29 | const StringRef majorStr = version.substr(0, dotPos); |
| 30 | const StringRef minorStr = |
| 31 | (dotPos != StringRef::npos) ? version.substr(dotPos + 1) : "0"; |
| 32 | return {majorStr.str(), minorStr.str()}; |
| 33 | } |
| 34 | |
| 35 | std::pair<std::string, std::string> |
| 36 | mlir::tblgen::extractVersionFromAttribute(const NamedAttribute &namedAttr, |
nothing calls this directly
no outgoing calls
no test coverage detected