via llvm-dev
2019-Jan-21 19:36 UTC
[llvm-dev] How to set command line option programmatically?
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? Thank you
Krzysztof Parzyszek via llvm-dev
2019-Jan-21 19:47 UTC
[llvm-dev] How to set command line option programmatically?
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
mayuyu.io via llvm-dev
2019-Jan-22 07:35 UTC
[llvm-dev] How to set command line option programmatically?
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
Seemingly Similar Threads
- [LLVMdev] [RFC] Removing static initializers for command line options
- [LLVMdev] [RFC] Removing static initializers for command line options
- [LLVMdev] Programmatically setting command line options?
- [LLVMdev] Programmatically setting command line options?
- [LLVMdev] [RFC] Removing static initializers for command line options