[PATCH] D72977: [mlir][ods] Fix StringRef initialization in builders
River Riddle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 18 12:25:17 PST 2020
rriddle requested changes to this revision.
rriddle added inline comments.
This revision now requires changes to proceed.
================
Comment at: mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp:98
+/// splitting. If a segment is empty, it will be omitted.
+static void splitString(StringRef input, StringRef delimiter,
+ llvm::SmallVectorImpl<StringRef> &outputs) {
----------------
Why not just add a replaceAllSubStrs using std::string instead? Generally only takes ~5 lines of code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72977/new/
https://reviews.llvm.org/D72977
More information about the llvm-commits
mailing list