[llvm-dev] How to set command line option programmatically?
mayuyu.io via llvm-dev
llvm-dev at lists.llvm.org
Mon Jan 21 23:35:15 PST 2019
Isn’t that supposed to be used in main() ? I’m interested in this use case as well but afaik there isn’t any generic API for this outside of main
Zhang
> 在 2019年1月21日,19:47,Krzysztof Parzyszek via llvm-dev <llvm-dev at lists.llvm.org> 写道:
>
>> On 1/21/2019 1:36 PM, via llvm-dev wrote:
>> Hello,
>> i want to use the Scalarizer pass. (http://llvm.org/doxygen/Scalarizer_8cpp_source.html). This pass exposes the "scalarize-load-store"(default false) option on the command line.
>> For my use-case i want to always enable this option. How can i enable this option programmatically?
>
> You should be able to use ParseCommandLineOptions for that.
>
> -Krzysztof
>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
> hosted by The Linux Foundation
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
More information about the llvm-dev
mailing list