Searched refs:FmtReplacement (Results 1 – 2 of 2) sorted by relevance
/external/llvm-project/mlir/lib/TableGen/ |
D | Format.cpp | 71 std::pair<FmtReplacement, StringRef> 77 return {FmtReplacement{fmt}, StringRef()}; in splitFmtSegment() 82 return {FmtReplacement{fmt.substr(0, begin)}, fmt.substr(begin)}; in splitFmtSegment() 89 return {FmtReplacement{fmt}, StringRef()}; in splitFmtSegment() 94 return {FmtReplacement{fmt.substr(0, 1)}, fmt.substr(2)}; in splitFmtSegment() 110 return {FmtReplacement{fmt, index}, StringRef()}; in splitFmtSegment() 112 return {FmtReplacement{fmt.substr(0, end), index}, fmt.substr(end)}; in splitFmtSegment() 119 return {FmtReplacement{fmt, placeholder}, StringRef()}; in splitFmtSegment() 121 return {FmtReplacement{fmt.substr(0, end), placeholder}, fmt.substr(end)}; in splitFmtSegment() 124 std::vector<FmtReplacement> FmtObjectBase::parseFormatString(StringRef fmt) { in parseFormatString() [all …]
|
/external/llvm-project/mlir/include/mlir/TableGen/ |
D | Format.h | 92 struct FmtReplacement { struct 95 FmtReplacement() = default; argument 96 explicit FmtReplacement(StringRef literal) in FmtReplacement() argument 98 FmtReplacement(StringRef spec, size_t index) in FmtReplacement() argument 100 FmtReplacement(StringRef spec, FmtContext::PHKind placeholder) in FmtReplacement() argument 111 static std::pair<FmtReplacement, StringRef> splitFmtSegment(StringRef fmt); argument 112 static std::vector<FmtReplacement> parseFormatString(StringRef fmt); 132 std::vector<FmtReplacement> replacements;
|