[PATCH] D41674: [Support] CommandLine API -- Allow creating custom parsers for fundamental types

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 27 00:05:28 PDT 2018


serge-sans-paille added a comment.

We (= the Quarkslab firm) have two use cases for extending the parsers:

- using floating point numbers for obfuscation rations (as in « obfuscate n % of the constants). sometimes the ratio is 0.001 or such
- using regular expression over function names. In that case it is also convenient to be able to type the option as a regexp and not only a string.

These options are used from regular passes. Is the Option library a good alternative in that case?


https://reviews.llvm.org/D41674





More information about the llvm-commits mailing list