summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2019-10-05 01:37:04 +0000
committerMehdi Amini <joker.eph@gmail.com>2019-10-05 01:37:04 +0000
commit482f4d9aa9d1a4d991e6fd1fdd233f07bb69791f (patch)
tree30c74a3ec01c12a11bded1a932086e5d1132c422 /llvm/include/llvm/Support/CommandLine.h
parentd5a4dad2061c09b01f396b3958ccccc4f9727b1a (diff)
downloadbcm5719-llvm-482f4d9aa9d1a4d991e6fd1fdd233f07bb69791f.tar.gz
bcm5719-llvm-482f4d9aa9d1a4d991e6fd1fdd233f07bb69791f.zip
Expose ProvidePositionalOption as a public API
The motivation is to reuse the key value parsing logic here to parse instance specific pass options within the context of MLIR. The primary functionality exposed is the "," splitting for arrays and the logic for properly handling duplicate definitions of a single flag. Patch by: Parker Schuh <parkers@google.com> Differential Revision: https://reviews.llvm.org/D68294 llvm-svn: 373815
Diffstat (limited to 'llvm/include/llvm/Support/CommandLine.h')
-rw-r--r--llvm/include/llvm/Support/CommandLine.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index 3cc2c3c0121..63784463e17 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/include/llvm/Support/CommandLine.h
@@ -2000,6 +2000,9 @@ void ResetAllOptionOccurrences();
/// where no options are supported.
void ResetCommandLineParser();
+/// Parses `Arg` into the option handler `Handler`.
+bool ProvidePositionalOption(Option *Handler, StringRef Arg, int i);
+
} // end namespace cl
} // end namespace llvm
OpenPOWER on IntegriCloud